@ApplicationScoped public class DefaultRuleManagerImpl extends Object implements RuleManager
RuleManager.Operation
Constructor and Description |
---|
DefaultRuleManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addRule(Rule rule)
Add a rule to the Rule Manager
|
Results |
checkCardinality(BpmnGraph target,
BpmnGraphNode candidate,
RuleManager.Operation operation)
Check whether adding the proposed Node to the target Process breaks any cardinality Rules
|
Results |
checkCardinality(BpmnGraphNode outgoingNode,
BpmnGraphNode incomingNode,
BpmnEdge edge,
RuleManager.Operation operation)
Check whether adding the proposed Edge to the target Process breaks any cardinality Rules
|
Results |
checkConnectionRules(BpmnGraphNode outgoingNode,
BpmnGraphNode incomingNode,
BpmnEdge edge)
Check whether adding the proposed Edge to the target Process breaks any connection Rules
|
Results |
checkContainment(BpmnGraph target,
BpmnGraphNode candidate)
Check whether adding the proposed Node to the target Process breaks any containment Rules
|
public void addRule(Rule rule)
RuleManager
addRule
in interface RuleManager
public Results checkContainment(BpmnGraph target, BpmnGraphNode candidate)
RuleManager
checkContainment
in interface RuleManager
target
- Target processcandidate
- Candidate nodepublic Results checkCardinality(BpmnGraph target, BpmnGraphNode candidate, RuleManager.Operation operation)
RuleManager
checkCardinality
in interface RuleManager
target
- Target processcandidate
- Candidate nodeoperation
- Is the candidate Node being added or removedpublic Results checkConnectionRules(BpmnGraphNode outgoingNode, BpmnGraphNode incomingNode, BpmnEdge edge)
RuleManager
checkConnectionRules
in interface RuleManager
outgoingNode
- Node from which the Edge will emanateincomingNode
- Node to which the Edge will terminateedge
- Candidate edgepublic Results checkCardinality(BpmnGraphNode outgoingNode, BpmnGraphNode incomingNode, BpmnEdge edge, RuleManager.Operation operation)
RuleManager
checkCardinality
in interface RuleManager
outgoingNode
- Node from which the Edge will emanateincomingNode
- Node to which the Edge will terminateedge
- Candidate edgeCopyright © 2012–2019 JBoss by Red Hat. All rights reserved.