zeebe-spec icon indicating copy to clipboard operation
zeebe-spec copied to clipboard

Capture and verify the task variables

Open saig0 opened this issue 4 years ago • 0 comments
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 variable
  • value: the value of the variable
  • element_name: (optional) the name of the element in the workflow that has the variable in its scope
  • element_id: (optional) as an alternative to the name, the element can be identified by its id in the workflow
  • workflow_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

saig0 avatar Jul 09 '21 11:07 saig0