Package org.camunda.bpm.dmn.engine.impl
Class DmnDecisionImpl
- java.lang.Object
-
- org.camunda.bpm.dmn.engine.impl.DmnDecisionImpl
-
- All Implemented Interfaces:
DmnDecision
- Direct Known Subclasses:
DecisionDefinitionEntity
public class DmnDecisionImpl extends Object implements DmnDecision
-
-
Field Summary
Fields Modifier and Type Field Description protected DmnDecisionLogic
decisionLogic
protected String
key
protected String
name
protected Collection<DmnDecision>
requiredDecision
-
Constructor Summary
Constructors Constructor Description DmnDecisionImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DmnDecisionLogic
getDecisionLogic()
Returns the decision logic of the decision (e.g., a decision table).String
getKey()
The unique identifier of the decision if exists.String
getName()
The human readable name of the decision if exists.Collection<DmnDecision>
getRequiredDecisions()
Returns the required decisions of this decision.boolean
isDecisionTable()
Checks if the decision logic is implemented as Decision Table.void
setDecisionLogic(DmnDecisionLogic decisionLogic)
void
setKey(String key)
void
setName(String name)
void
setRequiredDecision(List<DmnDecision> requiredDecision)
String
toString()
-
-
-
Field Detail
-
key
protected String key
-
name
protected String name
-
decisionLogic
protected DmnDecisionLogic decisionLogic
-
requiredDecision
protected Collection<DmnDecision> requiredDecision
-
-
Method Detail
-
getKey
public String getKey()
Description copied from interface:DmnDecision
The unique identifier of the decision if exists.- Specified by:
getKey
in interfaceDmnDecision
- Returns:
- the identifier or null if not set
-
setKey
public void setKey(String key)
-
getName
public String getName()
Description copied from interface:DmnDecision
The human readable name of the decision if exists.- Specified by:
getName
in interfaceDmnDecision
- Returns:
- the name or null if not set
-
setName
public void setName(String name)
-
setDecisionLogic
public void setDecisionLogic(DmnDecisionLogic decisionLogic)
-
getDecisionLogic
public DmnDecisionLogic getDecisionLogic()
Description copied from interface:DmnDecision
Returns the decision logic of the decision (e.g., a decision table).- Specified by:
getDecisionLogic
in interfaceDmnDecision
- Returns:
- the containing decision logic
-
setRequiredDecision
public void setRequiredDecision(List<DmnDecision> requiredDecision)
-
getRequiredDecisions
public Collection<DmnDecision> getRequiredDecisions()
Description copied from interface:DmnDecision
Returns the required decisions of this decision.- Specified by:
getRequiredDecisions
in interfaceDmnDecision
- Returns:
- the required decisions or an empty collection if not exists.
-
isDecisionTable
public boolean isDecisionTable()
Description copied from interface:DmnDecision
Checks if the decision logic is implemented as Decision Table.- Specified by:
isDecisionTable
in interfaceDmnDecision
- Returns:
- true if the decision logic is implement as Decision Table, otherwise false
-
-