Class TaskVariableCollectionResource
java.lang.Object
org.flowable.cmmn.rest.service.api.runtime.task.TaskBaseResource
org.flowable.cmmn.rest.service.api.runtime.task.TaskVariableBaseResource
org.flowable.cmmn.rest.service.api.runtime.task.TaskVariableCollectionResource
- All Implemented Interfaces:
InitializingBean
- Author:
- Frederik Heremans
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.fasterxml.jackson.databind.ObjectMapper
Fields inherited from class org.flowable.cmmn.rest.service.api.runtime.task.TaskVariableBaseResource
env, isSerializableVariableAllowed, runtimeService
Fields inherited from class org.flowable.cmmn.rest.service.api.runtime.task.TaskBaseResource
historyService, restApiInterceptor, restResponseFactory, taskService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addGlobalVariables
(Task task, Map<String, RestVariable> variableMap) protected void
addLocalVariables
(Task task, Map<String, RestVariable> variableMap) createTaskVariable
(String taskId, jakarta.servlet.http.HttpServletRequest request) void
deleteAllLocalTaskVariables
(String taskId) getVariables
(String taskId, String scope) Methods inherited from class org.flowable.cmmn.rest.service.api.runtime.task.TaskVariableBaseResource
afterPropertiesSet, getVariableFromRequest, getVariableFromRequestWithoutAccessCheck, hasVariableOnScope, setBinaryVariable, setSimpleVariable, setVariable
Methods inherited from class org.flowable.cmmn.rest.service.api.runtime.task.TaskBaseResource
addProcessvariables, addTaskvariables, getDelegationState, getTaskFromRequest, getTaskFromRequestWithoutAccessCheck, getTasksFromQueryRequest, getTasksFromRequest, populateTaskFromRequest, populateTasksFromRequest
-
Field Details
-
objectMapper
-
-
Constructor Details
-
TaskVariableCollectionResource
public TaskVariableCollectionResource()
-
-
Method Details
-
getVariables
@GetMapping(value="/cmmn-runtime/tasks/{taskId}/variables", produces="application/json") public List<RestVariable> getVariables(@PathVariable String taskId, @RequestParam(value="scope",required=false) String scope) -
createTaskVariable
@PostMapping(value="/cmmn-runtime/tasks/{taskId}/variables", produces="application/json", consumes={"text/plain","application/json","multipart/form-data"}) @ResponseStatus(CREATED) public Object createTaskVariable(@PathVariable String taskId, jakarta.servlet.http.HttpServletRequest request) -
deleteAllLocalTaskVariables
@DeleteMapping("/cmmn-runtime/tasks/{taskId}/variables") @ResponseStatus(NO_CONTENT) public void deleteAllLocalTaskVariables(@PathVariable String taskId) -
addGlobalVariables
-
addLocalVariables
-