Jump to content

Cancelled tasks in a request


Mette Petersen

Recommended Posts

Hi! 

We are coming across cancelled tasks in certain tickets and I do not know what is causing these tasks to be cancelled.

image.png.542b3fcf64b2d566f77bf2f7df205d53.png

 

As far as I see, there are only 2 things that can happen to a task (for a normal user): 1) action it or 2) it expires (in some cases). What triggers a cancellation? This blocks the BPM and we have don't know how to restart the BPM. The process does not show as failed in the Executed Process.

 

When we click into the cancelled task, we see a message about "approval decision has already been taken...". image.png.736039df2dd289eb6ddd7c7b9254bcfd.png

 

Thanks!
Mette

 

 

Link to comment
Share on other sites

30 minutes ago, Mette Petersen said:

What triggers a cancellation?

  • When canceling a request will trigger canceling associated workflow which in turn will cancel BP tasks
  • When having multiple authorisation tasks (assigned to various users/groups), when they are actioned and the autorisation weight is reached, any remaining pending authorisation tasks will be canceled
Link to comment
Share on other sites

@Victor Hi Victor, 

 

OK so I understand that the cancellations are linked to authorisation nodes? There aren't any authorisation tasks  in the process though, so not sure what it is that has triggered the cancellation. Also, there is nothing in the history of the ticket that refers to an authorisation. 

Link to comment
Share on other sites

@Mette Petersen the error on SR00000486 can be fixed... anyway... so definitely those tasks should have not cancelled... any chance we have this issue occurring consistently on this workflow or another? I found another request SR00000388 (and there could be more) where another BP task was cancelled when it should have not... I can't figure out (yet) why and how this happened if we have a consistent way of replicating this it would be very helpful...

Link to comment
Share on other sites

@Victor Good morning! I think I have understood what goes on! I have another request which has failed using a different process and there is a cancelled task. 

The cancelled task is a parallel task to where we have the error. The error is because we have a node with outcomes and expiry followed by a decision node. There is no goto for the expiry and therefore the process fails and I am assuming that the system then cancels the parallel process node.

Example is 733 in our instance.

Let me know if this makes sense to you.

 

Link to comment
Share on other sites

@Victor on that note, it doesn't look like I can correct the failed processes. For any other requests that have used this process and have not reached that node yet, is there anyway I can correct the problem before it reaches the node or is it a case of telling people to not let that particular task expire??

Thanks again!

Mette

Link to comment
Share on other sites

@Mette Petersen Godmorgen :)

I know about the expirations and that was one of the first things I tested when I looked into this. Despite my test scenarios, with various parallel tasks and expiration settings, I was unable to replicate the same issue. I'll have a look at 733 to see if there is something I messed during my tests.

 

Link to comment
Share on other sites

  • 3 months later...

After some discussions, I believe I understand what is happening.  

Within a parallel process in a workflow, the tasks within that parallel segment are seen as being dependent on each other.  In order for the BPM to flow and end the parallel segment, all tasks must be completed as they are a related group of tasks.  

In the event of a BPM failure that occurs when the workflow is within a parallel segment, what is happening is that if one of the tasks failed due to misconfiguration, it will cancel the other active tasks that also sit within the parallel segment.  This is by design in order to prevent further task completion when one of the dependent tasks have failed.  If a task remained accessible to a user while the request's BPM was in a failed state, and these tasks continued to be completed, the tasks and BPM are placed entirely out of sync causing additional logic errors or possibly business operation issues if the tasks are not completed correctly.

While there is a great tool for fixing most aspects of a failed BPM, this scenario can't be modified.  The recommended action to take when you come across a request where this has occurred, is to identify the failed BPM task and what was the cause of the failure. Then update the BPM workflow to ensure that the settings and logic are in place so that it doesn't fail again with another request.  

I hope this helps,

Regards,

James

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...