Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 1.99 KB

WorkflowDecisionTask.md

File metadata and controls

14 lines (10 loc) · 1.99 KB

WorkflowDecisionTask

A DecisionTask is a control task that executes a sequence of WorkflowTasks based off decision provided and evaluated by this task.

Properties

Name Type Description Notes
condition str The condition to evaluate for this decision task. The condition can be a workflow or task variable or an expression based on the input parameters. Example value for condition if its Workflow/task variable is - "${task1.output.var1} or ${workflow.input.var2}" which evaluates to a value matching any of the decision case values. Example value for condition if its an expression is - "if ( $.element ! = null && $.element > 0 ) 'true'; else 'false'; " which evaluates to 'true' or 'false' and will match one of the decision case values. Here "element" is a variable in decisiontask's inputParameters JSON formatted map. You can also use javascript like functions indexOf, toUpperCase in the expression which will be evaluated by the expression evaluator. [optional]
decision_cases list[WorkflowDecisionCase] [optional]
default_task str The default next Task to execute if the decision cannot be evaluated to any of the DecisionCases. [optional]
input_parameters object JSON formatted map that defines the input given to the decision task. The inputs are used as variables in the condition property of decision task. The input variables can be static values like "hello" , "24", "true" OR previous task outputs/workflow inputs like "${task2.output.var1}}". The input variables are referrenced as $.inputVariableName in the condition property. [optional]

[Back to Model list] [Back to API list] [Back to README]