Class ActionFromContextPreprocessor
- java.lang.Object
-
- com.hybris.backoffice.workflow.designer.persistence.ActionFromContextPreprocessor
-
- All Implemented Interfaces:
NetworkChartContextPreprocessor
public class ActionFromContextPreprocessor extends java.lang.Object implements NetworkChartContextPreprocessor
Creates Workflow Template data related to Actions, excluding links to decisions which is handled byLinkFromContextPreprocessor.
-
-
Constructor Summary
Constructors Constructor Description ActionFromContextPreprocessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddetachDecisions(WorkflowActionTemplateModel action)Removes the link between action and decision so only the action is being removed.NetworkEntityFindergetNetworkEntityFinder()WorkflowModelFindergetWorkflowModelFinder()protected voidhandleNewAction(WorkflowTemplateModel workflowTemplate, java.util.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)
-
-
-
Method Detail
-
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, java.util.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
protected void detachDecisions(WorkflowActionTemplateModel action)
Removes the link between action and decision so only the action is being removed.- Parameters:
action-
-
getNetworkEntityFinder
public NetworkEntityFinder getNetworkEntityFinder()
-
setNetworkEntityFinder
public void setNetworkEntityFinder(NetworkEntityFinder networkEntityFinder)
-
getWorkflowModelFinder
public WorkflowModelFinder getWorkflowModelFinder()
-
setWorkflowModelFinder
public void setWorkflowModelFinder(WorkflowModelFinder workflowModelFinder)
-
-