Package org.bonitasoft.engine.command
Class ExecuteBDMQueryCommand
java.lang.Object
org.bonitasoft.engine.command.RuntimeCommand
org.bonitasoft.engine.command.ExecuteBDMQueryCommand
- All Implemented Interfaces:
Command<ServiceAccessor>
- Author:
- Romain Bioteau, Matthieu Chaffotte
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(Map<String, Serializable> parameters, ServiceAccessor 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.Methods inherited from class org.bonitasoft.engine.command.RuntimeCommand
getIntegerMandatoryParameter, getLongMandatoryParameter, getMandatoryParameter, getMandatoryParameter, getMapMandatoryParameter, getParameter, getParameter, getParameter, getStringMandatoryParameter
-
Field Details
-
RETURNS_LIST
- See Also:
-
QUERY_PARAMETERS
- See Also:
-
RETURN_TYPE
- See Also:
-
QUERY_NAME
- See Also:
-
START_INDEX
- See Also:
-
MAX_RESULTS
- See Also:
-
-
Constructor Details
-
ExecuteBDMQueryCommand
public ExecuteBDMQueryCommand()
-
-
Method Details
-
execute
public Serializable execute(Map<String, Serializable> parameters, ServiceAccessor serviceAccessor) throws SCommandParameterizationException, SCommandExecutionExceptionDescription copied from interface:CommandMethod 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 ServiceAccessor that provides access to the engine's server-side services- Returns:
- a result that will be returned to the client
- Throws:
SCommandParameterizationException- can be thrown if insufficient or wrong parameters are given by the clientSCommandExecutionException- can be thrown when something unexpected happens while executing the command
-