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 ModelService
getModelService()
WorkflowDecisionModel
perform(WorkflowActionModel action)
execution method for the automated workflow jobabstract void
performAction(WorkflowActionModel action)
void
setModelService(ModelService modelService)
protected void
updatePermissionResultsStatus(OrderModel order, PrincipalModel principalAssigned, PermissionStatus status)
Assigns the PermissionStatus to all theB2BPermissionResultModel
s associated with a given order and are assigned to the principal.
-
-
-
Method Detail
-
perform
public final WorkflowDecisionModel perform(WorkflowActionModel action)
Description copied from interface:AutomatedWorkflowTemplateJob
execution method for the automated workflow job- Specified by:
perform
in 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 theB2BPermissionResultModel
s associated with a given order and are assigned to the principal.- Parameters:
order
- A b2c orderprincipalAssigned
- A hybris principalstatus
- APermissionStatus
enumeration
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
-