org.activiti.cloud.services.rest.api.ProcessInstanceVariableController Maven / Gradle / Ivy
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);
}