flux
Interface DynamicJavaAction

All Superinterfaces:
Action, java.lang.Cloneable, DynamicMethod, RuntimeDataMap, java.io.Serializable

public interface DynamicJavaAction
extends Action, DynamicMethod

Creates a Java object from a class, then invokes a method on the newly created object. The class does not need to implement any specific interface. When the job executes this action, the object returned by the listener is added to the flow context.

The Dynamic Java Action returns its result in the flow context variable "RESULT". The following table contains more information on accessing and using the result.

Flow Context Variable Java Type Description
RESULTjava.lang.ObjectThe Object returned by the method specified in the listener signature.

Author:
Copyright 2014 Flux Corporation. All rights reserved.

Method Summary
 java.lang.Class getListener()
          Returns the listener that receives a callback.
 java.lang.String getListenerAsString()
          Returns the listener that receives a callback.
 void setListener(java.lang.Class listener)
          Sets the listener that receives a callback.
 void setListenerAsString(java.lang.String listener)
          Sets the listener that receives a callback.
 
Methods inherited from interface flux.Action
addFlow, addFlow, addSignalFlow, clone, execute, getDescription, getFlows, getHiddenVariableNames, getJoinExpression, getName, getPostscript, getPostscriptLanguage, getPrescript, getPrescriptLanguage, getResultInfo, getSignalsToMonitor, getTimeoutBusinessInterval, getTimeoutBusinessIntervalNamespace, getTimeoutExpression, getVariableManager, isEndOfRun, isJoinPoint, isSkippable, isStartAction, isStartOfRun, isTransactionBreak, removeFlow, reset, setDescription, setElseFlow, setEndOfRun, setErrorFlow, setErrorFlowWithoutRollback, setErrorFlowWithRollback, setJoinExpression, setJoinPoint, setName, setPostscript, setPostscriptLanguage, setPrescript, setPrescriptLanguage, setSignalsToMonitor, setSkippable, setStartAction, setStartOfRun, setTimeoutBusinessInterval, setTimeoutBusinessIntervalNamespace, setTimeoutExpression, setTimeoutFlow, setTransactionBreak, verify, verifyOnClient
 
Methods inherited from interface flux.runtimedatamap.RuntimeDataMap
getRuntimeDataMap, setRuntimeDataMap
 
Methods inherited from interface flux.DynamicMethod
getArgument, getArgumentCount, getArgumentType, getListenerSignature, setArgument, setArgument, setArgument, setArgument, setArgument, setArgument, setArgument, setArgument, setArgument, setArgument, setArgument, setArgument, setArgument, setArgument, setArgument, setArgument, setArgument, setArgument, setArgument, setListenerSignature
 

Method Detail

getListener

java.lang.Class getListener()
                            throws EngineException
Returns the listener that receives a callback. Returns the same property as getListenerAsString().

Returns:
The listener that receives a callback.
Throws:
EngineException - If a system error occurs.
See Also:
getListenerAsString()

getListenerAsString

java.lang.String getListenerAsString()
Returns the listener that receives a callback. Returns the same property as getListener().

Returns:
The fully-qualified name of the listener class that receives a callback.
See Also:
getListener()

setListener

void setListener(java.lang.Class listener)
Sets the listener that receives a callback. Sets the same property as setListenerAsString(). The listener does not need to implement any interface.

Parameters:
listener - The listener that receives a callback. Does not need to implement any interface.

setListenerAsString

void setListenerAsString(java.lang.String listener)
Sets the listener that receives a callback. Sets the same property as setListener(). The listener does not need to implement any interface.

Parameters:
listener - The fully-qualified name of the listener class that receives a callback. Does not need to implement any interface.


© 2014 Flux Corporation. All rights reserved.