In Prod environment, we see few of the process gets stuck at startevent/service task, without any exception, Not sure why process gets stuck at this.
And it is not a async.
Sometimes i see process gets stuck at gateway too
Uploading the model would be helpful.
Also - how is the service task implemented? External Task? Java Delegate? etc.
empworkflow.bpmn (19.0 KB)
@Niall
Thanks for the response,
service task implemented by java delegate.
As i mentioned in the above, few process stuck at startevent/gateway too , that snippet also attached.
Thanks
@gowtham_m, In the exclusive gateway you have configured condition expressions like below:
${employmentType==domesticType}
${employmentType==internationalType}
If both of the condition not matched, then task will get stuck at the gateway itself. You need to add default flow also as the outgoing sequence from gateway. If none of the criteria matches, default flow will get activated.
@aravindhrs thanks, but in the above scenario, we always populate employmentType
For example, Consider below criteria:
employmentType = permanent, domesticType = contract
${permanent==contract} //condition failed
employmentType = permanent, internationalType = parttime
${permanent==parttime} //condition failed
If both conditions doesn’t match, process will get stuck.
The value of employmentType will be either domestic type or internationalType, it cannot be null and it can always have any one of the value as mentioned above
So domesticType and internationalType are not variables?
No, only employmentType is the execution Variable
then the condition should be like,
${employmentType == 'domesticType'}
${employmentType == 'internationalType'}
not like the below which will get evaluated both as variables.
${employmentType==domesticType}
${employmentType==internationalType}
Ya, but this is not causing the issue , as I see it’s evaluating properly
can you upload the java delegate configured in the service tasks? will be useful to find the issue. Both delegates: checkEmployerNameInEmpDbDelegate and ngtServiceDelegate
Is there any exceptions in server logs?