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 Object
implements AutomatedWorkflowTemplateJob
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ModelServicefinal 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.
-
Constructor Details
-
B2BAbstractWorkflowAutomatedAction
public B2BAbstractWorkflowAutomatedAction()
-
-
Method Details
-
perform
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
-
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
-
setModelService
-