ALBPM Process API

fuego.papi
Interface Execution

All Known Subinterfaces:
GlobalExecution, TaskExecution

public interface Execution


Method Summary
 void beforeService()
          Initializes thread environment before processing service
 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

Arguments getArguments()
Returns the original Arguments object passed to the task

Returns:
the original Arguments object passed to the task

setException

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

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

setInvocationResult

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

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

getResult

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

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

beforeService

void beforeService()
Initializes thread environment before processing service


ALBPM Process API

© Copyright 1996/2005 Fuego Inc. All Rights Reserved