How to get Catching Exception Details

123 views
Skip to first unread message

Saad Meraj

unread,
May 5, 2015, 4:18:19 AM5/5/15
to jbpm-...@googlegroups.com
I have a process in which i have placed a Catching Intermediate Events(Error) Boundary event on a rest call as shown in the attached image.

The flow works fine as expected when an exception is encountered.  now i want to email the details of exception but am unable to find any documentation as to how i can get the details of exception encountered by the process.

In JBPM 6.0 documentation it states that there is a property of the "Error" object "FaultVariable"   where you can specify the process variable in which the exceptioan details would be placed but i am unable to find any such property.

Saad
Excep.png

Maciej Swiderski

unread,
May 5, 2015, 5:27:48 AM5/5/15
to Saad Meraj, jbpm-...@googlegroups.com
Saad,

you need to define dataOutput to carry on the actual exception, here [1] is an example of boundary error event with data output for the exception

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/d20239f5-09af-494d-8786-9899159eca18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<Excep.png>

Saad Meraj

unread,
May 5, 2015, 6:09:20 AM5/5/15
to jbpm-...@googlegroups.com, saad...@gmail.com
Got it thanks..

--Create a process variable exception of custom type java.lang.Exception

--In the exception boundary object created a data output variable wsError and assigned it to exception process variable.


Thanks again.
Saad
Reply all
Reply to author
Forward
0 new messages