Class B2BAbstractWorkflowAutomatedAction
- java.lang.Object
-
- de.hybris.platform.b2b.process.approval.actions.B2BAbstractWorkflowAutomatedAction
-
- All Implemented Interfaces:
AutomatedWorkflowTemplateJob
- Direct Known Subclasses:
AfterApproveOrderWorkflowDecisionAction,AfterRejectOrderWorkflowDecisionAction,ApproveDecisionAutomatedAction,B2BAfterWorkflowAction,RejectDecisionAutomatedAction
public abstract class B2BAbstractWorkflowAutomatedAction extends java.lang.Object implements AutomatedWorkflowTemplateJob
-
-
Constructor Summary
Constructors Constructor Description B2BAbstractWorkflowAutomatedAction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected ModelServicegetModelService()WorkflowDecisionModelperform(WorkflowActionModel action)execution method for the automated workflow jobabstract voidperformAction(WorkflowActionModel action)voidsetModelService(ModelService modelService)protected voidupdatePermissionResultsStatus(OrderModel order, PrincipalModel principalAssigned, PermissionStatus status)Assigns the PermissionStatus to all theB2BPermissionResultModels associated with a given order and are assigned to the principal.
-
-
-
Method Detail
-
perform
public final WorkflowDecisionModel perform(WorkflowActionModel action)
Description copied from interface:AutomatedWorkflowTemplateJobexecution method for the automated workflow job- Specified by:
performin interfaceAutomatedWorkflowTemplateJob- Parameters:
action- the workflow action that activated this method- Returns:
- the decision that should be activated after this action finishes
-
performAction
public abstract void performAction(WorkflowActionModel action)
-
updatePermissionResultsStatus
protected void updatePermissionResultsStatus(OrderModel order, PrincipalModel principalAssigned, PermissionStatus status)
Assigns the PermissionStatus to all theB2BPermissionResultModels associated with a given order and are assigned to the principal.- Parameters:
order- A b2c orderprincipalAssigned- A hybris principalstatus- APermissionStatusenumeration
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
-