Class ProcessInstanceVariableResource
java.lang.Object
org.flowable.rest.service.api.runtime.process.BaseExecutionVariableResource
org.flowable.rest.service.api.runtime.process.ProcessInstanceVariableResource
- All Implemented Interfaces:
InitializingBean
- Author:
- Frederik Heremans
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.fasterxml.jackson.databind.ObjectMapper
Fields inherited from class org.flowable.rest.service.api.runtime.process.BaseExecutionVariableResource
env, isSerializableVariableAllowed, restApiInterceptor, restResponseFactory, runtimeService, variableType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RestVariable
constructRestVariable
(String variableName, Object value, RestVariable.RestVariableScope variableScope, String executionId, boolean includeBinary) void
deleteVariable
(String processInstanceId, String variableName, String scope) getVariable
(String processInstanceId, String variableName, String scope) updateVariable
(String processInstanceId, String variableName, jakarta.servlet.http.HttpServletRequest request) Methods inherited from class org.flowable.rest.service.api.runtime.process.BaseExecutionVariableResource
afterPropertiesSet, allowProcessInstanceUrl, getExecutionFromRequestWithoutAccessCheck, getExecutionIdParameter, getVariableDataByteArray, getVariableFromRequest, getVariableFromRequestWithoutAccessCheck, hasVariableOnScope, setBinaryVariable, setSimpleVariable, setVariable
-
Field Details
-
objectMapper
-
-
Constructor Details
-
ProcessInstanceVariableResource
public ProcessInstanceVariableResource()
-
-
Method Details
-
getVariable
@GetMapping(value="/runtime/process-instances/{processInstanceId}/variables/{variableName}", produces="application/json") public RestVariable getVariable(@PathVariable("processInstanceId") String processInstanceId, @PathVariable("variableName") String variableName, @RequestParam(value="scope",required=false) String scope) -
updateVariable
@PutMapping(value="/runtime/process-instances/{processInstanceId}/variables/{variableName}", produces="application/json", consumes={"application/json","multipart/form-data"}) public RestVariable updateVariable(@PathVariable("processInstanceId") String processInstanceId, @PathVariable("variableName") String variableName, jakarta.servlet.http.HttpServletRequest request) -
deleteVariable
@DeleteMapping("/runtime/process-instances/{processInstanceId}/variables/{variableName}") @ResponseStatus(NO_CONTENT) public void deleteVariable(@PathVariable("processInstanceId") String processInstanceId, @PathVariable("variableName") String variableName, @RequestParam(value="scope",required=false) String scope) -
constructRestVariable
protected RestVariable constructRestVariable(String variableName, Object value, RestVariable.RestVariableScope variableScope, String executionId, boolean includeBinary) - Overrides:
constructRestVariable
in classBaseExecutionVariableResource
-