Package org.imixs.workflow.engine
Class ProcessingEvent
- java.lang.Object
-
- org.imixs.workflow.engine.ProcessingEvent
-
public class ProcessingEvent extends Object
The ProcessingEvent provides a CDI event fired by the WorkflowService EJB. This even can be used in a observer pattern of a service EJB to react on the life-cycle of a process instance.The ProcessingEvent defines the following event types:
- BEFORE_PROCESS - is send immediately before a workitem will be processed
- AFTER_PROCESS - is send immediately after a workitem was processed
To react on changes on a workitem in the front-end see the CDI event 'org.imixs.workflow.faces.workitem.WorkflowEvent'
- Version:
- 1.0
- Author:
- Ralph Soika
- See Also:
WorkflowService
-
-
Field Summary
Fields Modifier and Type Field Description static intAFTER_PROCESSstatic intBEFORE_PROCESS
-
Constructor Summary
Constructors Constructor Description ProcessingEvent(ItemCollection document, int eventType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemCollectiongetDocument()intgetEventType()
-
-
-
Field Detail
-
BEFORE_PROCESS
public static final int BEFORE_PROCESS
- See Also:
- Constant Field Values
-
AFTER_PROCESS
public static final int AFTER_PROCESS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProcessingEvent
public ProcessingEvent(ItemCollection document, int eventType)
-
-
Method Detail
-
getEventType
public int getEventType()
-
getDocument
public ItemCollection getDocument()
-
-