org.ow2.bonita.facade
Interface CommandAPI

All Known Implementing Classes:
EJBCommandAPIInterceptor

public interface CommandAPI

To allow developpers to write and execute its own commands packaged within its application.

See Also:
TxHook

Method Summary
<T> T
execute(Command<T> command)
          Executes a command deployed at common level or one available in bonita distribution.
<T> T
execute(Command<T> command, ProcessDefinitionUUID processUUID)
          Executes a command deployed at package level.
 

Method Detail

execute

<T> T execute(Command<T> command)
          throws java.lang.Exception
Executes a command deployed at common level or one available in bonita distribution.

Parameters:
command - Command to execute
Returns:
the result of the command
Throws:
java.lang.Exception - if an exception occurs during the command execution

execute

<T> T execute(Command<T> command,
              ProcessDefinitionUUID processUUID)
          throws java.lang.Exception
Executes a command deployed at package level.

Parameters:
command - Command to execute
processUUID - UUID of the package in which the command was deployed (result of bar deployment)
Returns:
the result of the command
Throws:
java.lang.Exception - if an exception occurs during the command execution


Copyright © 2009 OW2 Consortium. All Rights Reserved.