org.ow2.bonita.facade
Interface CommandAPI


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(org.ow2.bonita.util.Command<T> command)
          Executes a command deployed at common level or one available in bonita distribution.
<T> T
execute(org.ow2.bonita.util.Command<T> command, org.ow2.bonita.facade.uuid.PackageDefinitionUUID packageUUID)
          Executes a command deployed at package level.
 

Method Detail

execute

<T> T execute(org.ow2.bonita.util.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(org.ow2.bonita.util.Command<T> command,
              org.ow2.bonita.facade.uuid.PackageDefinitionUUID packageUUID)
          throws java.lang.Exception
Executes a command deployed at package level.

Parameters:
command - Command to execute
packageUUID - 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.