Package com.mendix.core.actionmanagement
Class EventActionInfo<T>
java.lang.Object
com.mendix.core.actionmanagement.EventActionInfo<T>
Represents an event action.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionEventActionInfo(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 SummaryModifier 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
- 
raiseExceptionOnFalsepublic final boolean raiseExceptionOnFalse
 
- 
- 
Constructor Details- 
EventActionInfoCreates an event action with the specified name.- Parameters:
- classOrActionName- the name of the custom Java action or microflow
- raiseExceptionOnFalse- whether to throw an exception if the action returns false
 
- 
EventActionInfoCreates 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 execute
- returnType- the Java type of the result value
 
- 
EventActionInfoCreates an event action with the specified Java action.- Parameters:
- consumer- the Java function to execute
- returnType- the Java type of the result value
- raiseExceptionOnFalse- whether to throw an exception if the action returns false
 
- 
EventActionInfoCreates 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
 
- 
EventActionInfoCreates an event action with the specified Java function.- Parameters:
- consumer- the Java function to execute
- raiseExceptionOnFalse- whether to throw an exception if the action returns false
 
 
- 
- 
Method Details- 
representsFunctionReturns whether the event action is a Java function or not.- Returns:
- true if the action is a function; false otherwise
 
- 
functionReturns the Java function for this event action.- Returns:
- the function if defined; null otherwise
 
- 
getReturnTypeReturns the Java type of the result value.- Returns:
- the Java type of the result value
 
 
-