Skip to content

Commit 015fb76

Browse files
akoclaude
andcommitted
refactor: consolidate doctype-tests — bug scripts to bug-tests, workflow scripts merged
Bug/regression scripts moved to mdl-examples/bug-tests/ (already the established home for issue-reproducing scripts): - keyword-as-identifier.mdl (PR #186/#174 regression) - enum_split_statement.mdl (CE0079 empty-branch fix) - empty_java_action_argument.mdl (CE1613 empty-argument fix) Three unnumbered workflow fragments merged into 24-workflow-examples.mdl: - alter-workflow.mdl → Part A (ALTER WORKFLOW full coverage) - workflow-user-targeting.mdl → Part B (all targeting variants) - workflow-microflow-actions.mdl → Part C (all 11 workflow action types) complete-task-action.mdl (21 lines) absorbed into 03-page-examples.mdl under a new "Workflow task completion buttons" section. call_web_service.mdl renamed to 06b-soap-examples.mdl to match the numbered naming convention and distinguish SOAP from REST (06). All 33 doctype scripts pass mxcli check. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a2cf689 commit 015fb76

9 files changed

Lines changed: 219 additions & 260 deletions

mdl-examples/doctype-tests/empty_java_action_argument.mdl renamed to mdl-examples/bug-tests/empty_java_action_argument.mdl

File renamed without changes.
File renamed without changes.
File renamed without changes.

mdl-examples/doctype-tests/03-page-examples.mdl

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2464,3 +2464,25 @@ move snippet PgTest.CustomerSidebar to folder 'Shared' in PgTest2;
24642464
--
24652465
-- ============================================================================
24662466

2467+
-- MARK: Workflow task completion buttons
2468+
2469+
-- ACTIONBUTTON with action: complete_task 'OutcomeName' submits a workflow
2470+
-- user task outcome directly from the page. Used on pages bound to
2471+
-- System.WorkflowUserTask.
2472+
2473+
create page PgTest.UserTaskPage (
2474+
title: 'User Task Page',
2475+
layout: Atlas_Core.Atlas_Default,
2476+
params: { $WorkflowUserTask: System.WorkflowUserTask }
2477+
) {
2478+
actionbutton btnApprove (
2479+
caption: 'Approve',
2480+
action: complete_task 'Approve',
2481+
buttonstyle: success
2482+
)
2483+
actionbutton btnReject (
2484+
caption: 'Reject',
2485+
action: complete_task 'Reject',
2486+
buttonstyle: danger
2487+
)
2488+
}
File renamed without changes.

0 commit comments

Comments
 (0)