All URIs are relative to http://localhost:8080/engine-rest
Method | HTTP request | Description |
---|---|---|
delete_task_local_variable | delete /task/{id}/localVariables/{varName} | |
get_task_local_variable | get /task/{id}/localVariables/{varName} | |
get_task_local_variable_binary | get /task/{id}/localVariables/{varName}/data | |
get_task_local_variables | get /task/{id}/localVariables | |
modify_task_local_variables | post /task/{id}/localVariables | |
put_task_local_variable | put /task/{id}/localVariables/{varName} | |
set_binary_task_local_variable | post /task/{id}/localVariables/{varName}/data |
delete_task_local_variable(id, var_name)
Removes a local variable from a task by id.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | String | The id of the task to delete the variable from. | [required] | |
var_name | String | The name of the variable to be removed. | [required] |
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::VariableValueDto get_task_local_variable(id, var_name, deserialize_value)
Retrieves a variable from the context of a given task by id.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | String | The id of the task to retrieve the variable from. | [required] | |
var_name | String | The name of the variable to get | [required] | |
deserialize_value | Option<bool> | Determines whether serializable variable values (typically variables that store custom Java objects) should be deserialized on the server side (default true ). If set to true , a serializable variable will be deserialized on server side and transformed to JSON using Jackson's POJO/bean property introspection feature. Note that this requires the Java classes of the variable value to be on the REST API's classpath. If set to false , a serializable variable will be returned in its serialized format. For example, a variable that is serialized as XML will be returned as a JSON string containing XML. Note: While true is the default value for reasons of backward compatibility, we recommend setting this parameter to false when developing web applications that are independent of the Java process applications deployed to the engine. |
[default to true] |
crate::models::VariableValueDto
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
std::path::PathBuf get_task_local_variable_binary(id, var_name)
Retrieves a binary variable from the context of a given task by id. Applicable for byte array and file variables.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | String | The id of the task to retrieve the variable for. | [required] | |
var_name | String | The name of the variable to retrieve. | [required] |
std::path::PathBuf
No authorization required
- Content-Type: Not defined
- Accept: application/octet-stream, text/plain, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
::std::collections::HashMap<String, crate::models::VariableValueDto> get_task_local_variables(id, deserialize_values)
Retrieves all variables of a given task by id.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | String | The id of the task to retrieve the variables from. | [required] | |
deserialize_values | Option<bool> | Determines whether serializable variable values (typically variables that store custom Java objects) should be deserialized on the server side (default true ). If set to true , a serializable variable will be deserialized on server side and transformed to JSON using Jackson's POJO/bean property introspection feature. Note that this requires the Java classes of the variable value to be on the REST API's classpath. If set to false , a serializable variable will be returned in its serialized format. For example, a variable that is serialized as XML will be returned as a JSON string containing XML. Note: While true is the default value for reasons of backward compatibility, we recommend setting this parameter to false when developing web applications that are independent of the Java process applications deployed to the engine. |
[default to true] |
::std::collections::HashMap<String, crate::models::VariableValueDto>
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
modify_task_local_variables(id, patch_variables_dto)
Updates or deletes the variables in the context of a task. Updates precede deletions. So, if a variable is updated AND deleted, the deletion overrides the update.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | String | The id of the task to set variables for. | [required] | |
patch_variables_dto | Option<PatchVariablesDto> |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
put_task_local_variable(id, var_name, variable_value_dto)
Sets a variable in the context of a given task.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | String | The id of the task to set the variable for. | [required] | |
var_name | String | The name of the variable to set. | [required] | |
variable_value_dto | Option<VariableValueDto> |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
set_binary_task_local_variable(id, var_name, data, value_type)
Sets the serialized value for a binary variable or the binary value for a file variable.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | String | The id of the task to retrieve the variable for. | [required] | |
var_name | String | The name of the variable to retrieve. | [required] | |
data | Option<std::path::PathBuf> | The binary data to be set. For File variables, this multipart can contain the filename, binary value and MIME type of the file variable to be set Only the filename is mandatory. | ||
value_type | Option<String> | The name of the variable type. Either Bytes for a byte array variable or File for a file variable. |
(empty response body)
No authorization required
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]