Skip to content

mxcli check should reject ON ERROR on CALL WORKFLOW (CE6035) #175

@engalar

Description

@engalar

Problem

mxcli check script.mdl -p app.mpr --references passes syntax and reference validation for CALL WORKFLOW ... ON ERROR CONTINUE, but Mendix (mx check / Studio Pro) rejects it at build time with CE6035: Error handling type is not supported.

Repro

CREATE MICROFLOW MyModule.TestWorkflow (
  $Context: MyModule.MyEntity
)
RETURNS Boolean AS $Result
BEGIN
  DECLARE $Result Boolean = true;
  CALL WORKFLOW MyModule.MyWorkflow("WorkflowContext" = $Context) ON ERROR CONTINUE;
  RETURN $Result;
END;
/
./mxcli check script.mdl -p app.mpr --references
# ✓ Syntax OK
# ✓ All references valid

mx check app.mpr
# CE6035  Error handling type is not supported  Call workflow activity 'Call MyWorkflow'

Expected

mxcli check should reject ON ERROR CONTINUE / ON ERROR ROLLBACK on CALL WORKFLOW activities, the same way Mendix rejects error handling on SEND REST REQUEST (also CE6035).

Workaround

Remove the ON ERROR clause:

CALL WORKFLOW MyModule.MyWorkflow("WorkflowContext" = $Context);

Environment

  • mxcli: latest
  • Mendix: 11.6.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions