You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The decide() DSL method hardcodes evaluator_type = 'value-param' for all SWITCH tasks. Users who need a JavaScript expression evaluator must construct WorkflowTask manually — there is no way to express this through the builder.
Tested against: Conductor OSS 3.32.0-rc.9
Root Cause
# lib/conductor/workflow/dsl/task_ref.rb:110-111defapply_switch_fields(wf_task)wf_task.evaluator_type='value-param'# hardcoded — cannot be 'javascript'
...
end
workflow_builder.rb#add_switch_task passes no evaluator_type in options; apply_switch_fields ignores any such option and hardcodes 'value-param'.
The server supports two evaluator types for SWITCH:
"value-param" — compares inputParameters.switchCaseValue against case strings
"javascript" — evaluates a full JavaScript expression and matches the result against cases
Impact
Users who want to branch on a computed value (not a simple reference comparison) cannot use the decide DSL. They must construct the task definition raw.
Activity