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 org.apache.wiki.workflow.Workflow. All events
are logged with priority INFO.
| Modifier and Type | Field and Description |
|---|---|
static int |
ABORTED
If a Step has elected to abort the Workflow.
|
static int |
COMPLETED
After the Workflow has finished processing all Steps, without errors.
|
static int |
CREATED
After Workflow instantiation.
|
static int |
DQ_ADDITION
When the workflow wishes to add a Decision to the DecisionQueue
|
static int |
DQ_DECIDE
When the decision queue decides the outcome of a Decision
|
static int |
DQ_REASSIGN
When the decision queue reassigns a Decision
|
static int |
DQ_REMOVAL
When the workflow wishes to remove a Decision from the DecisionQueue
|
static int |
RUNNING
After the Workflow has been started (or re-started) using the
org.apache.wiki.workflow.Workflow#start() method,
but before it has finished processing all Steps. |
static int |
STARTED
After the Workflow has been instantiated, but before it has been started
using the
org.apache.wiki.workflow.Workflow#start() method. |
static int |
WAITING
When the Workflow has temporarily paused, for example because of a pending Decision.
|
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
eventName(int type)
Returns a textual representation of an event type.
|
java.lang.String |
toString()
Prints a String (human-readable) representation of this object.
|
eventName, getArg, getArgs, getSrc, getType, getTypeDescription, getWhen, isValidType, setTypepublic static final int CREATED
public static final int STARTED
org.apache.wiki.workflow.Workflow#start() method.public static final int RUNNING
org.apache.wiki.workflow.Workflow#start() method,
but before it has finished processing all Steps.public static final int WAITING
public static final int COMPLETED
public static final int ABORTED
public static final int DQ_ADDITION
public static final int DQ_REMOVAL
public static final int DQ_DECIDE
public static final int DQ_REASSIGN
public WorkflowEvent(java.lang.Object src, int type)
source parameter is required, and may not be null. When the
WikiSecurityEvent is constructed, the security logger WikiSecurityEvent#log is notified.src - the source of the event, which can be any object: a wiki page, group or authentication/authentication/group manager.type - the type of eventpublic WorkflowEvent(java.lang.Object src, int type, java.lang.Object... args)
source parameter is required, and may not be null. When the
WikiSecurityEvent is constructed, the security logger WikiSecurityEvent#log is notified.src - the source of the event, which can be any object: a wiki page, group or authentication/authentication/group manager.type - the type of eventCopyright (c) 2001-2021 The Apache Software Foundation. All rights reserved.