Package org.apache.wiki.event
Class WorkflowEvent
- java.lang.Object
- 
- java.util.EventObject
- 
- org.apache.wiki.event.WikiEvent
- 
- org.apache.wiki.event.WorkflowEvent
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public final class WorkflowEvent extends WikiEvent WorkflowEvent indicates that a state change to a Workflow: started, running, waiting, completed, aborted. These correspond exactly to the states described in the Workflow. All events are logged with priority INFO.- Since:
- 2.3.79
- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intABORTEDIf a Step has elected to abort the Workflow.static intCOMPLETEDAfter the Workflow has finished processing all Steps, without errors.static intCREATEDAfter Workflow instantiation.static intDQ_ADDITIONWhen the workflow wishes to add a Decision to the DecisionQueuestatic intDQ_DECIDEWhen the decision queue decides the outcome of a Decisionstatic intDQ_REASSIGNWhen the decision queue reassigns a Decisionstatic intDQ_REMOVALWhen the workflow wishes to remove a Decision from the DecisionQueuestatic intRUNNINGAfter the Workflow has been started (or re-started) using theorg.apache.wiki.workflow.Workflow#start()method, but before it has finished processing all Steps.static intSTARTEDAfter the Workflow has been instantiated, but before it has been started using theorg.apache.wiki.workflow.Workflow#start()method.static intWAITINGWhen the Workflow has temporarily paused, for example because of a pending Decision.
 - 
Constructor SummaryConstructors Constructor Description WorkflowEvent(java.lang.Object src, int type)Constructs a new instance of this event type, which signals a security event has occurred.WorkflowEvent(java.lang.Object src, int type, java.lang.Object... args)Constructs a new instance of this event type, which signals a security event has occurred.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringeventName(int type)Returns a textual representation of an event type.java.lang.StringtoString()Prints a String (human-readable) representation of this object.- 
Methods inherited from class org.apache.wiki.event.WikiEventeventName, getArg, getArgs, getSrc, getType, getTypeDescription, getWhen, isValidType, setType
 
- 
 
- 
- 
- 
Field Detail- 
CREATEDpublic static final int CREATED After Workflow instantiation.- See Also:
- Constant Field Values
 
 - 
STARTEDpublic static final int STARTED After the Workflow has been instantiated, but before it has been started using theorg.apache.wiki.workflow.Workflow#start()method.- See Also:
- Constant Field Values
 
 - 
RUNNINGpublic static final int RUNNING After the Workflow has been started (or re-started) using theorg.apache.wiki.workflow.Workflow#start()method, but before it has finished processing all Steps.- See Also:
- Constant Field Values
 
 - 
WAITINGpublic static final int WAITING When the Workflow has temporarily paused, for example because of a pending Decision.- See Also:
- Constant Field Values
 
 - 
COMPLETEDpublic static final int COMPLETED After the Workflow has finished processing all Steps, without errors.- See Also:
- Constant Field Values
 
 - 
ABORTEDpublic static final int ABORTED If a Step has elected to abort the Workflow.- See Also:
- Constant Field Values
 
 - 
DQ_ADDITIONpublic static final int DQ_ADDITION When the workflow wishes to add a Decision to the DecisionQueue- See Also:
- Constant Field Values
 
 - 
DQ_REMOVALpublic static final int DQ_REMOVAL When the workflow wishes to remove a Decision from the DecisionQueue- See Also:
- Constant Field Values
 
 - 
DQ_DECIDEpublic static final int DQ_DECIDE When the decision queue decides the outcome of a Decision- See Also:
- Constant Field Values
 
 - 
DQ_REASSIGNpublic static final int DQ_REASSIGN When the decision queue reassigns a Decision- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
WorkflowEventpublic WorkflowEvent(java.lang.Object src, int type) Constructs a new instance of this event type, which signals a security event has occurred. Thesourceparameter is required, and may not benull. When the WikiSecurityEvent is constructed, the security loggerWikiSecurityEvent#logis notified.- Parameters:
- src- the source of the event, which can be any object: a wiki page, group or authentication/authentication/group manager.
- type- the type of event
 
 - 
WorkflowEventpublic WorkflowEvent(java.lang.Object src, int type, java.lang.Object... args) Constructs a new instance of this event type, which signals a security event has occurred. Thesourceparameter is required, and may not benull. When the WikiSecurityEvent is constructed, the security loggerWikiSecurityEvent#logis notified.- Parameters:
- src- the source of the event, which can be any object: a wiki page, group or authentication/authentication/group manager.
- type- the type of event
 
 
- 
 
-