|
ALBPM Process API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Invocation
Method Summary | |
---|---|
Object |
doInvoke(Object[] args)
Invokes the actual method |
Object[] |
doPostInvoke(Object[] methodArgs,
Object retVal)
Does all post invocation processing (calling getters and processing output arguments) |
Object[] |
doPreInvoke()
Performs pre-invocation argument processing. |
Object[] |
getInputArgs()
Returns an array containing the signatures of the input arguments (in even positions) and the values (in odd positions). |
Object[] |
getOutputArgs()
Returns an array containing all the signatures of the output arguments that were requested in this invocation. |
String |
getSignature()
Returns the signature of the method this invocation references. |
Object[] |
invoke()
Performs a default execution of this invocation, returning an Object[] suitable to be passed to fuego.component.CustomExecution#setInvocationResult(Object[]) . |
boolean |
isOutOfOrder()
Returns true if this invocation can be executed out-of-order |
boolean |
isSynchronous()
Returns true if this method execution is synchronous. |
Method Detail |
---|
Object[] getInputArgs()
getOutputArgs()
.
boolean isOutOfOrder()
Object[] getOutputArgs()
#1 #R #24All other signatures reference attributes of the target component, and should be passed to Invokeable.getAttribute() to obtain the actual value.
String getSignature()
boolean isSynchronous()
Object doInvoke(Object[] args) throws fuego.lang.ComponentExecutionException
args
- arguments as returned by doPreInvoke()
fuego.lang.ComponentExecutionException
- if the method does soObject[] doPostInvoke(Object[] methodArgs, Object retVal)
methodArgs
- method arguments after being passed to Invokeable.invoke(signature, arguments)retVal
- return value of Invokeable.invoke(signature, arguments)
fuego.component.CustomExecution#setInvocationResult(Object[])
Object[] doPreInvoke()
Object[] invoke() throws Exception
fuego.component.CustomExecution#setInvocationResult(Object[])
.
InvocationImpl inv; ... //Calling Object[] result = inv.invoke(); //Is the same than: Object[] args = inv.doPreInvoke(); Object retval = inv.doInvoke(args); Object[] result = inv.doPostInvoke(args, retval);
fuego.component.CustomExecution#setInvocationResult(Object[])
Exception
- if the invocation failed (it should be passed to fuego.component.CustomExecution#setException(Throwable)
)
|
ALBPM Process API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |