Class ActionFromContextPreprocessor
java.lang.Object
com.hybris.backoffice.workflow.designer.persistence.ActionFromContextPreprocessor
- All Implemented Interfaces:
NetworkChartContextPreprocessor
public class ActionFromContextPreprocessor
extends Object
implements NetworkChartContextPreprocessor
Creates Workflow Template data related to Actions, excluding links to decisions which is handled by
LinkFromContextPreprocessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidRemoves the link between action and decision so only the action is being removed.protected voidhandleNewAction(WorkflowTemplateModel workflowTemplate, List<WorkflowActionTemplateModel> actions, com.hybris.cockpitng.components.visjs.network.data.Node node, WorkflowActionTemplateModel newAction) protected voidhandleNewOrUpdatedActions(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context) Handles new actions to be initialized withWorkflowTemplateModeland updates position changeprotected voidhandleRemovedActions(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context) RemovesWorkflowActionTemplateModels for which there is noNode(which means it was deleted).voidpreprocess(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context) Creates data related to actions given in the context.voidsetNetworkEntityFinder(NetworkEntityFinder networkEntityFinder) voidsetWorkflowModelFinder(WorkflowModelFinder workflowModelFinder) protected voidupdateActionPosition(com.hybris.cockpitng.components.visjs.network.data.Node node, WorkflowActionTemplateModel action)
-
Constructor Details
-
ActionFromContextPreprocessor
public ActionFromContextPreprocessor()
-
-
Method Details
-
preprocess
public void preprocess(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context) Creates data related to actions given in the context.- Specified by:
preprocessin interfaceNetworkChartContextPreprocessor- Parameters:
context- contains the Workflow Template data of the WorkflowDesigner widget
-
handleNewOrUpdatedActions
protected void handleNewOrUpdatedActions(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context) Handles new actions to be initialized withWorkflowTemplateModeland updates position change -
handleNewAction
protected void handleNewAction(WorkflowTemplateModel workflowTemplate, List<WorkflowActionTemplateModel> actions, com.hybris.cockpitng.components.visjs.network.data.Node node, WorkflowActionTemplateModel newAction) -
updateActionPosition
protected void updateActionPosition(com.hybris.cockpitng.components.visjs.network.data.Node node, WorkflowActionTemplateModel action) -
handleRemovedActions
protected void handleRemovedActions(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context) RemovesWorkflowActionTemplateModels for which there is noNode(which means it was deleted). -
detachDecisions
Removes the link between action and decision so only the action is being removed.- Parameters:
action-
-
getNetworkEntityFinder
-
setNetworkEntityFinder
-
getWorkflowModelFinder
-
setWorkflowModelFinder
-