Package org.imixs.workflow.engine
Class DocumentEvent
- java.lang.Object
-
- org.imixs.workflow.engine.DocumentEvent
-
public class DocumentEvent extends Object
The DocumentEvent provides a CDI observer pattern. The DocumentEvent is fired by the DocumentService EJB. An event Observer can react on a save or load event. The DocumentEvent defines the following event types:- ON_DOCUMENT_SAVE - send immediately before a document will be saved
- ON_DOCUMENT_LOAD - send immediately after a document was loaded
- ON_DOCUMENT_DELETE - send immediately before a document will be deleted
- Version:
- 1.0
- Author:
- Ralph Soika
- See Also:
WorkflowService
-
-
Field Summary
Fields Modifier and Type Field Description static intON_DOCUMENT_DELETEstatic intON_DOCUMENT_LOADstatic intON_DOCUMENT_SAVE
-
Constructor Summary
Constructors Constructor Description DocumentEvent(ItemCollection document, int eventType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemCollectiongetDocument()intgetEventType()
-
-
-
Field Detail
-
ON_DOCUMENT_SAVE
public static final int ON_DOCUMENT_SAVE
- See Also:
- Constant Field Values
-
ON_DOCUMENT_LOAD
public static final int ON_DOCUMENT_LOAD
- See Also:
- Constant Field Values
-
ON_DOCUMENT_DELETE
public static final int ON_DOCUMENT_DELETE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DocumentEvent
public DocumentEvent(ItemCollection document, int eventType)
-
-
Method Detail
-
getEventType
public int getEventType()
-
getDocument
public ItemCollection getDocument()
-
-