Terminate process from any user task

308 views
Skip to first unread message

Nicholas McRae

unread,
Jan 12, 2015, 3:53:08 PM1/12/15
to jbpm-...@googlegroups.com
My application has a requirement to give users the ability to cancel the entire project via any user task in the flow. I know that I should be able to do this with a boolean on the form and a termination event at each task .. but this seems like an ugly way to do things. I wonder if there's another way?

Mauricio Salatino

unread,
Jan 12, 2015, 4:05:11 PM1/12/15
to Nicholas McRae, jbpm-...@googlegroups.com
From any point you can abort the entire process, if that's something that any user can do I don't see why you cannot provide that option. It sounds more elegant. 


On Mon, Jan 12, 2015 at 8:53 PM, Nicholas McRae <nicholas...@gmail.com> wrote:
My application has a requirement to give users the ability to cancel the entire project via any user task in the flow. I know that I should be able to do this with a boolean on the form and a termination event at each task .. but this seems like an ugly way to do things. I wonder if there's another way?

--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
To post to this group, send email to jbpm-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/5fafa0d3-5199-4fdf-aced-c8a0e129443e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
 - MyJourney @ http://salaboy.com
 - Co-Founder @ http://www.jugargentina.org
 - Co-Founder @ http://www.jbug.com.ar
 
 - Salatino "Salaboy" Mauricio -

Nicholas McRae

unread,
Jan 12, 2015, 4:15:56 PM1/12/15
to jbpm-...@googlegroups.com, nicholas...@gmail.com
Thanks for the reply. 

I do want to provide the option for sure. By 'ugly' I meant that I don't know how I feel about tacking on a terminate end point to every human task in the flow, which would make the process less readable.

After doing some rooting around though we found that we may be able to hook up a 'cancel project' button on the front end to the cancel instance call in the back end, which would avoid having to implement this functionality through the workflow itself.

Kris Verlaenen

unread,
Jan 13, 2015, 9:00:56 PM1/13/15
to Nicholas McRae, jbpm-...@googlegroups.com
Exposing a "abort process instance" button in the UI sounds like a good idea.  Alternatively, if you do want to offer the option in a task form, you could hide it in an on-exit script (abort the process instance there in case the task results contain some value) rather than modeling it explicitly in the process diagram as a terminating end node.

Kris

Reply all
Reply to author
Forward
0 new messages