Class ActionFromContextPreprocessor

java.lang.Object
com.hybris.backoffice.workflow.designer.persistence.ActionFromContextPreprocessor
All Implemented Interfaces:
NetworkChartContextPreprocessor

public class ActionFromContextPreprocessor extends Object implements NetworkChartContextPreprocessor
Creates Workflow Template data related to Actions, excluding links to decisions which is handled by LinkFromContextPreprocessor.
  • Constructor Details

    • ActionFromContextPreprocessor

      public ActionFromContextPreprocessor()
  • Method Details

    • 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
    • handleNewAction

      protected void handleNewAction(WorkflowTemplateModel workflowTemplate, 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)
      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 -
    • getNetworkEntityFinder

      public NetworkEntityFinder getNetworkEntityFinder()
    • setNetworkEntityFinder

      public void setNetworkEntityFinder(NetworkEntityFinder networkEntityFinder)
    • getWorkflowModelFinder

      public WorkflowModelFinder getWorkflowModelFinder()
    • setWorkflowModelFinder

      public void setWorkflowModelFinder(WorkflowModelFinder workflowModelFinder)