public interface ParameterService
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(long processDefinitionId,
Map<String,String> parameters)
Store all parameters provided to the specific process in file system
|
boolean |
containsNullValues(long processDefinitionId)
Check if the specific process contains null-valued parameter or not.
|
void |
deleteAll(long processDefinitionId)
Delete all parameters for a specific processDefinition
|
List<SParameter> |
get(long processDefinitionId,
int fromIndex,
int numberOfResult,
OrderBy order)
Get parameters in a specific interval for specific process, this is used for pagination
|
SParameter |
get(long processDefinitionId,
String parameterName)
Get parameter by name in specific process
|
Map<String,String> |
getAll(long processDefinitionId)
return all parameters in a map
|
List<SParameter> |
getNullValues(long processDefinitionId,
int fromIndex,
int numberOfResult,
OrderBy order)
Get a list of parameters will null values in order in specific process
|
void |
merge(long processDefinitionId,
Map<String,String> parameters)
Merge given parameters with existing ones.
|
void |
update(long processDefinitionId,
String parameterName,
String parameterValue)
Update specific parameter value in a process
|
void update(long processDefinitionId,
String parameterName,
String parameterValue)
throws SParameterNameNotFoundException,
SBonitaReadException,
org.bonitasoft.engine.commons.exceptions.SObjectModificationException
processDefinitionId - identifier of processDefinitionparameterName - name of the parameter will be updatedparameterValue - new value of the parameterSParameterNameNotFoundException - error thrown if no parameter found for the specific parameterNameSBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionvoid merge(long processDefinitionId,
Map<String,String> parameters)
throws SBonitaReadException,
org.bonitasoft.engine.commons.exceptions.SObjectModificationException
processDefinitionId - identifier of processDefinitionparameters - parameters to mergeSBonitaReadException - error thrown if an error occured while retrieving the process definitionorg.bonitasoft.engine.commons.exceptions.SObjectModificationException - error thrown if an error occured while updating the parameter valuevoid addAll(long processDefinitionId,
Map<String,String> parameters)
throws SParameterProcessNotFoundException,
org.bonitasoft.engine.commons.exceptions.SObjectCreationException,
SBonitaReadException,
org.bonitasoft.engine.commons.exceptions.SObjectModificationException
processDefinitionId - identifier of processDefinitionparameters - parameters will be stored in file systemSParameterProcessNotFoundException - error thrown if no parameters configuration file found in file systemorg.bonitasoft.engine.commons.exceptions.SObjectCreationExceptionSBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionMap<String,String> getAll(long processDefinitionId) throws SParameterProcessNotFoundException, SBonitaReadException
processDefinitionId - SParameterProcessNotFoundExceptionSBonitaReadExceptionvoid deleteAll(long processDefinitionId)
throws SParameterProcessNotFoundException,
SBonitaReadException,
org.bonitasoft.engine.commons.exceptions.SObjectModificationException
processDefinitionId - ID of processDefinitionSParameterProcessNotFoundException - error thrown if no parameters configuration file found in file systemSBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionList<SParameter> get(long processDefinitionId, int fromIndex, int numberOfResult, OrderBy order) throws SOutOfBoundException, SBonitaReadException
processDefinitionId - identifier of processDefinitionfromIndex - index of the record to be retrieved from. First record has index 0numberOfResult - number of result we want to get. Maximum number of result returned.order - OrderBy object, contains information to do orderSOutOfBoundException - error throw if fromIndex >= total size of parametersSBonitaReadExceptionSParameter get(long processDefinitionId, String parameterName) throws SBonitaReadException
processDefinitionId - identifier of processDefinitionparameterName - name of parameterSBonitaReadExceptionList<SParameter> getNullValues(long processDefinitionId, int fromIndex, int numberOfResult, OrderBy order) throws SParameterProcessNotFoundException, SOutOfBoundException, SBonitaReadException
processDefinitionId - identifier of processDefinitionfromIndex - index of the record to be retrieved from. First record has index 0numberOfResult - number of result we want to get. Maximum number of result returned.order - OrderBy object, contains information to do orderSParameterProcessNotFoundException - error thrown if no parameters configuration file found in file systemSOutOfBoundException - error throw if fromIndex >= total size of parametersSBonitaReadExceptionboolean containsNullValues(long processDefinitionId)
throws SBonitaReadException
processDefinitionId - The ID of the process definitionSParameterProcessNotFoundExceptionSBonitaReadExceptionCopyright © 2019 Bonitasoft S.A.. All rights reserved.