Package com.mendix.core.actionmanagement
Class EventActionInfo<T>
java.lang.Object
com.mendix.core.actionmanagement.EventActionInfo<T>
Represents an event action.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEventActionInfo
(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<T> consumer, Class<T> returnType) Creates an event action with the specified Java action.EventActionInfo
(Consumer<T> consumer, Class<T> returnType, boolean raiseExceptionOnFalse) Creates an event action with the specified Java action. -
Method Summary
Modifier and TypeMethodDescriptionfunction()
Returns the Java function for this event action.Returns the Java type of the result value.Returns whether the event action is a Java function or not.
-
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
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
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
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
Returns the Java type of the result value.- Returns:
- the Java type of the result value
-