|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ecyrd.jspwiki.workflow.AbstractStep
com.ecyrd.jspwiki.workflow.Task
com.ecyrd.jspwiki.PageManager.SaveWikiPageTask
public static class PageManager.SaveWikiPageTask
Inner class that handles the actual page save and post-save actions. Instances
of this class are assumed to have been added to an approval workflow via
WorkflowBuilder.buildApprovalWorkflow(Principal, String, Task, String, com.ecyrd.jspwiki.workflow.Fact[], Task, String)
;
they will not function correctly otherwise.
Constructor Summary | |
---|---|
PageManager.SaveWikiPageTask()
Creates the Task. |
Method Summary | |
---|---|
Outcome |
execute()
Executes the processing for this Step and returns an Outcome indicating
if it succeeded (
Note that successful execution of this methods does not necessarily mean
that the Step is considered "complete"; rather, it just means that it has
executed. Therefore, it is possible that |
Methods inherited from class com.ecyrd.jspwiki.workflow.Task |
---|
getActor, getSuccessor, setSuccessor |
Methods inherited from class com.ecyrd.jspwiki.workflow.AbstractStep |
---|
addError, addSuccessor, getAvailableOutcomes, getEndTime, getErrors, getMessageArguments, getMessageKey, getOutcome, getOwner, getStartTime, getSuccessor, getWorkflow, isCompleted, isStarted, setOutcome, setWorkflow, start |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageManager.SaveWikiPageTask()
Method Detail |
---|
public Outcome execute() throws WikiException
Executes the processing for this Step and returns an Outcome indicating
if it succeeded (Outcome.STEP_COMPLETE
or
Outcome.STEP_ABORT
). Processing instructions can do just about
anything, such as executing custom business logic or changing the Step's
final outcome via Step.setOutcome(Outcome)
. A return value of
STEP_COMPLETE
indicates that the instructions executed completely,
without errors; STEP_ABORT
indicates that the Step and its
parent Workflow should be aborted (that is, fail silently without error).
If the execution step encounters any errors, it should throw a
WikiException or a subclass.
Note that successful execution of this methods does not necessarily mean
that the Step is considered "complete"; rather, it just means that it has
executed. Therefore, it is possible that execute
could run
multiple times.
execute
in interface Step
execute
in class AbstractStep
WikiException
- if the step encounters errors while executing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |