Class DefaultWorkflowDesignerConnectionHandler
- java.lang.Object
-
- com.hybris.backoffice.workflow.designer.handler.connection.DefaultWorkflowDesignerConnectionHandler
-
- All Implemented Interfaces:
WorkflowDesignerConnectionHandler
public class DefaultWorkflowDesignerConnectionHandler extends java.lang.Object implements WorkflowDesignerConnectionHandler
Default implementation of adding edge in workflow designer
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringNOTIFICATION_AREA_SOURCE
-
Constructor Summary
Constructors Constructor Description DefaultWorkflowDesignerConnectionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.hybris.cockpitng.components.visjs.network.response.NetworkUpdatesaddEdge(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context, com.hybris.cockpitng.components.visjs.network.data.Edge edge)Maps added edge to network updates, validates invalid connectionscom.hybris.cockpitng.util.notifications.NotificationServicegetNotificationService()WorkflowConnectionValidatorgetWorkflowConnectionValidator()protected voidnotifyAboutFailure(java.lang.String eventType, java.lang.Object... objects)protected voidnotifyAboutViolationsDetected(java.util.Collection<Violation> violations)voidsetNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService)voidsetWorkflowConnectionValidator(WorkflowConnectionValidator workflowConnectionValidator)
-
-
-
Field Detail
-
NOTIFICATION_AREA_SOURCE
protected static final java.lang.String NOTIFICATION_AREA_SOURCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
addEdge
public com.hybris.cockpitng.components.visjs.network.response.NetworkUpdates addEdge(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context, com.hybris.cockpitng.components.visjs.network.data.Edge edge)Description copied from interface:WorkflowDesignerConnectionHandlerMaps added edge to network updates, validates invalid connections- Specified by:
addEdgein interfaceWorkflowDesignerConnectionHandler- Parameters:
context- contains theWidgetInstanceManagerof the Workflow Designeredge- edge that was added- Returns:
- any network updates necessary
-
notifyAboutViolationsDetected
protected void notifyAboutViolationsDetected(java.util.Collection<Violation> violations)
-
notifyAboutFailure
protected void notifyAboutFailure(java.lang.String eventType, java.lang.Object... objects)
-
getWorkflowConnectionValidator
public WorkflowConnectionValidator getWorkflowConnectionValidator()
-
setWorkflowConnectionValidator
public void setWorkflowConnectionValidator(WorkflowConnectionValidator workflowConnectionValidator)
-
getNotificationService
public com.hybris.cockpitng.util.notifications.NotificationService getNotificationService()
-
setNotificationService
public void setNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService)
-
-