Class AddUserAttributeActionNode


  • public class AddUserAttributeActionNode
    extends FlowNode
    Adds an attribute value to the user the flow is being executed to.
    Since:
    12.0.0
    Version:
    $Revision: 24868 $ $Date: 2022-02-25 18:16:46 -0300 (Fri, 25 Feb 2022) $
    • Field Detail

      • nextNode

        protected final FlowNode nextNode
    • Constructor Detail

      • AddUserAttributeActionNode

        public AddUserAttributeActionNode​(String id,
                                          String name,
                                          String userAttributeId,
                                          List<Object> attributeValue,
                                          String contextEventVariable,
                                          Number incrementValue,
                                          FlowNode nextNode)
        Creates a new instance.
        Parameters:
        id - the node identifier
        name - the node name
        userAttributeId - the user attribute id
        attributeValue - the user attribute value
        nextNode - the (optional) next node to be executed
        Since:
        12.0.0
      • AddUserAttributeActionNode

        public AddUserAttributeActionNode​(org.json.JSONObject object,
                                          FlowEntry flowEntry)
        Creates a new instance from the given JSON object.
        Parameters:
        object - the JSON object.
        flowEntry - the flow entry this node belongs to.
        Since:
        12.0.0
    • Method Detail

      • validateStateAndLog

        public boolean validateStateAndLog​(boolean checkAllNextNodes)
        Description copied from class: FlowNode
        To permit edition when JSON flow is saved incorrectly in data base, the flow node constructor by JSON parameter need allows to load flow node variables without exception when something already is wrong. So, to prevents exception on flow node execution and prevent to save flow when flow node is invalid state, this methods will check if all variables is OK and log otherwise.
        Specified by:
        validateStateAndLog in class FlowNode
        Parameters:
        checkAllNextNodes - check all next nodes nodes.
        Returns:
        true if all variable state is OK.
      • toJSONObject

        public org.json.JSONObject toJSONObject()
        Description copied from class: FlowNode
        Returns the JSON representation of this node. This method is the counterpart of #FlowNode(JSONObject) constructor.
        Returns:
        the JSON representation of this node.