Interface RuleManager
-
- All Known Implementing Classes:
DefaultRuleManagerImpl
public interface RuleManagerRule Manager to report validation issues when attempting to mutate Elements
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRuleManager.OperationRules are applied against an unmodified Graph to check whether the proposed mutated state is valid.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddRule(org.uberfire.ext.wires.bpmn.api.model.rules.Rule rule)Add a rule to the Rule ManagerResultscheckCardinality(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 RulesResultscheckCardinality(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 RulesResultscheckConnectionRules(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 RulesResultscheckContainment(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
-
-
-
Method Detail
-
addRule
void addRule(org.uberfire.ext.wires.bpmn.api.model.rules.Rule rule)
Add a rule to the Rule Manager- Parameters:
rule-
-
checkContainment
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- Parameters:
target- Target processcandidate- Candidate node- Returns:
-
checkCardinality
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- Parameters:
target- Target processcandidate- Candidate nodeoperation- Is the candidate Node being added or removed- Returns:
-
checkConnectionRules
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- Parameters:
outgoingNode- Node from which the Edge will emanateincomingNode- Node to which the Edge will terminateedge- Candidate edge- Returns:
- Is the Edge being added or removed
-
checkCardinality
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- Parameters:
outgoingNode- Node from which the Edge will emanateincomingNode- Node to which the Edge will terminateedge- Candidate edgeoperation-- Returns:
- Is the Edge being added or removed
-
-