Interface HvlBpmnProcessRestService

All Known Implementing Classes:
HvlBpmnProcessRestController

@Validated @HvlPublicFeignRestService @FeignClient(name="bpmnProcessPublicRestService", path="${hvl.bpmn.service.process.path:/process}", url="${hvl.bpmn.service.process.url:${hvl.bpmn.service.url}}") public interface HvlBpmnProcessRestService
A restful service which provides specific methods for bpmn admin process.
  • Method Details

    • queryList

      @PostMapping(path="/list", consumes="application/json", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlBpmnProcessModel>> queryList(@NotNull @Valid @RequestBody @NotNull @Valid HvlBpmnProcessQueryModel bpmnQueryModel)
      Returns a list of process matching the query criteria.
      Parameters:
      bpmnQueryModel - the bpmn query model
      Returns:
      the hvl response
    • queryCategoryList

      @GetMapping(path="/list-category/by-name/{namespace}", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<List<String>> queryCategoryList(@NotBlank @Size(min=3,max=64) @PathVariable("namespace") @NotBlank @Size(min=3,max=64) String namespace)
      Returns a list of category by provided namespace.
      Parameters:
      namespace - the namespace
      Returns:
      the hvl response
    • queryPage

      @PostMapping(path="/page", consumes="application/json", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlBpmnProcessModel>> queryPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlBpmnProcessQueryModel bpmnQueryModel)
      Returns a page of process matching the query criteria.
      Parameters:
      bpmnQueryModel - the bpmn query model
      Returns:
      the hvl response
    • getCurrentVersion

      @GetMapping(path="/version/current/{processCode}") tr.com.havelsan.javarch.service.data.HvlResponse<Long> getCurrentVersion(@NotBlank @PathVariable("processCode") @NotBlank String processCode)
      Gets current version of process.
      Parameters:
      processCode - the process code
      Returns:
      the current version
    • getProcessById

      @GetMapping(path="/{id}", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<HvlBpmnProcessModel> getProcessById(@NotNull @PathVariable("id") @NotNull Long id)
      Gets process by id.
      Parameters:
      id - the id
      Returns:
      the process by id
    • getProcessByVersion

      @GetMapping(path="/version/process/code/{processCode}/version/{processVersion}", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<HvlBpmnProcessModel> getProcessByVersion(@NotBlank @PathVariable("processCode") @NotBlank String processCode, @NotNull @PathVariable("processVersion") @NotNull Long processVersion)
      Gets process by version.
      Parameters:
      processCode - the process code
      processVersion - the process version
      Returns:
      the process by version
    • getProcessVersionList

      @GetMapping(path="/version/list/process/code/{processCode}") tr.com.havelsan.javarch.service.data.HvlResponse<List<Long>> getProcessVersionList(@NotBlank @PathVariable("processCode") @NotBlank String processCode)
      Gets process version list.
      Parameters:
      processCode - the process code
      Returns:
      the process version list
    • isLocked

      @GetMapping(path="/lock/getLock/process/{id}") tr.com.havelsan.javarch.service.data.HvlResponse<Boolean> isLocked(@NotNull @PathVariable("id") @NotNull Long id)
      Check the process is locked.
      Parameters:
      id - the id
      Returns:
      the hvl response
    • getProcessModelNode

      @GetMapping(value="/model/{modelId}", produces="application/json") com.fasterxml.jackson.databind.node.ObjectNode getProcessModelNode(@NotNull @PathVariable("modelId") @NotNull Long modelId)
      Gets process model node.
      Parameters:
      modelId - the model id
      Returns:
      the process model node
    • getNamespaceList

      @GetMapping(value="/namespaces", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<List<String>> getNamespaceList()
      Gets namespace list.
      Returns:
      the namespace list