Package org.bonitasoft.engine.synchro
Class WaitServerCommand
- java.lang.Object
-
- org.bonitasoft.engine.command.TenantCommand
-
- org.bonitasoft.engine.synchro.WaitServerCommand
-
- All Implemented Interfaces:
Command<TenantServiceAccessor>
public class WaitServerCommand extends TenantCommand
- Author:
- Baptiste Mesta
-
-
Constructor Summary
Constructors Constructor Description WaitServerCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.Serializable
execute(java.util.Map<java.lang.String,java.io.Serializable> parameters, TenantServiceAccessor serviceAccessor)
Method that is called by the engine on the server side when the client callsCommandAPI.execute(String, Map)
with the name or id of this command.
-
-
-
Method Detail
-
execute
public java.io.Serializable execute(java.util.Map<java.lang.String,java.io.Serializable> parameters, TenantServiceAccessor serviceAccessor) throws SCommandExecutionException
Description copied from interface:Command
Method that is called by the engine on the server side when the client callsCommandAPI.execute(String, Map)
with the name or id of this command. Implementors of commands must put here the code to be executed on the server side- Parameters:
parameters
- a map of parameters that can be used by the command and that is given by the client when executing the commandserviceAccessor
- the TenantServiceAccessor or PlatformServiceAccessor that provides access to the engine's server-side services- Returns:
- a result that will be returned to the client
- Throws:
SCommandExecutionException
- can be thrown when something unexpected happens while executing the command
-
-