-
1. Re: How to signal event to process started by JBPM Console?
swiderski.maciej Dec 5, 2012 3:19 AM (in response to thomas.setiabudi)there is a signal REST interface method it's just now so clear as it is constrained by the bpm console interface which was designed prior to jBPM5 and does not accommodate all requirements, if i recall correctly it should be like this (relative path):
/rs/process/tokens/[processInstanceId]/transition?signal=[your-signal]^[event-object]
HTH
-
2. Re: How to signal event to process started by JBPM Console?
thomas.setiabudi Dec 5, 2012 3:21 AM (in response to swiderski.maciej)Wow thats sure is interesting
What is the [event-object] Maciejs?
A JSON String?
Regards,
Thomas Setiabudi
-
3. Re: How to signal event to process started by JBPM Console?
swiderski.maciej Dec 5, 2012 3:24 AM (in response to thomas.setiabudi)currently it does support only simple string values as event object
-
4. Re: How to signal event to process started by JBPM Console?
thomas.setiabudi Dec 5, 2012 3:38 AM (in response to swiderski.maciej)Thank you Maciej
Will give it a try and post back here.
Regards,
Thomas Setiabudi
-
5. Re: How to signal event to process started by JBPM Console?
thomas.setiabudi Dec 5, 2012 6:20 AM (in response to swiderski.maciej)Hi Maciej,
By the way, what is the use of [event-object] ?
Regards,
Thomas Setiabudi
-
6. Re: How to signal event to process started by JBPM Console?
swiderski.maciej Dec 6, 2012 2:00 AM (in response to thomas.setiabudi)it's the object that is pass as argument 'event' to the ksession.signalEvent method
HTH
-
7. Re: How to signal event to process started by JBPM Console?
thomas.setiabudi Dec 6, 2012 4:04 AM (in response to swiderski.maciej)Thank you Maciej, it works
Regards,
Thomas Setiabudi
-
8. Re: How to signal event to process started by JBPM Console?
hari6025 Jun 26, 2013 2:14 AM (in response to thomas.setiabudi)Hi Maciej and Thomas,
I am new to jbpm5.4. I have a requirement to handle exception in my workflow. Could you please suggest me the way to handle this?.
i thought of handling this using intermediate catch event. but here as well i'm facing the issue like i need to define that signal flow all the processes(parent and subprocess as well.). Need some inputs better way of handling the exception by having a single work flow defined for this exception and which will be used across all the processes.Thanks in advance,
Hari.
-
9. Re: How to signal event to process started by JBPM Console?
thomas.setiabudi Jun 27, 2013 10:08 PM (in response to hari6025)Hi Hari Kumar,
Where do you mean your exception to happen? inside workItemHandler? or workflowRuntime Exception?
By the way, maybe you need to open a new forum thread since this one is only about how to signal event and is already answered. Open a new thread and you got bigger chance to get reply from others too.
Regards,
Thomas Setiabudi
-
10. Re: How to signal event to process started by JBPM Console?
hari6025 Jun 27, 2013 11:20 PM (in response to thomas.setiabudi)Hi Thomas,
Thanks for your reply. Inside my service task handler(workItemHandler) i'm calling external webservice during this time if some exception thrown how do i handle this and I thought of defining one seperate exception flow for this(In this thought of persisting the data). Could you plz suggest me the better way of doing this?
Regards,
Hari.
-
11. Re: How to signal event to process started by JBPM Console?
thomas.setiabudi Jul 4, 2013 10:20 PM (in response to hari6025)Hi Hari Kumar,
I think what you do should be ok.
Try to look at the implementation of org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler at code line around 185.
There the Work Item Handler can be confirgured to three kind of action when an exception occured:
1. Abort the work item, and the process will continue
2. Throw new Exception (and the process should rollback or stop at that node)
3. Log the error
Another option is to complete the workitem with output that will trigger the alternate flow path.
btw, you should open a new thread for this as others will be able to see your question and help too.
Regards,
Thomas Setiabudi