We have encountered an issue while testing a parallel flow. When parallel flow is already started and the main flow of the application encounters an error, the parallel flow activity also expires and the user cannot execute it anymore. The bug here is that the parallel flow activity should still be available even if there is an error from the main flow.
This incorrect behaviour is due to the workflow level exception rule in where we perform “GotoActivity” by sending “expire all” parameter as true.
As per the documentation we found for K2, if we send false instead of true, only the current activity will be expired instead of all the activities.
ServerEvent.GotoActivity(eventName, False);
However, when we tried after setting the parameter as false, we found that only current activity was expired and parallel flow was still active but the main flow of the application proceeded further even though it should have stopped there.
Can someone please help us in finding a solution for this scenario as the issue is due to K2 behaviour and contradictory to their documentation.