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 id, @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>
    confirmTask(@NotBlank String id)
    Confirms the task.
    tr.com.havelsan.javarch.service.data.HvlResponse<Void>
    rejectTask(@NotBlank String id)
    Rejects 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 id, @NotBlank @PathVariable("assignee") @NotBlank String assignee)
      Claims the task.
      Parameters:
      id - 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
    • confirmTask

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

      @GetMapping(path="/reject/{id}") tr.com.havelsan.javarch.service.data.HvlResponse<Void> rejectTask(@NotBlank @PathVariable("id") @NotBlank String id)
      Rejects 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