[
https://jira.jboss.org/browse/JBPM-2805?page=com.atlassian.jira.plugin.sy...
]
Huisheng Xu updated JBPM-2805:
------------------------------
Attachment: JBPM-2805.patch
add getName() in Event.java
add getEvent() in EventListenerExecution.java
Add access to event type in EventListenerExecution interface
------------------------------------------------------------
Key: JBPM-2805
URL:
https://jira.jboss.org/browse/JBPM-2805
Project: jBPM
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Affects Versions: jBPM 4.x
Reporter: Mike Martin
Priority: Minor
Fix For: jBPM 4.x
Attachments: JBPM-2805.patch
Add the ability to determine the event type ("start" or "end") from
within an EventListener implementation. There should also be the ability to easily
determine the name of the process definition step where the event occurred.
This makes it possible to write a single event listener that handles many different kinds
of events. As far as design, it seems odd that the notify() method has a *Execution
parameter, rather than an "event" parameter that contains all information about
the event that occurred; the latter would be more in line with the way event listener
interfaces are usually designed in Java.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira