Changing the service task variables before requeue job is not working in RHPAM
Issue
When an instance error happens due to a wrong input variable and it generates a Job, the wrong input variable that is mapped to a process variable is changed and after that a requeue Job operation is executed. However the new value of the process variable is not assigned to the Service Task input, so it executes with the old inputs.
The work item uses the "execute" method from org.kie.api.executor.Command interface, instead of WorkItemHandler.
<work-item-handler>
<resolver>mvel</resolver>
<identifier>new org.jbpm.executor.impl.wih.AsyncWorkItemHandler(org.jbpm.executor.ExecutorServiceFactory.newExecutorService(null),"com.redhat.MyCommand")</identifier>
<parameters/>
<name>MyAsyncTask</name>
</work-item-handler>
The process variable change and the requeue operations are done on the Business central, so there's an impact on every process instance.
Is this an expected behaviour?
Environment
- Red Hat Process Automation Manager (RHPAM)
- 7.13.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.