Class TDecision


  • public class TDecision
    extends Object
    This class represents a decision model
    • 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 - name
        type - type
        Returns:
        this decision builder
      • addOutput

        public TDecision addOutput​(String name,
                                   String type)
        This method adds an output entry
        Parameters:
        name - name
        type - 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