Set an activity as for compensation using jBPM suite

142 views
Skip to first unread message

Daniele Salvatore

unread,
Aug 3, 2016, 9:37:56 AM8/3/16
to jBPM Usage
Hi everyone,

I'm using the jBPM suite and I'm making my business process with the grafical editor. I want to catch a compensation intermediate event from a Service Task but the Event Node needs to be connected with a compensation activity (another Service Task). How should I create it?

If I could modify the node source I would set the "isForCompensation" parameter as "true" in the Service Task tag of the compensation activity but I cannot find the way to do this.

I hoped the editor do it automatically but when I create a new task by clicking on the Event Node a normal Service Task is created, connected to the node with an Association.
Now, if I try to validate, it give me some error messages in wich it says to me that the User Task wants an incoming and an outgoing connection and even the event node wants an outgoing connection too.

I've even tried to link the compensation activity with a start compensation event node and a normal end node and associate the catch event node both with the start compensation event node or the compensation activity but I still got an error message for the missing outgoing connection from the catch event node.

So I repeat my question: how can I set a Service Task tag's isForCompensation parameter as true?

I hope I explained myself. If not I attach the business project png file.


holidayBooking.CompensationBP.png

Maciej Swiderski

unread,
Aug 3, 2016, 9:50:18 AM8/3/16
to Daniele Salvatore, jBPM Usage
compensation is not fully supported by jBPM so better to use signal/error events or subprocesses instead to perform operations in case of unexpected situations.

Maciej
--
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/1a5f45c0-cffd-4d2d-acbd-6e4c22f641b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<holidayBooking.CompensationBP.png>

Salvatore, Daniele

unread,
Aug 3, 2016, 9:58:14 AM8/3/16
to Maciej Swiderski, jBPM Usage
Thank you for your quick answer, I'll find another solution
Reply all
Reply to author
Forward
0 new messages