Package com.axelor.workflow.spi
Enum Class ActivityEffect
- All Implemented Interfaces:
Serializable,Comparable<ActivityEffect>,Constable
What is known about an activity's outside effect when it failed: whether an email or agent call
that failed may already have gone out, so an operator knows whether re-sending duplicates it. It
records the effect only; whether to retry is a separate question.
UNKNOWN is the default, so an implementation that says nothing is never read as
promising nothing happened.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionA short clause appended to the untranslated engine failure message.static ActivityEffectReturns the enum constant of this class with the specified name.static ActivityEffect[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Nothing happened. The activity failed before it could have any effect outside. -
UNKNOWN
It may or may not have happened, and there is no way to tell from here. -
DONE
It happened. Something after it failed, so the node still failed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
description
A short clause appended to the untranslated engine failure message.
-