@RestController public class CommentsResource extends AbstractCommentsResource
Constructor and Description |
---|
CommentsResource() |
Modifier and Type | Method and Description |
---|---|
com.activiti.model.runtime.CommentRepresentation |
addProcessInstanceComment(com.activiti.model.runtime.CommentRepresentation commentRequest,
String processInstanceId) |
com.activiti.model.runtime.CommentRepresentation |
addTaskComment(com.activiti.model.runtime.CommentRepresentation commentRequest,
String taskId) |
com.activiti.model.common.ResultListDataRepresentation |
getProcessInstanceComments(String processInstanceId,
Boolean latestFirst) |
com.activiti.model.common.ResultListDataRepresentation |
getTaskComments(String taskId,
Boolean latestFirst) |
checkReadPermissionOnProcessInstance, checkReadPermissionOnTask
@RequestMapping(value="/rest/tasks/{taskId}/comments", method=GET, produces="application/json") public com.activiti.model.common.ResultListDataRepresentation getTaskComments(@PathVariable(value="taskId") String taskId, @RequestParam(value="latestFirst",required=false) Boolean latestFirst)
getTaskComments
in class AbstractCommentsResource
@RequestMapping(value="/rest/tasks/{taskId}/comments", method=POST, produces="application/json") public com.activiti.model.runtime.CommentRepresentation addTaskComment(@RequestBody com.activiti.model.runtime.CommentRepresentation commentRequest, @PathVariable(value="taskId") String taskId)
addTaskComment
in class AbstractCommentsResource
@RequestMapping(value="/rest/process-instances/{processInstanceId}/comments", method=GET, produces="application/json") public com.activiti.model.common.ResultListDataRepresentation getProcessInstanceComments(@PathVariable(value="processInstanceId") String processInstanceId, @RequestParam(value="latestFirst",required=false) Boolean latestFirst)
getProcessInstanceComments
in class AbstractCommentsResource
@RequestMapping(value="/rest/process-instances/{processInstanceId}/comments", method=POST, produces="application/json") public com.activiti.model.runtime.CommentRepresentation addProcessInstanceComment(@RequestBody com.activiti.model.runtime.CommentRepresentation commentRequest, @PathVariable(value="processInstanceId") String processInstanceId)
addProcessInstanceComment
in class AbstractCommentsResource
Copyright © 2014–2015 Alfresco. All rights reserved.