Class SendEmailActionNode.EmailVariableDefinition

  • Enclosing class:
    SendEmailActionNode

    public static class SendEmailActionNode.EmailVariableDefinition
    extends Object
    A class to hold how to obtain values for each variable.
    Since:
    12.1.0
    Version:
    $Revision: 24868 $ $Date: 2022-02-25 18:16:46 -0300 (Fri, 25 Feb 2022) $
    • Field Detail

      • TYPES

        public static final Map<String,​String> TYPES
        All types to how obtain variable value.
    • Constructor Detail

      • EmailVariableDefinition

        public EmailVariableDefinition​(org.json.JSONObject variableJSON)
        Constructor to variable JSON.
        Parameters:
        object - the variable JSON.
        Since:
        12.1.0
      • EmailVariableDefinition

        public EmailVariableDefinition​(String type,
                                       String userAttributeId,
                                       String serviceInstanceId,
                                       String eventAttributeId,
                                       String value)
        Constructor to full fields.
        Parameters:
        type - the type.
        userAttributeId - the userAttributeId.
        serviceInstanceId - the serviceInstanceId.
        eventAttributeId - the eventAttributeId.
        value - the value.
        Since:
        14.0.0
    • Method Detail

      • toJSONObject

        public org.json.JSONObject toJSONObject()
        Returns a JSON with object properties.
        Returns:
        a JSON with object properties.
        Since:
        12.1.0
      • getUserAttributeId

        protected String getUserAttributeId()
        Returns the userAttributeId.
        Returns:
        the userAttributeId
        Since:
        12.1.0
      • getEventAttributeId

        protected String getEventAttributeId()
        Returns the eventAttributeId.
        Returns:
        the eventAttributeId
        Since:
        12.1.0
      • getValue

        protected String getValue()
        Returns the value.
        Returns:
        the value
        Since:
        12.1.0
      • getType

        protected String getType()
        Returns the type.
        Returns:
        the type
        Since:
        12.1.0