Class StartWorkflow
- java.lang.Object
-
- de.hybris.platform.processengine.action.AbstractAction<T>
-
- de.hybris.platform.processengine.action.AbstractProceduralAction
-
- de.hybris.platform.b2b.process.approval.actions.AbstractProceduralB2BOrderAproveAction
-
- de.hybris.platform.b2b.process.approval.actions.StartWorkflow
-
- All Implemented Interfaces:
Action
public class StartWorkflow extends AbstractProceduralB2BOrderAproveAction
Starts a approval work flow and schedules aEscalationTaskModel
which escalates the workflow to next available approver if the order has not been approved within 24 hours.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.processengine.action.AbstractProceduralAction
AbstractProceduralAction.Transition
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.processengine.action.AbstractAction
modelService, processParameterHelper
-
Fields inherited from interface de.hybris.platform.processengine.spring.Action
ERROR_RETURN_CODE, RETRY_RETURN_CODE
-
-
Constructor Summary
Constructors Constructor Description StartWorkflow()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
executeAction(B2BApprovalProcessModel aprovalProcess)
Execute an action of a B2B approval processboolean
isEscalate()
void
setB2bEscalationService(B2BEscalationService b2bEscalationService)
Sets the b2b escalation service.void
setB2bWorkflowIntegrationService(B2BWorkflowIntegrationService b2bWorkflowIntegrationService)
Sets the b2b workflow integration service.void
setEscalate(boolean escalate)
void
setPermissionResultHelper(B2BPermissionResultHelperImpl permissionResultHelper)
void
setWorkflowProcessingService(WorkflowProcessingService workflowProcessingService)
void
setWorkflowService(WorkflowService workflowService)
-
Methods inherited from class de.hybris.platform.b2b.process.approval.actions.AbstractProceduralB2BOrderAproveAction
executeAction
-
Methods inherited from class de.hybris.platform.processengine.action.AbstractProceduralAction
execute, getTransitions
-
Methods inherited from class de.hybris.platform.processengine.action.AbstractAction
createTransitions, getModelService, getProcessParameterHelper, getProcessParameterValue, refresh, save, setModelService, setOrderStatus, setProcessParameterHelper
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.processengine.spring.Action
getCurrentActionDefinitionContext
-
-
-
-
Method Detail
-
executeAction
public void executeAction(B2BApprovalProcessModel aprovalProcess) throws RetryLaterException
Description copied from class:AbstractProceduralB2BOrderAproveAction
Execute an action of a B2B approval process- Specified by:
executeAction
in classAbstractProceduralB2BOrderAproveAction
- Parameters:
aprovalProcess
- the process context to work on- Throws:
RetryLaterException
- Triggers the action to be processes again.
-
setB2bWorkflowIntegrationService
public void setB2bWorkflowIntegrationService(B2BWorkflowIntegrationService b2bWorkflowIntegrationService)
Sets the b2b workflow integration service.- Parameters:
b2bWorkflowIntegrationService
- the b2bWorkflowIntegrationService to set
-
setB2bEscalationService
public void setB2bEscalationService(B2BEscalationService b2bEscalationService)
Sets the b2b escalation service.- Parameters:
b2bEscalationService
- the b2bEscalationService to set
-
setPermissionResultHelper
public void setPermissionResultHelper(B2BPermissionResultHelperImpl permissionResultHelper)
- Parameters:
permissionResultHelper
- the permissionResultHelper to set
-
setWorkflowProcessingService
public void setWorkflowProcessingService(WorkflowProcessingService workflowProcessingService)
-
setWorkflowService
public void setWorkflowService(WorkflowService workflowService)
-
isEscalate
public boolean isEscalate()
- Returns:
- the escalate
-
setEscalate
public void setEscalate(boolean escalate)
- Parameters:
escalate
- the escalate to set
-
-