Class ApprovePageAutomatedWorkflowAction
- java.lang.Object
-
- de.hybris.platform.cms2.workflow.actions.ApprovePageAutomatedWorkflowAction
-
- All Implemented Interfaces:
AutomatedWorkflowTemplateJob
public class ApprovePageAutomatedWorkflowAction extends java.lang.Object implements AutomatedWorkflowTemplateJob
Sets the approval status to APPROVED for all pages in the workflow attachments
-
-
Constructor Summary
Constructors Constructor Description ApprovePageAutomatedWorkflowAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ModelService
getModelService()
protected java.util.function.Predicate<ItemModel>
getPageTypePredicate()
protected org.springframework.transaction.PlatformTransactionManager
getTransactionManager()
WorkflowDecisionModel
perform(WorkflowActionModel action)
execution method for the automated workflow jobvoid
setModelService(ModelService modelService)
void
setPageTypePredicate(java.util.function.Predicate<ItemModel> pageTypePredicate)
void
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
-
-
-
Method Detail
-
perform
public 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
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getPageTypePredicate
protected java.util.function.Predicate<ItemModel> getPageTypePredicate()
-
setPageTypePredicate
public void setPageTypePredicate(java.util.function.Predicate<ItemModel> pageTypePredicate)
-
getTransactionManager
protected org.springframework.transaction.PlatformTransactionManager getTransactionManager()
-
setTransactionManager
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
-
-