Package de.hybris.platform.workflow.impl
Class DefaultWorkflowProcessingService
- java.lang.Object
-
- de.hybris.platform.workflow.impl.DefaultWorkflowProcessingService
-
- All Implemented Interfaces:
WorkflowProcessingService
- Direct Known Subclasses:
B2BRegistrationTestWorkflowProcessingService
public class DefaultWorkflowProcessingService extends java.lang.Object implements WorkflowProcessingService
Default implementation ofWorkflowProcessingService- Spring Bean ID:
- workflowProcessingService
-
-
Constructor Summary
Constructors Constructor Description DefaultWorkflowProcessingService()
-
Method Summary
-
-
-
Method Detail
-
activate
public boolean activate(WorkflowActionModel action) throws ActivationWorkflowActionException
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, java.lang.String message, java.lang.String... messageParams)
-
decideAction
public void decideAction(WorkflowActionModel action, WorkflowDecisionModel decision)
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
public boolean startWorkflow(WorkflowModel workflowModel)
Starts workflow Changes workflow status and saves it.- Specified by:
startWorkflowin interfaceWorkflowProcessingService- Parameters:
workflowModel- to be started- Returns:
- if started
-
predecessorsCompleted
protected boolean predecessorsCompleted(WorkflowActionModel action)
-
endWorkflow
public boolean endWorkflow(WorkflowModel workflow)
Ends workflow Changes workflow status and saves it.- Specified by:
endWorkflowin interfaceWorkflowProcessingService- Parameters:
workflow- to be ended- Returns:
- if ended
-
terminateWorkflow
public boolean terminateWorkflow(WorkflowModel workflowModel)
Terminates workflow Changes workflow status and saves it.- Specified by:
terminateWorkflowin interfaceWorkflowProcessingService- Parameters:
workflowModel- to be terminated- Returns:
- if terminated
-
getLinks
public java.util.Collection<LinkModel> getLinks(AbstractWorkflowDecisionModel decision, AbstractWorkflowActionModel action)
-
chosen
protected void chosen(WorkflowDecisionModel selDec)
-
checkIncomingLinks
protected void checkIncomingLinks(WorkflowActionModel action)
-
decide
protected void decide(WorkflowActionModel action)
-
toggleActions
public boolean toggleActions(WorkflowModel workflow)
Toggle all actions assigned to workflow Changes workflow status and saves it.- Specified by:
toggleActionsin interfaceWorkflowProcessingService- Returns:
- true if toggled
-
setModelService
public void setModelService(ModelService modelService)
- Parameters:
modelService- the modelService to set
-
setFlexibleSearchService
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
- Parameters:
flexibleSearchService- the flexibleSearchService to set
-
setWorkflowActionService
public void setWorkflowActionService(WorkflowActionService workflowActionService)
- Parameters:
workflowActionService- the workflowActionService to set
-
setActionActivationStrategy
public void setActionActivationStrategy(ActionActivationStrategy actionActivationStrategy)
- Parameters:
actionActivationStrategy- the actionActivationStrategy to set
-
setDecideActionStrategy
public void setDecideActionStrategy(DecideActionStrategy decideActionStrategy)
- Parameters:
decideActionStrategy- the decideActionStrategy to set
-
setWorkflowService
public void setWorkflowService(WorkflowService workflowService)
- Parameters:
workflowService- the workflowService to set
-
getAutomatedWorkflowRegistry
public AutomatedWorkflowTemplateRegistry getAutomatedWorkflowRegistry()
-
lookupAutomatedWorkflowRegistry
public AutomatedWorkflowTemplateRegistry lookupAutomatedWorkflowRegistry()
-
-