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.
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 |
RUNNING
fter the Workflow has been started (or re-started) using the
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
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.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
eventName(int type)
Returns a textual representation of an event type.
|
Workflow |
getWorkflow()
Convenience method that returns the Workflow to which the event applied.
|
java.lang.String |
toString()
Prints a String (human-readable) representation of this object.
|
eventName, getType, getTypeDescription, getWhen, isValidType, setType
public static final int CREATED
public static final int STARTED
Workflow.start()
method.public static final int RUNNING
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 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
the type of eventpublic final Workflow getWorkflow()
public final java.lang.String toString()
public final java.lang.String eventName(int type)
type
- the type
the typestSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.