Interface WorkflowNetworkEntitiesFactory

  • All Known Implementing Classes:
    DefaultWorkflowNetworkEntitiesFactory

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.hybris.cockpitng.components.visjs.network.data.Network generateNetwork​(Workflow workflow)
      Returns the visual representation of given workflow template
      java.util.Optional<com.hybris.cockpitng.components.visjs.network.data.Node> generateNode​(WorkflowEntity workflowEntity)
      Returns the visual representation of given item.
      java.util.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 Detail

      • 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

        java.util.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

        java.util.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