Package com.mendix.core.actionmanagement
Class EventActionInfo<T>
- java.lang.Object
- 
- com.mendix.core.actionmanagement.EventActionInfo<T>
 
- 
 public class EventActionInfo<T> extends java.lang.ObjectRepresents an event action.
- 
- 
Field SummaryFields Modifier and Type Field Description java.lang.StringactionNamebooleanraiseExceptionOnFalse
 - 
Constructor SummaryConstructors Constructor Description EventActionInfo(java.lang.String classOrActionName, boolean raiseExceptionOnFalse)Creates an event action with the specified name.EventActionInfo(java.util.function.Consumer<IMendixObject> consumer)Creates an event action with the specified Java function.EventActionInfo(java.util.function.Consumer<IMendixObject> consumer, boolean raiseExceptionOnFalse)Creates an event action with the specified Java function.EventActionInfo(java.util.function.Consumer<T> consumer, java.lang.Class<T> returnType)Creates an event action with the specified Java action.EventActionInfo(java.util.function.Consumer<T> consumer, java.lang.Class<T> returnType, boolean raiseExceptionOnFalse)Creates an event action with the specified Java action.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.Consumer<IMendixObject>function()Returns the Java function for this event action.java.lang.Class<T>getReturnType()Returns the Java type of the result value.java.lang.BooleanrepresentsFunction()Returns whether the event action is a Java function or not.
 
- 
- 
- 
Constructor Detail- 
EventActionInfopublic EventActionInfo(java.lang.String classOrActionName, boolean raiseExceptionOnFalse)Creates 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
 
 - 
EventActionInfopublic EventActionInfo(java.util.function.Consumer<T> consumer, java.lang.Class<T> returnType) 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 execute
- returnType- the Java type of the result value
 
 - 
EventActionInfopublic EventActionInfo(java.util.function.Consumer<T> consumer, java.lang.Class<T> returnType, boolean raiseExceptionOnFalse) Creates 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
 
 - 
EventActionInfopublic EventActionInfo(java.util.function.Consumer<IMendixObject> consumer) 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
 
 - 
EventActionInfopublic EventActionInfo(java.util.function.Consumer<IMendixObject> consumer, boolean raiseExceptionOnFalse) Creates 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 Detail- 
representsFunctionpublic java.lang.Boolean representsFunction() Returns whether the event action is a Java function or not.- Returns:
- true if the action is a function; false otherwise
 
 - 
functionpublic java.util.function.Consumer<IMendixObject> function() Returns the Java function for this event action.- Returns:
- the function if defined; null otherwise
 
 - 
getReturnTypepublic java.lang.Class<T> getReturnType() Returns the Java type of the result value.- Returns:
- the Java type of the result value
 
 
- 
 
-