Package de.hybris.platform.workflow
Interface WorkflowProcessingService
-
- All Known Implementing Classes:
B2BRegistrationTestWorkflowProcessingService
,DefaultWorkflowProcessingService
public interface WorkflowProcessingService
Service to process workflows
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
activate(WorkflowActionModel action)
Activates an action and saves the activationvoid
decideAction(WorkflowActionModel action, WorkflowDecisionModel decision)
Decides an action and assign a decisionboolean
endWorkflow(WorkflowModel workflow)
Ends workflowvoid
setAndConnectionBetweenActionAndDecision(WorkflowDecisionModel decision, WorkflowActionModel workflowAction)
Sets "andconnection" attribute for links.void
setOrConnectionBetweenActionAndDecision(WorkflowDecisionModel decision, WorkflowActionModel workflowAction)
Sets "orconnection" attribute for links.boolean
startWorkflow(WorkflowModel workflow)
Starts workflowboolean
terminateWorkflow(WorkflowModel workflow)
Terminates workflowboolean
toggleActions(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
-
-