ALBPM Process API (PAPI)

fuego.papi
Interface Execution

All Superinterfaces:
Serializable
All Known Subinterfaces:
GlobalExecution, TaskExecution

public interface Execution
extends Serializable

Allows advanced users to customize invocations on client-side components.


Method Summary
 Arguments getArguments()
          Returns the original Arguments object passed to this task.
 InstanceInfo getResult()
          Finishes this execution and updates the Arguments object passed to this task.
 Invocation next()
          Returns the next client-side invocation that must be performed.
After the invocation is finished, setInvocationResult(java.lang.Object[]) or setException(java.lang.Throwable) must be called depending on the result of this invocation.
 void setException(Throwable t)
          Sets the exception thrown by the last invocation.
 void setInvocationResult(Object[] ret)
          Sets the result of the last invocation.
 

Method Detail

getArguments

public Arguments getArguments()
Returns the original Arguments object passed to this task.

Returns:
the original Arguments object passed to this task.

setException

public void setException(Throwable t)
Sets the exception thrown by the last invocation.

Parameters:
t - exception thrown by the last invocation returned by next().

setInvocationResult

public void setInvocationResult(Object[] ret)
Sets the result of the last invocation.

Parameters:
ret - output arguments of the last invocation returned by next().

getResult

public InstanceInfo getResult()
Finishes this execution and updates the Arguments object passed to this task.

Returns:
the instance created by the global activity, or null if none was created.

next

public Invocation next()
                throws Exception
Returns the next client-side invocation that must be performed.
After the invocation is finished, setInvocationResult(java.lang.Object[]) or setException(java.lang.Throwable) must be called depending on the result of this invocation.

Returns:
the next client-side invocation that must be performed or null if finished.
Throws:
Exception - if something goes wrong.

ALBPM Process API (PAPI)

© Copyright 1996/2005 Fuego Inc. All Rights Reserved