Fuego Process API

fuego.papi
Interface Execution

All Known Subinterfaces:
GlobalExecution, TaskExecution

public interface Execution


Method Summary
 Arguments getArguments()
          Returns the original Arguments object passed to the task
 InstanceInfo getResult()
          Finishes this execution and updates the Arguments object passed to the task.
 Invocation next()
          Returns the next client-side invocation that must be performed.
 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 the task

Returns:
the original Arguments object passed to the 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 the 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

Fuego Process API

© Copyright 1996/2003 Fuego Inc. All Rights Reserved