Class GraphicalSchemeValidator

  • All Implemented Interfaces:
    org.eclipse.emf.ecore.EValidator, org.eclipse.xtext.validation.ValidationMessageAcceptor

    public class GraphicalSchemeValidator
    extends AbstractModelDeclarativeValidator
    Validator for graphical scheme (bp scheme).
    • Constructor Detail

      • GraphicalSchemeValidator

        public GraphicalSchemeValidator()
    • Method Detail

      • checkForStartPointExistence

        public void checkForStartPointExistence​(GraphicalScheme scheme)
        Checks if there is start point on scheme. If not fires error.
        Parameters:
        scheme - - graphical scheme. Can't be null.
      • checkForPathToCompletion

        public void checkForPathToCompletion​(GraphicalScheme scheme)
        Checks if there is path to completion point on scheme. If not fires error.
        Parameters:
        scheme - - graphical scheme. Can't be null.
      • checkForPointIncomingLineExistence

        public void checkForPointIncomingLineExistence​(GraphicalScheme scheme)
        Checks if scheme points has incoming line (except start point and decoration point). If point does not have incoming line fires error.
        Parameters:
        scheme - - graphical scheme. Can't be null.
      • checkForLineTargetExistence

        public void checkForLineTargetExistence​(GraphicalSchemeItem item)
        Checks if line connected to target. If line has no target fires error.
        Parameters:
        item - - graphical scheme item to check
      • checkForPointConnectionToCompletion

        public void checkForPointConnectionToCompletion​(GraphicalScheme scheme)
        Checks if scheme point connected to completion. In original "Configurator" if point connected to other point it also connected to completion.
        If point does not connected to completion fires error.
        Parameters:
        scheme - - graphical scheme. Can't be null.
      • checkForConditionEventHandler

        public void checkForConditionEventHandler​(EventHandler eventHandler)
        Checks if condition point have event handler. If condition point does not have event handler fires error.
        Parameters:
        eventHandler - - event handler check. Can't be null.
      • checkForSwitchEventHandler

        public void checkForSwitchEventHandler​(EventHandler eventHandler)
        Checks if switch point have event handler. If switch point does not have event handler fires error.
        Parameters:
        eventHandler - - event handler to check. Can't be null.
      • checkSubBpPoints

        public void checkSubBpPoints​(GraphicalSchemeItem item)
        Checks if sub busines process point have sub process or needed event handlers. If sub busines process point does not have sub process or needed event handlers fires error.
        Parameters:
        item - - graphical scheme item to check. Can't be null.
      • checkForSplitOutgoingConnectionsCount

        public void checkForSplitOutgoingConnectionsCount​(GraphicalScheme scheme)
        Checks for split points ougoing connections count. If split point has only one outgoing connections fires error.
        Parameters:
        scheme - - graphical scheme. Can't be null.
      • checkForSeveralSplitOutgoingToOnePoint

        public void checkForSeveralSplitOutgoingToOnePoint​(GraphicalScheme scheme)
        Check for split point outgoing connections targets. If several connections outgoing from one split point have one target point fires error.
        Parameters:
        scheme - - graphical scheme. Can't be null.
      • checkForJoinIncomingConnectionsCount

        public void checkForJoinIncomingConnectionsCount​(GraphicalScheme scheme)
        Checks for join point incoming connections count. If join point has only one incoming connection fires error.
        Parameters:
        scheme - - graphical scheme. Can't be null.
      • checkForAddressingAttributesValuesExistance

        public void checkForAddressingAttributesValuesExistance​(GraphicalScheme scheme)
        Checks if "Action" elements addressing attributes values exist. If addressing attribute value cannot be resolved fires error.
        Parameters:
        scheme - - graphical scheme. Cannot be null.
      • checkSplitToJoinConnections

        public void checkSplitToJoinConnections​(GraphicalScheme scheme)
        Checks split points outgoing connections. If connections goes from split point immideately to join point fires error.
        Parameters:
        scheme - - graphical scheme. Can't be null.
      • checkIncomingToJoinConnections

        public void checkIncomingToJoinConnections​(GraphicalScheme scheme)
        Checks for incoming to join point connections. If connection does not go from split point fires error.
        Parameters:
        scheme - - graphical scheme. Can't be null.
      • checkForCycles

        public void checkForCycles​(GraphicalScheme scheme)
        Checks if scheme contains cycles which does not contain one of "Activity", "Sub Bp" or "Processing". If cycle does not containing "Activity", "Sub Bp" or "Processing" was found fires error.
        Parameters:
        scheme - - graphical scheme. Can't be null.
      • checkSwitchItem

        public void checkSwitchItem​(GraphicalSchemeItem item)
        Checks switch points for case count. if switch point has one case fires warning.
        Parameters:
        item - - item to check. Can't be null.
      • checkConditionOutgoingLines

        public void checkConditionOutgoingLines​(GraphicalScheme scheme)
        Checks condition points outgoing lines. If both lines enters one point fires warning.
        Parameters:
        scheme - - graphical scheme. Can't be null.
      • checkSwitchOutgoingLines

        public void checkSwitchOutgoingLines​(GraphicalScheme scheme)
        Checks switch point outgoing lines. If several lines enters one point fires warning
        Parameters:
        scheme -
      • checkHandlerForExistance

        public void checkHandlerForExistance​(EventHandler eventHandler)
        Checks if event handler exists in business process object module. If event handler does not exist in business process module fires warning.
        Parameters:
        eventHandler - - event handler to check. Can't be null.