I have use case where there are some serviceTasks. Each service task contains some variables like inputParam, outputParam. Now I want to skip serviceTasks for some set of inputParams. For that, I want to store the inputParam as list globally for process and check for serviceTask whether inputParam is in the list or not.
Sample BPMN is like this:
<?xml version="1.0" encoding="UTF-8"?>
//some logic to store set of inputParams which can be accessed by all service tasks. Not sure about this logic
<flowable:field name="inputFilterList">
<flowable:string>{"inputParam1"}</flowable:string>
</flowable:field>
<serviceTask id="INPUT_REFRESH_PARAM1" name="Task execute 1" skipExpression="${//expression to check if testInputParam1 is in inputFilterList//}" flowable:async="true" flowable:triggerable="true" flowable:class="RefreshTaskDelegate">
<extensionElements>
<flowable:field name="inputParam">
<flowable:string>["testInputParam1"]</flowable:string>
</flowable:field>
<flowable:field name="outputParam">
<flowable:string>["testOutputParam1"]</flowable:string>
</flowable:field>
</extensionElements>
</serviceTask>
<serviceTask id="INPUT_REFRESH_PARAM2" name="Task execute 2" flowable:async="true" flowable:triggerable="true" flowable:class="RefreshTaskDelegate">
<extensionElements>
<flowable:field name="inputParam">
<flowable:string>["testInputParam2"]</flowable:string>
</flowable:field>
<flowable:field name="outputParam">
<flowable:string>["testOutputParam2"]</flowable:string>
</flowable:field>
</extensionElements>
</serviceTask>
How can I achieve this functionality?