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 Details

  • Constructor Details

    • WorkflowEvent

      public WorkflowEvent(ItemCollection workitem, int eventType)
  • Method Details

    • getEventType

      public int getEventType()
    • getWorkitem

      public ItemCollection getWorkitem()