This content has been marked as final.
Show 2 replies
-
1. Re: Can I tell which event invoked my action?
koen.aers Apr 4, 2007 5:55 AM (in response to avbentem)Arjan,
You can do this by querying the event from the ExecutionContext.
Regards,
Koen -
2. Re: Can I tell which event invoked my action?
avbentem Apr 20, 2007 6:19 AM (in response to avbentem)"koen.aers@jboss.com" wrote:
You can do this by querying the event from the ExecutionContext.
I took me some time trying to retrieve the jBPM execution context from within a Seam application (which can inject things like JbpmContext, ProcessInstance and TaskInstance, in which I could not easily find a reference to the ExecutionContext), but it's really easy when forgetting about Seam's injection for a second:ExecutionContext jbpmExecutionContext = ExecutionContext.currentExecutionContext(); log.debug("Event: #0", jbpmExecutionContext.getEvent());
Thanks,
Arjan.