public class SaveWikiPageTask extends Task
TIME_NOT_SET| Constructor and Description |
|---|
SaveWikiPageTask()
Creates the Task.
|
| Modifier and Type | Method and Description |
|---|---|
Outcome |
execute(Context context)
Executes the processing for this Step and returns an Outcome indicating if it succeeded (
Outcome.STEP_COMPLETE or
Outcome.STEP_ABORT). |
getActor, getSuccessor, setSuccessoraddError, addSuccessor, getAvailableOutcomes, getEndTime, getErrors, getMessageKey, getOutcome, getStartTime, getSuccessor, getWorkflowContext, getWorkflowId, isCompleted, isStarted, setOutcome, setWorkflow, startpublic SaveWikiPageTask()
public Outcome execute(Context context) 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 Stepexecute in class AbstractStepcontext - executing wiki context.WikiException - if the step encounters errors while executingCopyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.