[MNT-20189]  Asynchronous activitiy (e.g. script/service task) after signal catching event is not working correctly and can leave process in stuck state Created: 22-Nov-18  Updated: 03-Sep-20

Status: Open
Project: Service Packs and Hot Fixes
Component/s: APS Engine
Affects Version/s: Alfresco Process Services 1.9.0.3
Fix Version/s: Alfresco Process Services .N

Type: Service Pack Request
Reporter: Dennis Koch Assignee: Mark Howarth [X] (Inactive)
Resolution: Unresolved Votes: 1
Labels: engine-triage
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Zip Archive AsyncAfterSignalTestApp.zip     PNG File defectProcessModell.png     PNG File processDiagramAfterExecution.png    
Issue Links:
Cloners
Bug Priority:
Category 1
ACT Numbers:

00982127

Epic Link: Critical Engine improvements

 Description   

Summary
An asynchronous task right after an intermediate signal catching event is not behaving correctly and can leave a process instance in a stuck state.

Steps to reproduce
1. Via App Designer -> Apps import and publish the attached app AsyncAfterSignalTestApp.zip
NOTE: The app comes with a very simple process, that splits up after a parallel gateway. One branch is throwing a signal then and the other execution branch is catching the signal and running into an async script task afterwards. See attached defectProcessModell.png
2. From the published app, start a new process
3. Complete the user task "Some User Task"
4. Via the Process tab, inspect the state of the started process, the process diagram and review the APS logs.

Expected behaviour
The process should be completed, as both, the end event and the terminating end event have been reached.

Current behaviour
The process is still running. The script task seems to have been executed (easy to debug by adding a print line to the script for ScriptTask1) but the transaction was not commited and rolled back. There are NO related log errors or warnings at all, but the process is in a stuck state, see processDiagramAfterExecution.png and execution standing right before the async script task.

Supporting evidence

  • Reproduced with current latest APS 1.9.0.3 release
  • Cannot reproduce issue as soon as task after the signal catching event is not set async!
  • Cannot reproduce when replacing the signal catching event with a user task to trigger continuation of execution manually


 Comments   
Comment by Mark Howarth [X] (Inactive) [ 23-Aug-19 ]

Reassigning to Doug Gruber, the new PM for APS.

Comment by Mark Howarth [X] (Inactive) [ 02-Dec-19 ]

Assigning to Mark Howarth [X] as PM for APS.

Generated at Sun Mar 07 18:47:11 GMT 2021 using Jira 7.13.15#713015-sha1:7c5ddd2c3e1709974ae9c48c17df8edd3919fe2c.