Package de.hybris.platform.workflow.impl
Class DefaultWorkflowProcessingService
java.lang.Object
de.hybris.platform.workflow.impl.DefaultWorkflowProcessingService
- All Implemented Interfaces:
WorkflowProcessingService
Default implementation of
WorkflowProcessingService- Spring Bean ID:
- workflowProcessingService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanactivate(WorkflowActionModel action) Activates an action and saves the activationprotected voidprotected voidchosen(WorkflowDecisionModel selDec) protected voiddecide(WorkflowActionModel action) voiddecideAction(WorkflowActionModel action, WorkflowDecisionModel decision) Decides an action and assign a decisionbooleanendWorkflow(WorkflowModel workflow) Ends workflowgetLinks(AbstractWorkflowDecisionModel decision, AbstractWorkflowActionModel action) protected booleanvoidsetActionActivationStrategy(ActionActivationStrategy actionActivationStrategy) voidsetAndConnectionBetweenActionAndDecision(WorkflowDecisionModel decision, WorkflowActionModel workflowAction) Sets "andconnection" attribute for links.voidsetDecideActionStrategy(DecideActionStrategy decideActionStrategy) voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService) voidsetModelService(ModelService modelService) voidsetOrConnectionBetweenActionAndDecision(WorkflowDecisionModel decision, WorkflowActionModel workflowAction) Sets "orconnection" attribute for links.voidsetWorkflowActionService(WorkflowActionService workflowActionService) voidsetWorkflowService(WorkflowService workflowService) booleanstartWorkflow(WorkflowModel workflowModel) Starts workflowbooleanterminateWorkflow(WorkflowModel workflowModel) Terminates workflowbooleantoggleActions(WorkflowModel workflow) Toggle all actions assigned to workflowprotected voidwriteAutomatedComment(WorkflowActionModel action, String message, String... messageParams)
-
Constructor Details
-
DefaultWorkflowProcessingService
public DefaultWorkflowProcessingService()
-
-
Method Details
-
activate
Activates an action and saves the activation Changes action and saves it.- Specified by:
activatein interfaceWorkflowProcessingService- Parameters:
action- to be activated- Returns:
- true if action was activated
- Throws:
ActivationWorkflowActionException
-
writeAutomatedComment
protected void writeAutomatedComment(WorkflowActionModel action, String message, String... messageParams) -
decideAction
Decides an action and assign a decision Changes action and saves it.- Specified by:
decideActionin interfaceWorkflowProcessingService- Parameters:
action- to be decideddecision- made
-
setAndConnectionBetweenActionAndDecision
public void setAndConnectionBetweenActionAndDecision(WorkflowDecisionModel decision, WorkflowActionModel workflowAction) Description copied from interface:WorkflowProcessingServiceSets "andconnection" attribute for links.- Specified by:
setAndConnectionBetweenActionAndDecisionin interfaceWorkflowProcessingService
-
setOrConnectionBetweenActionAndDecision
public void setOrConnectionBetweenActionAndDecision(WorkflowDecisionModel decision, WorkflowActionModel workflowAction) Description copied from interface:WorkflowProcessingServiceSets "orconnection" attribute for links.- Specified by:
setOrConnectionBetweenActionAndDecisionin interfaceWorkflowProcessingService
-
startWorkflow
Starts workflow Changes workflow status and saves it.- Specified by:
startWorkflowin interfaceWorkflowProcessingService- Parameters:
workflowModel- to be started- Returns:
- if started
-
predecessorsCompleted
-
endWorkflow
Ends workflow Changes workflow status and saves it.- Specified by:
endWorkflowin interfaceWorkflowProcessingService- Parameters:
workflow- to be ended- Returns:
- if ended
-
terminateWorkflow
Terminates workflow Changes workflow status and saves it.- Specified by:
terminateWorkflowin interfaceWorkflowProcessingService- Parameters:
workflowModel- to be terminated- Returns:
- if terminated
-
getLinks
public Collection<LinkModel> getLinks(AbstractWorkflowDecisionModel decision, AbstractWorkflowActionModel action) -
chosen
-
checkIncomingLinks
-
decide
-
toggleActions
Toggle all actions assigned to workflow Changes workflow status and saves it.- Specified by:
toggleActionsin interfaceWorkflowProcessingService- Returns:
- true if toggled
-
setModelService
- Parameters:
modelService- the modelService to set
-
setFlexibleSearchService
- Parameters:
flexibleSearchService- the flexibleSearchService to set
-
setWorkflowActionService
- Parameters:
workflowActionService- the workflowActionService to set
-
setActionActivationStrategy
- Parameters:
actionActivationStrategy- the actionActivationStrategy to set
-
setDecideActionStrategy
- Parameters:
decideActionStrategy- the decideActionStrategy to set
-
setWorkflowService
- Parameters:
workflowService- the workflowService to set
-
getAutomatedWorkflowRegistry
-
lookupAutomatedWorkflowRegistry
-