美文网首页
jBPM 7.1.0 Rest API Change

jBPM 7.1.0 Rest API Change

作者: W_H | 来源:发表于2017-08-06 15:28 被阅读0次

    Saving time is saving lives. 

    If you were using jBPM6.x, the rest API endpoint is "<server>/jbpm-console/rest/..."

    New version 7.1.0, this won't work. The lengthy documentation does not mention this change obviously. Though, it is there. And the real deal is somewhere else.

    And I shall quote:

    25.2.1.2. Process Execution Server

    The process execution server (also known as kie-server) has been extended to support the core engine features above (related to case management, admin APIs, etc.) and to offer a remote API for these operations. On top of that, two other important architectural changes were done.

    Separate workbench from execution server

    While in v6 the workbench came with an embedded execution server to execute all the process and task requests that users were performing in the web-based UI, in v7 this embedded execution server has been removed and the workbench delegates all its requests to the kie-server as well. The main advantage is that the workbench can now be used to monitor any (set of) kie-server(s). By linking the kie-server to the workbench, the process and task monitoring UIs in the workbench can now connect to this kie-server and show all relevant information. When multiple independent kie-servers are used, you can either connect to a specific one or use the smart router to aggregate information across multiple servers (see below). As a result, a few missing features that were not yet available in v6 on kie-server but only on the remote API of the workbench have also been migrated to the kie-server.

    The real documentation for 7.1.0 can be found in 6.* version documentation in here

    As I have asked about n SO, I think it's worth pointing out what the new endpoint is and where the documents about them are.

    After you build & deploy your project  under project authoring, under deploy/execution servers, you can see the kie-server API endpoint for the container already. h
    ttp://localhost:8080/kie-server/services/rest/server/containers/xxxxxxxxxxxxx

    You can now check the process definitions if you have created processes by visiting
    http://localhost:8080/kie-server/services/rest/server/containers/xxxxxxxxxxxxx/processes 

    Started the process, you can see it in:
    http://localhost:8080/kie-server/services/rest/server/containers/xxxxxxxxxxx/processes/instances
    and,
    http://localhost:8080/kie-server/services/rest/server/containers/xxxxxxxxxxxxxxx/processes/instances/1
    (1 is the instance ID)

    相关文章

      网友评论

          本文标题:jBPM 7.1.0 Rest API Change

          本文链接:https://www.haomeiwen.com/subject/bcaglxtx.html