Class ActionFromContextPreprocessor

    • Constructor Detail

      • ActionFromContextPreprocessor

        public ActionFromContextPreprocessor()
    • 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:
        preprocess in interface NetworkChartContextPreprocessor
        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 with WorkflowTemplateModel and updates position change
      • 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)
        Removes WorkflowActionTemplateModels for which there is no Node (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 -
      • setNetworkEntityFinder

        public void setNetworkEntityFinder​(NetworkEntityFinder networkEntityFinder)
      • setWorkflowModelFinder

        public void setWorkflowModelFinder​(WorkflowModelFinder workflowModelFinder)