Skip to content

CREATE WORKFLOW with user task panics — nil pointer dereference #403

@retran

Description

@retran

Impact

CRITICAL. Any CREATE WORKFLOW containing a user task activity crashes the process with a nil pointer dereference. Blocks all workflow creation that includes user tasks.

Details

Field Value
Severity Critical
Panic location visitor_workflow.go:420 in buildWorkflowUserTask
Working activities call microflow, decision
Broken activity user task
  • Simple workflows without user tasks work fine.
  • DESCRIBE of existing user-task workflows produces correct output.
  • Only the CREATE path is broken.

Reproduction

create workflow Module."WF_Test"
  parameter $WorkflowContext: Module."Entity"
  display 'Test'
begin
  user task "ut1" 'Review'
    page Module."Page"
  outcomes
    'Approve' { }
    'Reject' { };
end workflow;

Expected

Workflow created without panic.


Discovered during AI-assisted manual testing session (2026-04-29, mxcli v0.7.0-257-ga07e7e0).

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