Class DecisionFromContextPreprocessor

    • Constructor Detail

      • DecisionFromContextPreprocessor

        public DecisionFromContextPreprocessor()
    • Method Detail

      • 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:
        NodeTypeService.isSameDecision(WorkflowDecisionTemplateModel, Node)
      • 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:
        NodeTypeService.isSameDecision(WorkflowDecisionTemplateModel, Node)
      • setNetworkEntityFinder

        public void setNetworkEntityFinder​(NetworkEntityFinder networkEntityFinder)
      • setWorkflowModelFinder

        public void setWorkflowModelFinder​(WorkflowModelFinder workflowModelFinder)