We have a requirement to suspend a process instance either for specified duration or till an event occurs. We have implemented it using the Receive Task. When the desired event takes place or duration expires. We are sending the signal to the waiting task by using below mentioned code
Once the main process resumes we have some service tasks which invokes some business services for updating the data.
For most of the process instances this flow is working without any issues. But for some cases we observed that after signaling the main process has resumed (For logging we are also recording the task instance ID and other details), as a result the business services have been executed. But when we check in ACTIVITI the case is still in Receive Task. We were not sure how this was possible.
Was there any sort of transaction rollback from ACTIVITI ?
Windows 2008, JBoss 7, MSSQL Server