Package com.totvs.tjf.dmn.model
Class TDecision
- java.lang.Object
-
- com.totvs.tjf.dmn.model.TDecision
-
public class TDecision extends Object
This class represents a decision model
-
-
Field Summary
Fields Modifier and Type Field Description static StringBOOLEAN_TYPEstatic StringDATE_TYPEstatic StringDOUBLE_TYPEstatic StringINTEGER_TYPEstatic StringLONG_TYPEstatic StringSHORT_TYPEstatic StringSTRING_TYPE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TDecisionaddInput(String name, String type)This method adds an input entryTDecisionaddOutput(String name, String type)This method adds an output entryTRuleaddRule()This method adds a decision ruleorg.flowable.dmn.model.DecisiongetDecision()This method returns the decision´s elementorg.flowable.dmn.model.DmnDefinitiongetDefinition()This method returns the decision´s definition elementorg.flowable.dmn.model.DmnDefinitiongetElement()This method returns the original definition element.StringgetId(String prefix)This method returns the decision´s id with a specific prefixorg.flowable.dmn.model.DecisionTablegetTable()This method returns the decision´s table elementStringtoXML()This method returns a XML representation of this decision
-
-
-
Field Detail
-
BOOLEAN_TYPE
public static final String BOOLEAN_TYPE
- See Also:
- Constant Field Values
-
DATE_TYPE
public static final String DATE_TYPE
- See Also:
- Constant Field Values
-
DOUBLE_TYPE
public static final String DOUBLE_TYPE
- See Also:
- Constant Field Values
-
INTEGER_TYPE
public static final String INTEGER_TYPE
- See Also:
- Constant Field Values
-
LONG_TYPE
public static final String LONG_TYPE
- See Also:
- Constant Field Values
-
SHORT_TYPE
public static final String SHORT_TYPE
- See Also:
- Constant Field Values
-
STRING_TYPE
public static final String STRING_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TDecision
public TDecision(String id)
This constructor creates a decision with an specific id- Parameters:
id- identification
-
-
Method Detail
-
getElement
public org.flowable.dmn.model.DmnDefinition getElement()
This method returns the original definition element.- Returns:
- the original definition element
-
getId
public String getId(String prefix)
This method returns the decision´s id with a specific prefix- Parameters:
prefix- prefix- Returns:
- the generated id
-
getDefinition
public org.flowable.dmn.model.DmnDefinition getDefinition()
This method returns the decision´s definition element- Returns:
- the definition element
-
getDecision
public org.flowable.dmn.model.Decision getDecision()
This method returns the decision´s element- Returns:
- the decision element
-
getTable
public org.flowable.dmn.model.DecisionTable getTable()
This method returns the decision´s table element- Returns:
- the decision table element
-
addInput
public TDecision addInput(String name, String type)
This method adds an input entry- Parameters:
name- nametype- type- Returns:
- this decision builder
-
addOutput
public TDecision addOutput(String name, String type)
This method adds an output entry- Parameters:
name- nametype- type- Returns:
- this decision builder
-
addRule
public TRule addRule()
This method adds a decision rule- Returns:
- the rule
-
toXML
public String toXML()
This method returns a XML representation of this decision- Returns:
- the xml representation
-
-