AnsweredAssumed Answered

Workflow not completed, if we are using  Service task with parallel Gateway.

Question asked by nprajapatiasite on Jun 19, 2018

Hi,

 

Here i am facing issue in activity that it will stuck in one service task if we Service Task used with parallel gateway.

 

i am also find that in "ACT_RU_EXECUTION" table entry not found for particular execution id.

for this reason it will throw NullPointerException with below Error trace.

Error: 


java.lang.NullPointerException
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:95)
at org.activiti.engine.impl.jobexecutor.AsyncContinuationJobHandler.execute(AsyncContinuationJobHandler.java:37)
at org.activiti.engine.impl.persistence.entity.JobEntity.execute(JobEntity.java:84)
at org.activiti.engine.impl.persistence.entity.MessageEntity.execute(MessageEntity.java:29)
at org.activiti.engine.impl.cmd.ExecuteJobsCmd.execute(ExecuteJobsCmd.java:76)
at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)
at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:37)
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)
at org.activiti.engine.impl.jobexecutor.ExecuteJobsRunnable.run(ExecuteJobsRunnable.java:52)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

 

 

Here, i have attached my workflow design with "parallelGateway.png".

 

this is property values for service task, is there any property available for restrict to delete that row from above table?

 

{
"resourceId": "sid-6A1B78A1-23D7-4F30-AAFE-CE48D38D17BB",
"properties": {
"overrideid": "",
"name": "Lock System",
"documentation": "",
"servicetaskclass": "com.asite.wom.action.delegate.LockFileObjectsDelegate",
"servicetaskexpression": "",
"servicetaskdelegateexpression": "",
"servicetaskresultvariable": "",
"servicetaskfields": {
"totalCount": 1,
"items": [{
"servicetask_field_name": "actionConfigId",
"servicetask_field_value": 973,
"servicetask_field_expression": ""
}]
},
"asynchronousdefinition": "Yes",
"exclusivedefinition": "Yes",
"executionlisteners": "",
"looptype": "None",
"multiinstance_sequential": "Yes",
"multiinstance_cardinality": "",
"multiinstance_collection": "",
"multiinstance_variable": "",
"multiinstance_condition": "",
"isforcompensation": "false",
"systemactionconfiglistener": "Lock File Activities",
"systemactionconfigdetaillistener": "{\"plugin\": {\"id\": 18637, \"name\": \"lock_file_objects\"}, \"config\": {\"id\": 973, \"name\": \"Lock Action\"}}"
},

can anyone help me to resolve this issue?

Attachments

Outcomes