Interface WorkflowFlowNetworkFactory

All Superinterfaces:
org.springframework.core.Ordered
All Known Implementing Classes:
WorkflowNetworkFactory, WorkflowWithCoordinatesNetworkFactory

public interface WorkflowFlowNetworkFactory extends org.springframework.core.Ordered
Factory which allows to create instance of Network
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canHandle(Collection<WorkflowItem> items, com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)
    Checks if it is possible to create a Network for given input
    default com.hybris.cockpitng.components.visjs.network.data.Network
    Creates instance of Network
    com.hybris.cockpitng.components.visjs.network.data.Network
    create(Collection<WorkflowItem> items, com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)
    Creates instance of Network

    Methods inherited from interface org.springframework.core.Ordered

    getOrder
  • Method Details

    • canHandle

      boolean canHandle(Collection<WorkflowItem> items, com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)
      Checks if it is possible to create a Network for given input
      Parameters:
      items - the collection of WorkflowItem which can be used to build the Network
      context - context with data about the Network
      Returns:
      whether Network can be created or not
    • create

      default com.hybris.cockpitng.components.visjs.network.data.Network create(Collection<WorkflowItem> items)
      Creates instance of Network
      Parameters:
      items - the collection of WorkflowItem which can be used to build the Network
      Returns:
      newly created Network
    • create

      com.hybris.cockpitng.components.visjs.network.data.Network create(Collection<WorkflowItem> items, com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)
      Creates instance of Network
      Parameters:
      items - the collection of WorkflowItem which can be used to build the Network
      context - context with data about the Network
      Returns:
      newly created Network