Class ConditionalSubProcess

    • Field Detail

      • m_Condition

        protected BooleanCondition m_Condition
        the condition that determines the execution of the subprocess items.
      • m_DropTokensOnConditionFail

        protected boolean m_DropTokensOnConditionFail
        whether to drop tokens when condition didn't hold true.
    • Constructor Detail

      • ConditionalSubProcess

        public ConditionalSubProcess()
        Default constructor.
      • ConditionalSubProcess

        public ConditionalSubProcess​(String name)
        Initializes the actor with the specified name.
        Parameters:
        name - the name to use
      • ConditionalSubProcess

        public ConditionalSubProcess​(String name,
                                     BooleanCondition condition)
        Initializes the actor with the specified name/condition.
        Parameters:
        name - the name to use
        condition - the condition to use
      • ConditionalSubProcess

        public ConditionalSubProcess​(BooleanCondition condition)
        Initializes the actor with the specified condition.
        Parameters:
        condition - the condition to use
    • Method Detail

      • conditionTipText

        public String conditionTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setDropTokensOnConditionFail

        public void setDropTokensOnConditionFail​(boolean value)
        Sets whether to drop incoming tokens if condition evaluates to false instead of forwarding them.
        Parameters:
        value - if true tokens get dropped if evaluation evaluates to false
      • getDropTokensOnConditionFail

        public boolean getDropTokensOnConditionFail()
        Returns whether to drop incoming tokens if condition evaluates to false instead of forwarding them.
        Returns:
        true if to drop tokens when condition evaluates to false
      • dropTokensOnConditionFailTipText

        public String dropTokensOnConditionFailTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.