Package org.imixs.workflow.faces.data
Class WorkflowEvent
- java.lang.Object
-
- org.imixs.workflow.faces.data.WorkflowEvent
-
public class WorkflowEvent extends Object
The WorkflowEvent provides a CDI event fired by the DocumentController and WorkflowController. This event can be used in a observer pattern of a CDI bean to react on UI events in a jsf page.The WorkflowEvent defines the following event types fired by the WorkflowController:
- WORKITEM_BEFORE_PROCESS - is send immediately before a workitem will be processed
- WORKITEM_AFTER_PROCESS - is send immediately after a workitem was processed
- WORKITEM_CHANGED - is send immediately after a workitem was loaded
The following event types are fired by the DocumentController:
- DOCUMENT_BEFORE_SAVE - is send immediately before the document will be saved
- DOCUMENT_AFTER_SAVE - is send immediately after the document was saved
- DOCUMENT_CHANGED - is send immediately after the document was loaded
- DOCUMENT_BEFORE_DELETE - is send immediately before the document will be deleted
- DOCUMENT_AFTER_DELETE - is send immediately after the document was deleted
-
-
Field Summary
Fields Modifier and Type Field Description static intDOCUMENT_AFTER_DELETEstatic intDOCUMENT_AFTER_SAVEstatic intDOCUMENT_BEFORE_DELETEstatic intDOCUMENT_BEFORE_SAVEstatic intDOCUMENT_CHANGEDstatic intDOCUMENT_CREATEDstatic intDOCUMENT_INITIALIZEDstatic intWORKITEM_AFTER_PROCESSstatic intWORKITEM_BEFORE_PROCESSstatic intWORKITEM_CHANGEDstatic intWORKITEM_CREATED
-
Constructor Summary
Constructors Constructor Description WorkflowEvent(org.imixs.workflow.ItemCollection workitem, int eventType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEventType()org.imixs.workflow.ItemCollectiongetWorkitem()
-
-
-
Field Detail
-
DOCUMENT_CREATED
public static final int DOCUMENT_CREATED
- See Also:
- Constant Field Values
-
DOCUMENT_INITIALIZED
public static final int DOCUMENT_INITIALIZED
- See Also:
- Constant Field Values
-
DOCUMENT_CHANGED
public static final int DOCUMENT_CHANGED
- See Also:
- Constant Field Values
-
DOCUMENT_BEFORE_SAVE
public static final int DOCUMENT_BEFORE_SAVE
- See Also:
- Constant Field Values
-
DOCUMENT_AFTER_SAVE
public static final int DOCUMENT_AFTER_SAVE
- See Also:
- Constant Field Values
-
DOCUMENT_BEFORE_DELETE
public static final int DOCUMENT_BEFORE_DELETE
- See Also:
- Constant Field Values
-
DOCUMENT_AFTER_DELETE
public static final int DOCUMENT_AFTER_DELETE
- See Also:
- Constant Field Values
-
WORKITEM_CREATED
public static final int WORKITEM_CREATED
- See Also:
- Constant Field Values
-
WORKITEM_CHANGED
public static final int WORKITEM_CHANGED
- See Also:
- Constant Field Values
-
WORKITEM_BEFORE_PROCESS
public static final int WORKITEM_BEFORE_PROCESS
- See Also:
- Constant Field Values
-
WORKITEM_AFTER_PROCESS
public static final int WORKITEM_AFTER_PROCESS
- See Also:
- Constant Field Values
-
-