I would like to flag certain tasks during modeling to filter on that. For example certain tasks are “important”.
There seems to be a concept of task variable and I can do something like that:
engine.getTaskService().createTaskQuery().taskVariableValueEquals("important", "true");
My question is, where is the place to set this task variable in the BPMN model? I tried these inside the userTask but none of them seem to set the task variable.
<camunda:properties>
<camunda:property name="important" value="true" />
</camunda:properties>
<camunda:inputOutput>
<camunda:inputParameter name="important">true</camunda:inputParameter>
</camunda:inputOutput>
<camunda:taskListener expression="${execution.setVariableLocal("important", "true")}" event="create" />
<camunda:taskListener expression="${execution.setVariable("important", "true")}" event="create" />