Package de.hybris.platform.workflow
Interface WorkflowProcessingService
-
- All Known Implementing Classes:
B2BRegistrationTestWorkflowProcessingService,DefaultWorkflowProcessingService
public interface WorkflowProcessingServiceService to process workflows
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanactivate(WorkflowActionModel action)Activates an action and saves the activationvoiddecideAction(WorkflowActionModel action, WorkflowDecisionModel decision)Decides an action and assign a decisionbooleanendWorkflow(WorkflowModel workflow)Ends workflowvoidsetAndConnectionBetweenActionAndDecision(WorkflowDecisionModel decision, WorkflowActionModel workflowAction)Sets "andconnection" attribute for links.voidsetOrConnectionBetweenActionAndDecision(WorkflowDecisionModel decision, WorkflowActionModel workflowAction)Sets "orconnection" attribute for links.booleanstartWorkflow(WorkflowModel workflow)Starts workflowbooleanterminateWorkflow(WorkflowModel workflow)Terminates workflowbooleantoggleActions(WorkflowModel workflow)Toggle all actions assigned to workflow
-
-
-
Method Detail
-
activate
boolean activate(WorkflowActionModel action) throws ActivationWorkflowActionException
Activates an action and saves the activation- Parameters:
action- to be activated- Returns:
- true if action was activated
- Throws:
ActivationWorkflowActionException
-
decideAction
void decideAction(WorkflowActionModel action, WorkflowDecisionModel decision)
Decides an action and assign a decision- Parameters:
action- to be decideddecision- made
-
terminateWorkflow
boolean terminateWorkflow(WorkflowModel workflow)
Terminates workflow- Parameters:
workflow- to be terminated- Returns:
- if terminated
-
endWorkflow
boolean endWorkflow(WorkflowModel workflow)
Ends workflow- Parameters:
workflow- to be ended- Returns:
- if ended
-
startWorkflow
boolean startWorkflow(WorkflowModel workflow)
Starts workflow- Parameters:
workflow- to be started- Returns:
- if started
-
setAndConnectionBetweenActionAndDecision
void setAndConnectionBetweenActionAndDecision(WorkflowDecisionModel decision, WorkflowActionModel workflowAction)
Sets "andconnection" attribute for links.
-
setOrConnectionBetweenActionAndDecision
void setOrConnectionBetweenActionAndDecision(WorkflowDecisionModel decision, WorkflowActionModel workflowAction)
Sets "orconnection" attribute for links.
-
toggleActions
boolean toggleActions(WorkflowModel workflow)
Toggle all actions assigned to workflow- Parameters:
workflow-- Returns:
- true if toggled
-
-