Yes, there is. If you take a look at the console logs, you will notice the
events of the underlying jBPM graph. Right now there is no declarative way to
capture them, but you can do it programatically.
After you deploy the process archive, but before you deploy the web services,
load the process definition, perform the following operations, and save it back.
// register the action we want executed at the end
| Action endAction = new Action();
| endAction.setName("endAction");
| processDefinition.addAction(endAction);
| // delegate the action's execution to a handler
| Delegation endDelegation = new Delegation();
| endDelegation.setClassName(EndHandler.class.getName());
| endAction.setActionDelegation(endDelegation);
|
| // register an event of type process end
| Event event = new Event(Event.EVENTTYPE_PROCESS_END);
| processDefinition.addEvent(event);
| // associate the above action with the event
| event.addAction(endAction);
As a reference, the EndHandler is:
public class EndHandler implements ActionHandler {
|
| private static final long serialVersionUID = 1L;
|
| public void execute(ExecutionContext exeContext) throws Exception {
| [...]
| }
| }
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921080#3921080
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921080
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user