Class DefaultRuleManagerImpl

  • All Implemented Interfaces:
    RuleManager

    @ApplicationScoped
    public class DefaultRuleManagerImpl
    extends Object
    implements RuleManager
    Default implementation of Rule Manager
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addRule​(org.uberfire.ext.wires.bpmn.api.model.rules.Rule rule)
      Add a rule to the Rule Manager
      Results checkCardinality​(org.uberfire.ext.wires.bpmn.api.model.BpmnGraphNode outgoingNode, org.uberfire.ext.wires.bpmn.api.model.BpmnGraphNode incomingNode, org.uberfire.ext.wires.bpmn.api.model.BpmnEdge edge, RuleManager.Operation operation)
      Check whether adding the proposed Edge to the target Process breaks any cardinality Rules
      Results checkCardinality​(org.uberfire.ext.wires.bpmn.api.model.BpmnGraph target, org.uberfire.ext.wires.bpmn.api.model.BpmnGraphNode candidate, RuleManager.Operation operation)
      Check whether adding the proposed Node to the target Process breaks any cardinality Rules
      Results checkConnectionRules​(org.uberfire.ext.wires.bpmn.api.model.BpmnGraphNode outgoingNode, org.uberfire.ext.wires.bpmn.api.model.BpmnGraphNode incomingNode, org.uberfire.ext.wires.bpmn.api.model.BpmnEdge edge)
      Check whether adding the proposed Edge to the target Process breaks any connection Rules
      Results checkContainment​(org.uberfire.ext.wires.bpmn.api.model.BpmnGraph target, org.uberfire.ext.wires.bpmn.api.model.BpmnGraphNode candidate)
      Check whether adding the proposed Node to the target Process breaks any containment Rules
    • Constructor Detail

      • DefaultRuleManagerImpl

        public DefaultRuleManagerImpl()
    • Method Detail

      • addRule

        public void addRule​(org.uberfire.ext.wires.bpmn.api.model.rules.Rule rule)
        Description copied from interface: RuleManager
        Add a rule to the Rule Manager
        Specified by:
        addRule in interface RuleManager
      • checkContainment

        public Results checkContainment​(org.uberfire.ext.wires.bpmn.api.model.BpmnGraph target,
                                        org.uberfire.ext.wires.bpmn.api.model.BpmnGraphNode candidate)
        Description copied from interface: RuleManager
        Check whether adding the proposed Node to the target Process breaks any containment Rules
        Specified by:
        checkContainment in interface RuleManager
        Parameters:
        target - Target process
        candidate - Candidate node
        Returns:
      • checkCardinality

        public Results checkCardinality​(org.uberfire.ext.wires.bpmn.api.model.BpmnGraph target,
                                        org.uberfire.ext.wires.bpmn.api.model.BpmnGraphNode candidate,
                                        RuleManager.Operation operation)
        Description copied from interface: RuleManager
        Check whether adding the proposed Node to the target Process breaks any cardinality Rules
        Specified by:
        checkCardinality in interface RuleManager
        Parameters:
        target - Target process
        candidate - Candidate node
        operation - Is the candidate Node being added or removed
        Returns:
      • checkConnectionRules

        public Results checkConnectionRules​(org.uberfire.ext.wires.bpmn.api.model.BpmnGraphNode outgoingNode,
                                            org.uberfire.ext.wires.bpmn.api.model.BpmnGraphNode incomingNode,
                                            org.uberfire.ext.wires.bpmn.api.model.BpmnEdge edge)
        Description copied from interface: RuleManager
        Check whether adding the proposed Edge to the target Process breaks any connection Rules
        Specified by:
        checkConnectionRules in interface RuleManager
        Parameters:
        outgoingNode - Node from which the Edge will emanate
        incomingNode - Node to which the Edge will terminate
        edge - Candidate edge
        Returns:
        Is the Edge being added or removed
      • checkCardinality

        public Results checkCardinality​(org.uberfire.ext.wires.bpmn.api.model.BpmnGraphNode outgoingNode,
                                        org.uberfire.ext.wires.bpmn.api.model.BpmnGraphNode incomingNode,
                                        org.uberfire.ext.wires.bpmn.api.model.BpmnEdge edge,
                                        RuleManager.Operation operation)
        Description copied from interface: RuleManager
        Check whether adding the proposed Edge to the target Process breaks any cardinality Rules
        Specified by:
        checkCardinality in interface RuleManager
        Parameters:
        outgoingNode - Node from which the Edge will emanate
        incomingNode - Node to which the Edge will terminate
        edge - Candidate edge
        Returns:
        Is the Edge being added or removed