Interface HvlBpmnTaskOperationalRestService

All Known Implementing Classes:
HvlBpmnTaskRestController

@Validated @HvlPrivateFeignRestService @FeignClient(name="bpmnTaskPrivateRestService", path="${hvl.bpmn.service.task.path:/task}", url="${hvl.bpmn.service.task.url:${hvl.bpmn.service.url}}") public interface HvlBpmnTaskOperationalRestService
A restful service which provides specific operational methods for bpmn engine task.
  • Method Summary

    Modifier and Type
    Method
    Description
    tr.com.havelsan.javarch.service.data.HvlResponse<Void>
    claim(@NotBlank String taskId, @NotBlank String assignee)
    Claims the task.
    tr.com.havelsan.javarch.service.data.HvlResponse<Void>
    complete(@NotNull @Valid HvlBpmnCompleteTaskModel completeTaskModel)
    Completes the task.
    tr.com.havelsan.javarch.service.data.HvlResponse<Void>
    unclaim(@NotBlank String id)
    Unclaims the task.
  • Method Details

    • claim

      @GetMapping(path="/{id}/claim/{assignee}") tr.com.havelsan.javarch.service.data.HvlResponse<Void> claim(@NotBlank @PathVariable("id") @NotBlank String taskId, @NotBlank @PathVariable("assignee") @NotBlank String assignee)
      Claims the task.
      Parameters:
      taskId - the task id
      assignee - the assignee
      Returns:
      the hvl response
    • unclaim

      @GetMapping(path="/{id}/unclaim") tr.com.havelsan.javarch.service.data.HvlResponse<Void> unclaim(@NotBlank @PathVariable("id") @NotBlank String id)
      Unclaims the task.
      Parameters:
      id - the id
      Returns:
      the hvl response
    • complete

      @PostMapping(path="/complete", consumes="application/json", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<Void> complete(@NotNull @Valid @RequestBody @NotNull @Valid HvlBpmnCompleteTaskModel completeTaskModel)
      Completes the task.
      Parameters:
      completeTaskModel - the complete task model
      Returns:
      the hvl response