Package de.hybris.platform.workflow
Interface WorkflowProcessingService
- All Known Implementing Classes:
DefaultWorkflowProcessingService
public interface WorkflowProcessingService
Service to process workflows
-
Method Summary
Modifier and TypeMethodDescriptionbooleanactivate(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 Details
-
activate
Activates an action and saves the activation- Parameters:
action- to be activated- Returns:
- true if action was activated
- Throws:
ActivationWorkflowActionException
-
decideAction
Decides an action and assign a decision- Parameters:
action- to be decideddecision- made
-
terminateWorkflow
Terminates workflow- Parameters:
workflow- to be terminated- Returns:
- if terminated
-
endWorkflow
Ends workflow- Parameters:
workflow- to be ended- Returns:
- if ended
-
startWorkflow
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
Toggle all actions assigned to workflow- Parameters:
workflow-- Returns:
- true if toggled
-