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 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:
      preprocess in interface NetworkChartContextPreprocessor
      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.
      See Also:
    • 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.
      See Also:
    • getNetworkEntityFinder

      public NetworkEntityFinder getNetworkEntityFinder()
    • setNetworkEntityFinder

      public void setNetworkEntityFinder(NetworkEntityFinder networkEntityFinder)
    • getWorkflowModelFinder

      public WorkflowModelFinder getWorkflowModelFinder()
    • setWorkflowModelFinder

      public void setWorkflowModelFinder(WorkflowModelFinder workflowModelFinder)