Class DefaultRuleManagerImpl
- java.lang.Object
-
- org.uberfire.ext.wires.bpmn.client.rules.impl.DefaultRuleManagerImpl
-
- All Implemented Interfaces:
RuleManager
@ApplicationScoped public class DefaultRuleManagerImpl extends Object implements RuleManager
Default implementation of Rule Manager
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.uberfire.ext.wires.bpmn.client.rules.RuleManager
RuleManager.Operation
-
-
Constructor Summary
Constructors Constructor Description DefaultRuleManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete 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
public void addRule(org.uberfire.ext.wires.bpmn.api.model.rules.Rule rule)
Description copied from interface:RuleManagerAdd a rule to the Rule Manager- Specified by:
addRulein interfaceRuleManager
-
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:RuleManagerCheck whether adding the proposed Node to the target Process breaks any containment Rules- Specified by:
checkContainmentin interfaceRuleManager- Parameters:
target- Target processcandidate- 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:RuleManagerCheck whether adding the proposed Node to the target Process breaks any cardinality Rules- Specified by:
checkCardinalityin interfaceRuleManager- Parameters:
target- Target processcandidate- Candidate nodeoperation- 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:RuleManagerCheck whether adding the proposed Edge to the target Process breaks any connection Rules- Specified by:
checkConnectionRulesin interfaceRuleManager- 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
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:RuleManagerCheck whether adding the proposed Edge to the target Process breaks any cardinality Rules- Specified by:
checkCardinalityin interfaceRuleManager- 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
-
-