Package com.mendix.core.actionmanagement
Class EventActionInfo
java.lang.Object
com.mendix.core.actionmanagement.EventActionInfo
Represents an event action.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEventActionInfo
(String classOrActionName, boolean raiseExceptionOnFalse) Creates an event action with the specified name.EventActionInfo
(Consumer<IMendixObject> consumer) Creates an event action with the specified Java function.EventActionInfo
(Consumer<IMendixObject> consumer, boolean raiseExceptionOnFalse) Creates an event action with the specified Java function.EventActionInfo
(Consumer<IMendixObject> consumer, Class<IMendixObject> returnType) Deprecated.since 11.0.EventActionInfo
(Consumer<IMendixObject> consumer, Class<IMendixObject> returnType, boolean raiseExceptionOnFalse) Deprecated.since 11.0. -
Method Summary
Modifier and TypeMethodDescriptionfunction()
Returns the Java function for this event action.Deprecated.since 11.0.Deprecated.since 11.0.
-
Field Details
-
actionName
-
raiseExceptionOnFalse
public final boolean raiseExceptionOnFalse
-
-
Constructor Details
-
EventActionInfo
Creates an event action with the specified name.- Parameters:
classOrActionName
- the name of the custom Java action or microflowraiseExceptionOnFalse
- whether to throw an exception if the action returns false
-
EventActionInfo
@Deprecated public EventActionInfo(Consumer<IMendixObject> consumer, Class<IMendixObject> returnType) Deprecated.since 11.0. UseEventActionInfo(Consumer)
.Creates an event action with the specified Java action. The action will not raise an exception when its result is false.- Parameters:
consumer
- the Java function to executereturnType
- the Java type of the result value
-
EventActionInfo
@Deprecated public EventActionInfo(Consumer<IMendixObject> consumer, Class<IMendixObject> returnType, boolean raiseExceptionOnFalse) Deprecated.since 11.0. UseEventActionInfo(String, boolean)
.Creates an event action with the specified Java action.- Parameters:
consumer
- the Java function to executereturnType
- the Java type of the result valueraiseExceptionOnFalse
- whether to throw an exception if the action returns false
-
EventActionInfo
Creates an event action with the specified Java function. The action will not raise an exception when its result is false.- Parameters:
consumer
- the Java function to execute
-
EventActionInfo
Creates an event action with the specified Java function.- Parameters:
consumer
- the Java function to executeraiseExceptionOnFalse
- whether to throw an exception if the action returns false
-
-
Method Details
-
representsFunction
Deprecated.since 11.0. Usefunction()
to check whether this `EventActionInfo` represents a function.Returns whether the event action is a Java function or not.- Returns:
- true if the action is a function; false otherwise
-
function
Returns the Java function for this event action.- Returns:
- the function if defined; null otherwise
-
getReturnType
Deprecated.since 11.0. There is no replacement as this return type is not used.Returns the Java type of the result value.- Returns:
- the Java type of the result value
-