Package de.xima.fc.mdl.fdv
Enum EProcessingResult
- All Implemented Interfaces:
Serializable
,Comparable<EProcessingResult>
Enumeration for the types of data provided by the workflow. Used for different placeholder types, such as
[%MyAction.RESULT%]
or [%MyAction.LAST_ERROR_NODE_NAME%]
.- Author:
- XIMA MEDIA GmbH
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription(new workflow engine only) The value that is always returned by a node, whether successful or not.Deprecated.(new workflow engine only) The value that is returned by a node when it failed.(new workflow engine only) The type of error that caused a node to fail.(new workflow engine only) The error message provided by a node when it failed.(new workflow engine only) The name of the node that failed.(new workflow engine only) The technical node type of the node that failed.(new workflow engine only) A boolean flag indicating whether an action completed abruptly by throwing an exception.(new workflow engine only) A boolean flag indicating whether an action completed normally or abruptly by issuing a returning statement; and provided at least one soft error.(both workflow engines) The value that is returned by a node when it succeeded.(new workflow engine only) A list of soft errors provided by an action that either completed normally or abruptly by issuing a returning statement.(both workflow engines) A boolean flag indicating whether an action was successful. -
Method Summary
Modifier and TypeMethodDescriptionstatic EProcessingResult
Returns the enum constant of this type with the specified name.static EProcessingResult
valueOfOrDefault
(String name, EProcessingResult defaultValue) static EProcessingResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
(new workflow engine only) The value that is always returned by a node, whether successful or not.- Since:
- 7.0.0
-
ERROR
(new workflow engine only) The value that is returned by a node when it failed.- Since:
- 7.0.0
-
RESULT
(both workflow engines) The value that is returned by a node when it succeeded. -
COUNT
Deprecated.You can use thelength()
as part of the JSON path to find the size of an array. For example, the SQL statement actions returns a JSON object with arows
array, use[%SQLAction.RESULT.rows.length()%]
to get the number of results. (old workflow engine only)The number of results returned by a node. -
SUCCESS
(both workflow engines) A boolean flag indicating whether an action was successful. -
HAS_HARD_ERROR
(new workflow engine only) A boolean flag indicating whether an action completed abruptly by throwing an exception. -
HAS_SOFT_ERROR
(new workflow engine only) A boolean flag indicating whether an action completed normally or abruptly by issuing a returning statement; and provided at least one soft error. -
SOFT_ERRORS
(new workflow engine only) A list of soft errors provided by an action that either completed normally or abruptly by issuing a returning statement. -
ERROR_CODE
(new workflow engine only) The type of error that caused a node to fail.- Since:
- 7.0.0
-
ERROR_MESSAGE
(new workflow engine only) The error message provided by a node when it failed.- Since:
- 7.0.0
-
ERROR_NODE_NAME
(new workflow engine only) The name of the node that failed.- Since:
- 7.0.0
-
ERROR_NODE_TYPE
(new workflow engine only) The technical node type of the node that failed.- Since:
- 7.0.0
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-
valueOfOrDefault
- Parameters:
name
- Name to convert.defaultValue
- Value to use as a fallback.- Returns:
- The enumeration constant with the given name, or the default value when no such constant exists.
-
length()
as part of the JSON path to find the size of an array.