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 TypeMethodDescriptioncom.hybris.cockpitng.components.visjs.network.data.NetworkgenerateNetwork(Workflow workflow) Returns the visual representation of given workflow templateOptional<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
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 fromnode- baseline for newly created node- Returns:
- node representation of item or
Optional.empty()if not found
-