| com.ecyrd.jspwiki.event.WikiEvent com.ecyrd.jspwiki.event.WorkflowEvent
WorkflowEvent | final public class WorkflowEvent extends WikiEvent (Code) | |
WorkflowEvent indicates that a state change to a Workflow: started, running,
waiting, completed, aborted. These correspond exactly to the states described
in the
com.ecyrd.jspwiki.workflow.Workflow . All events are logged
with priority INFO.
author: Andrew Jaquith since: 2.3.79 |
Field Summary | |
final public static int | ABORTED If a Step has elected to abort the Workflow. | final public static int | COMPLETED After the Workflow has finished processing all Steps, without errors. | final public static int | CREATED After Workflow instantiation. | final public static int | RUNNING fter the Workflow has been started (or re-started) using the
com.ecyrd.jspwiki.workflow.Workflow.start method,
but before it has finished processing all Steps. | final public static int | STARTED After the Workflow has been instantiated, but before it has been started
using the
com.ecyrd.jspwiki.workflow.Workflow.start method. | final public static int | WAITING When the Workflow has temporarily paused, for example because of a
pending Decision. |
Constructor Summary | |
public | WorkflowEvent(Object src, int type) Constructs a new instance of this event type, which signals a security
event has occurred. |
Method Summary | |
final public String | eventName(int type) Returns a textual representation of an event type. | final public Workflow | getWorkflow() Convenience method that returns the Workflow to which the event applied. | final public String | toString() Prints a String (human-readable) representation of this object. |
ABORTED | final public static int ABORTED(Code) | | If a Step has elected to abort the Workflow.
|
COMPLETED | final public static int COMPLETED(Code) | | After the Workflow has finished processing all Steps, without errors.
|
CREATED | final public static int CREATED(Code) | | After Workflow instantiation.
|
WAITING | final public static int WAITING(Code) | | When the Workflow has temporarily paused, for example because of a
pending Decision.
|
WorkflowEvent | public WorkflowEvent(Object src, int type)(Code) | | Constructs a new instance of this event type, which signals a security
event has occurred. The source parameter is required, and
may not be null . When the WikiSecurityEvent is
constructed, the security logger
WikiSecurityEvent.log is notified.
Parameters: src - the source of the event, which can be any object: a wiki page,group or authentication/authentication/group manager. Parameters: type - the type of event |
eventName | final public String eventName(int type)(Code) | | Returns a textual representation of an event type.
Parameters: type - the type the string representation |
getWorkflow | final public Workflow getWorkflow()(Code) | | Convenience method that returns the Workflow to which the event applied.
the Workflow |
|
|