All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.activiti.cloud.services.rest.api.TaskVariableController Maven / Gradle / Ivy

There is a newer version: 7.1.0.M6
Show newest version
package org.activiti.cloud.services.rest.api;

import org.activiti.api.task.model.payloads.CreateTaskVariablePayload;
import org.activiti.api.task.model.payloads.UpdateTaskVariablePayload;
import org.activiti.cloud.services.rest.api.resources.VariableInstanceResource;
import org.springframework.hateoas.MediaTypes;
import org.springframework.hateoas.Resources;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@RequestMapping(value = "/v1/tasks/{taskId}/variables",
        produces = {MediaTypes.HAL_JSON_VALUE, MediaType.APPLICATION_JSON_VALUE})
public interface TaskVariableController {

    @RequestMapping(method = RequestMethod.GET)
    Resources getVariables(@PathVariable String taskId);

    @RequestMapping(method = RequestMethod.POST)
    ResponseEntity createVariable(@PathVariable String taskId,
                                        @RequestBody CreateTaskVariablePayload createTaskVariablePayload);

    @RequestMapping(value = "/{variableName}", method = RequestMethod.PUT)
    ResponseEntity updateVariable(@PathVariable String taskId,
                                        @PathVariable String variableName,
                                        @RequestBody UpdateTaskVariablePayload updateTaskVariablePayload);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy