zeebe-spec
zeebe-spec copied to clipboard
Capture and verify the task variables
trafficstars
Is your feature request related to a problem? Please describe. I want to verify the variables a task is called with (i.e. a job worker).
Assuming that the process instance contains some variables. These variables can be modified within the process using variable mappings. I want to make sure that the task worker gets the right variables.
It is different from the workflow-instance-variable verification because the task worker gets also variables from parent scopes.
Describe the solution you'd like
Provide a new verification task-variable to verify the variables a task is called with.
Parameters:
name: the name of the variablevalue: the value of the variableelement_name: (optional) the name of the element in the workflow that has the variable in its scopeelement_id: (optional) as an alternative to the name, the element can be identified by its id in the workflowworkflow_instance: (optional) the alias of a workflow instance. The alias is defined in the create-instance action. If only one instance is created then the alias is not required.
Either element_name or element_id must be defined.
Describe alternatives you've considered No.
Additional context