activiti标准restful例子
来源:互联网 发布:美工连捅策划7刀新闻 编辑:程序博客网 时间:2024/06/05 19:22
@RestControllerpublic class TaskVariableResource extends TaskVariableBaseResource { @Autowired protected ObjectMapper objectMapper; public TaskVariableResource() {} @RequestMapping( value = {"/runtime/tasks/{taskId}/variables/{variableName}"}, method = {RequestMethod.GET}, produces = {"application/json"} ) public RestVariable getVariable(@PathVariable("taskId") String taskId, @PathVariable("variableName") String variableName, @RequestParam( value = "scope", required = false) String scope, HttpServletRequest request, HttpServletResponse response) { return this.getVariableFromRequest(taskId, variableName, scope, false); } @RequestMapping( value = {"/runtime/tasks/{taskId}/variables/{variableName}"}, method = {RequestMethod.PUT}, produces = {"application/json"}) public RestVariable updateVariable(@PathVariable("taskId") String taskId, @PathVariable("variableName") String variableName, @RequestParam( value = "scope", required = false) String scope, HttpServletRequest request) { Task task = this.getTaskFromRequest(taskId); RestVariable result = null; .................. return result; } @RequestMapping( value = {"/runtime/tasks/{taskId}/variables/{variableName}"}, method = {RequestMethod.DELETE} ) public void deleteVariable(@PathVariable("taskId") String taskId, @PathVariable("variableName") String variableName, @RequestParam( value = "scope", required = false) String scopeString, HttpServletResponse response) { } @RequestMapping( value = {"/runtime/tasks/{taskId}/identitylinks"}, method = {RequestMethod.POST}, produces = {"application/json"}) public RestIdentityLink createIdentityLink(@PathVariable("taskId") String taskId, @RequestBody RestIdentityLink identityLink, HttpServletRequest request, HttpServletResponse response) { ........................... return this.restResponseFactory.createRestIdentityLink(identityLink.getType(), identityLink.getUser(), identityLink.getGroup(), task.getId(), (String)null, (String)null); } }
0 0
- activiti标准restful例子
- 利用js访问activiti-restful
- restful的例子
- Restful API例子(Golang)
- RESTful风格例子
- Activiti多人会签例子
- Jetty + Jersey简单RESTful例子
- Activiti 5.17 restful webservice与resource类的对应关系
- Activiti 5.17 以文件形式上传的restful resource
- Spring + Activiti + Drools整合的请假例子
- activiti和spring整合配置例子
- Spring + Activiti + Drools整合的请假例子
- Win32 OpenGL标准例子
- 基于RESTful标准的Web Api
- 来自于PayPal的RESTful API标准
- 基于 RESTful 标准的 Web Api
- 来自于PayPal的RESTful API标准
- Activiti的简单入门例子(经典的请假例子)
- 计算两个日期的间隔天数(难度:1颗星)
- Valid Parentheses
- 2017.5.14
- 0514
- Spark2.1.0分布式集群安装
- activiti标准restful例子
- 已经添加了jar包却还是出现 java.lang.ClassNotFoundException: com.mysql.jdbc.Driver错误
- leetcode 112. Path Sum
- AngularJS中$state带参数跳转
- WWW BROWSER AND SERVER
- 消息队列
- Zookeeper系列(二十六)Zookeeper之Ganglia监控安装
- 软件研发软件基础设施的建设
- 笔记&讨论:什么是模块化开发以及最基本的应用