Enum CustomOperationScriptFunction

    • Enum Constant Detail

      • PRE_RUN

        public static final CustomOperationScriptFunction PRE_RUN
        Runs before executing the custom operation, in order to determine the default field values
      • AVAILABILITY

        public static final CustomOperationScriptFunction AVAILABILITY
        Runs before the custom operation is presented as an option to users, to determine whether the operation is available. For example, a user operation may be only available for users with a specific custom field value.
    • Method Detail

      • values

        public static CustomOperationScriptFunction[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CustomOperationScriptFunction c : CustomOperationScriptFunction.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CustomOperationScriptFunction valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • required

        public boolean required()
        Description copied from interface: ScriptFunction
        Returns whether the function is required
        Specified by:
        required in interface ScriptFunction