Interface WorkflowNetworkEntitiesFactory

All Known Implementing Classes:
DefaultWorkflowNetworkEntitiesFactory

public interface WorkflowNetworkEntitiesFactory
Creates model for visual representation of a workflow in NetworkChart widget
  • Method Summary

    Modifier and Type
    Method
    Description
    com.hybris.cockpitng.components.visjs.network.data.Network
    Returns the visual representation of given workflow template
    Optional<com.hybris.cockpitng.components.visjs.network.data.Node>
    generateNode(WorkflowEntity workflowEntity)
    Returns the visual representation of given item.
    Optional<com.hybris.cockpitng.components.visjs.network.data.Node>
    generateNode(WorkflowEntity workflowEntity, com.hybris.cockpitng.components.visjs.network.data.Node node)
    Returns the visual representation of given item based on existing node.
  • Method Details

    • generateNetwork

      com.hybris.cockpitng.components.visjs.network.data.Network generateNetwork(Workflow workflow)
      Returns the visual representation of given workflow template
      Parameters:
      workflow - a template to create the visualisation from
      Returns:
      network object that contains list of nodes and edges
    • generateNode

      Optional<com.hybris.cockpitng.components.visjs.network.data.Node> generateNode(WorkflowEntity workflowEntity)
      Returns the visual representation of given item. If no representation is found, Optional.empty() is returned.
      Parameters:
      workflowEntity - an item to create the visualisation from
      Returns:
      node representation of item or Optional.empty() if not found
    • generateNode

      Optional<com.hybris.cockpitng.components.visjs.network.data.Node> generateNode(WorkflowEntity workflowEntity, com.hybris.cockpitng.components.visjs.network.data.Node node)
      Returns the visual representation of given item based on existing node. If no representation is found, Optional.empty() is returned.
      Parameters:
      workflowEntity - an item to create the visualisation from
      node - baseline for newly created node
      Returns:
      node representation of item or Optional.empty() if not found