@RestController @RequestMapping(value="/app") public class CommentsResource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected FlowableCommentService |
commentService |
| Constructor and Description |
|---|
CommentsResource() |
| Modifier and Type | Method and Description |
|---|---|
CommentRepresentation |
addProcessInstanceComment(CommentRepresentation commentRequest,
String processInstanceId) |
CommentRepresentation |
addTaskComment(CommentRepresentation commentRequest,
String taskId) |
org.flowable.ui.common.model.ResultListDataRepresentation |
getProcessInstanceComments(String processInstanceId) |
org.flowable.ui.common.model.ResultListDataRepresentation |
getTaskComments(String taskId) |
@Autowired protected FlowableCommentService commentService
@GetMapping(value="/rest/tasks/{taskId}/comments",
produces="application/json")
public org.flowable.ui.common.model.ResultListDataRepresentation getTaskComments(@PathVariable(value="taskId")
String taskId)
@PostMapping(value="/rest/tasks/{taskId}/comments",
produces="application/json")
public CommentRepresentation addTaskComment(@RequestBody
CommentRepresentation commentRequest,
@PathVariable(value="taskId")
String taskId)
@GetMapping(value="/rest/process-instances/{processInstanceId}/comments",
produces="application/json")
public org.flowable.ui.common.model.ResultListDataRepresentation getProcessInstanceComments(@PathVariable(value="processInstanceId")
String processInstanceId)
@PostMapping(value="/rest/process-instances/{processInstanceId}/comments",
produces="application/json")
public CommentRepresentation addProcessInstanceComment(@RequestBody
CommentRepresentation commentRequest,
@PathVariable(value="processInstanceId")
String processInstanceId)
Copyright © 2022 Flowable. All rights reserved.