Class DefaultWorkflowDesignerPersistenceService
java.lang.Object
com.hybris.backoffice.workflow.designer.persistence.DefaultWorkflowDesignerPersistenceService
- All Implemented Interfaces:
WorkflowDesignerPersistenceService
public class DefaultWorkflowDesignerPersistenceService
extends Object
implements WorkflowDesignerPersistenceService
Default implementation of persisting Workflow Template that is being edited in Workflow Designer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpersist(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context) Persists the Workflow Template data given in the context.voidsetModelService(ModelService modelService) voidsetPostprocessors(List<NetworkChartContextPostprocessor> postprocessors) voidsetPreprocessors(List<NetworkChartContextPreprocessor> preprocessors) voidsetSessionService(SessionService sessionService) voidsetWorkflowModelFinder(WorkflowModelFinder workflowModelFinder) protected voidwithinLocalView(Map<String, Object> parameters, Runnable sessionExecutionBody) Executes given statement within local session that is populated with parameters provided in the map.protected voidwithinTransaction(Runnable transactionBody) Executes given statement within single transaction
-
Constructor Details
-
DefaultWorkflowDesignerPersistenceService
public DefaultWorkflowDesignerPersistenceService()
-
-
Method Details
-
persist
public void persist(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context) Persists the Workflow Template data given in the context.- Specified by:
persistin interfaceWorkflowDesignerPersistenceService- Parameters:
context- contains the data about the Workflow Template to persist
-
withinLocalView
Executes given statement within local session that is populated with parameters provided in the map.- Parameters:
parameters- parameters that will be set in local viewsessionExecutionBody- callback to be invoked
-
withinTransaction
Executes given statement within single transaction- Parameters:
transactionBody- the statement that should be executed within transaction
-
getPreprocessors
-
setPreprocessors
-
getModelService
-
setModelService
-
getPostprocessors
-
setPostprocessors
-
getSessionService
-
setSessionService
-
getWorkflowModelFinder
-
setWorkflowModelFinder
-