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

org.activiti.cloud.services.rest.api.ProcessInstanceVariableController 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.process.model.payloads.SetProcessVariablesPayload;
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/process-instances/{processInstanceId}/variables", produces = {MediaTypes.HAL_JSON_VALUE, MediaType.APPLICATION_JSON_VALUE})
public interface ProcessInstanceVariableController {

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

    @RequestMapping(method = RequestMethod.POST)
    ResponseEntity setVariables(@PathVariable String processInstanceId,
                                      @RequestBody SetProcessVariablesPayload setProcessVariablesPayload);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy