Get Local Execution Variable (Binary)
Retrieves a binary variable from the context of a given execution by id. Does not traverse the parent execution hierarchy. Applicable for byte array and file variables.
Method
GET /execution/{id}/localVariables/{varName}/data
Parameters
Path Parameters
| Name | Description | 
|---|---|
| id | The id of the execution to retrieve the variable from. | 
| varName | The name of the variable to get. | 
Result
For binary variables or files without any MIME type information, a byte stream is returned. File variables with MIME type information are returned as the saved type. Additionally, for file variables the Content-Disposition header will be set.
Response Codes
| Code | Media type | Description | 
|---|---|---|
| 200 | application/octet-stream orthe saved MIME type | Request successful. | 
| 400 | application/json | Variable instance with given id exists but is not a binary variable. See the Introduction for the error response format. | 
| 404 | application/json | Variable instance with given id does not exist. See the Introduction for the error response format. | 
Example
Request
GET /execution/anExecutionId/localVariables/aVarName/data
Response
binary variable: Status 200. Content-Type: application/octet-stream
file variable: Status 200. Content-Type: text/plain; charset=UTF-8. Content-Disposition: attachment; filename=“someFile.txt”