Class ApprovePageAutomatedWorkflowAction
java.lang.Object
de.hybris.platform.cms2.workflow.actions.ApprovePageAutomatedWorkflowAction
- All Implemented Interfaces:
AutomatedWorkflowTemplateJob
public class ApprovePageAutomatedWorkflowAction
extends Object
implements AutomatedWorkflowTemplateJob
Sets the approval status to APPROVED for all pages in the workflow attachments
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ModelServiceprotected RelatedItemsOnPageServiceprotected org.springframework.transaction.PlatformTransactionManagerperform(WorkflowActionModel action) execution method for the automated workflow jobvoidsetModelService(ModelService modelService) voidsetPageTypePredicate(Predicate<ItemModel> pageTypePredicate) voidsetRelatedItemsOnPageService(RelatedItemsOnPageService relatedItemsOnPageService) voidsetTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
-
Constructor Details
-
ApprovePageAutomatedWorkflowAction
public ApprovePageAutomatedWorkflowAction()
-
-
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
-
getModelService
-
setModelService
-
getPageTypePredicate
-
setPageTypePredicate
-
getTransactionManager
protected org.springframework.transaction.PlatformTransactionManager getTransactionManager() -
setTransactionManager
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) -
getRelatedItemsOnPageService
-