Class DecisionFromContextPreprocessor
java.lang.Object
com.hybris.backoffice.workflow.designer.persistence.DecisionFromContextPreprocessor
- All Implemented Interfaces:
NetworkChartContextPreprocessor
public class DecisionFromContextPreprocessor
extends Object
implements NetworkChartContextPreprocessor
Creates data associated with
WorkflowDecisionTemplateModels, excluding links to actions which is handled by
LinkFromContextPreprocessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhandleNewDecision(com.hybris.cockpitng.components.visjs.network.data.Node node, WorkflowDecisionTemplateModel newDecision) protected voidhandleNewOrUpdatedDecisions(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context) Handles updates of position on existing decisions or initialization of newly created decisionsprotected voidhandleRemovedIncomingDecisions(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context) Removes incoming decisions from actions.protected voidhandleRemovedOutgoingDecisions(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context) Removes outgoing decisions from actions.voidpreprocess(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context) Creates data related to decisions given in the context.voidsetNetworkEntityFinder(NetworkEntityFinder networkEntityFinder) voidsetWorkflowModelFinder(WorkflowModelFinder workflowModelFinder) protected voidupdateDecisionPosition(com.hybris.cockpitng.components.visjs.network.data.Node node, WorkflowDecisionTemplateModel decision)
-
Constructor Details
-
DecisionFromContextPreprocessor
public DecisionFromContextPreprocessor()
-
-
Method Details
-
preprocess
public void preprocess(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context) Creates data related to decisions given in the context.- Specified by:
preprocessin interfaceNetworkChartContextPreprocessor- Parameters:
context- contains the Workflow Template data of the WorkflowDesigner widget
-
handleNewOrUpdatedDecisions
protected void handleNewOrUpdatedDecisions(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context) Handles updates of position on existing decisions or initialization of newly created decisions -
updateDecisionPosition
protected void updateDecisionPosition(com.hybris.cockpitng.components.visjs.network.data.Node node, WorkflowDecisionTemplateModel decision) -
handleNewDecision
protected void handleNewDecision(com.hybris.cockpitng.components.visjs.network.data.Node node, WorkflowDecisionTemplateModel newDecision) -
handleRemovedOutgoingDecisions
protected void handleRemovedOutgoingDecisions(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context) Removes outgoing decisions from actions. A decision is considered removed when the node corresponding to model is not present on UI. -
handleRemovedIncomingDecisions
protected void handleRemovedIncomingDecisions(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context) Removes incoming decisions from actions. A decision is considered removed when the node corresponding to model is not present on UI. -
getNetworkEntityFinder
-
setNetworkEntityFinder
-
getWorkflowModelFinder
-
setWorkflowModelFinder
-