• 工作流jBPM使用总结


    1 软件版本变化较大
    版本3,4 数据库完全结构不一样
    2 pom.xml 配置需要注意
    和其他的软件库的冲突问题

    如: <dependency>

      <groupId>org.jbpm.jbpm4</groupId> 
      <artifactId>jbpm-pvm</artifactId> 
      <version>4.5-SNAPSHOT</version> 
      <exclusions>
       <exclusion>
        <groupId>juel</groupId>
        <artifactId>juel-engine</artifactId>
       </exclusion>
       <exclusion>
        <groupId>juel</groupId>
        <artifactId>juel-api</artifactId>
       </exclusion>
       <exclusion>
        <groupId>juel</groupId>
        <artifactId>juel-impl</artifactId>
       </exclusion>
      </exclusions>
     </dependency>
    3 功能上的差异
    暂停、继续这些在3中存在的功能的发布的4.4中没有,如果需要需要自己下载和编译4.5的版本
    4 REST服务

     JBPM代码 https://anonsvn.jboss.org/repos/jbpm/jbpm4/trunk/

    BMP Console这个例子很实用,很好的参考内容。 

    http://localhost:8080/gwt-console-server/rs/server/resources

    Method

    Path

    Description

    Consumes

    Produces

    Server Info
    General REST server information

    GET

    /gwt-console-server/rs/server/status

    */*

    application/json

    GET

    /gwt-console-server/rs/server/resources

    */*

    text/html

     

    Process Management
    Process related data.

    GET

    /gwt-console-server/rs/process/definition/{id}/image

    */*

    image/*

    GET

    /gwt-console-server/rs/process/instance/{id}/activeNodeInfo

    */*

    application/json

    GET

    /gwt-console-server/rs/process/definition/history/{id}/nodeInfo

    */*

    application/json

    GET

    /gwt-console-server/rs/process/definitions

    */*

    application/json

    POST

    /gwt-console-server/rs/process/definition/{id}/remove

    */*

    application/json

    GET

    /gwt-console-server/rs/process/definition/{id}/instances

    */*

    application/json

    GET

    /gwt-console-server/rs/process/instance/{id}/dataset

    */*

    text/xml

    POST

    /gwt-console-server/rs/process/instance/{id}/state/{next}

    */*

    application/json

    POST

    /gwt-console-server/rs/process/instance/{id}/end/{result}

    */*

    application/json

    POST

    /gwt-console-server/rs/process/instance/{id}/delete

    */*

    application/json

    POST

    /gwt-console-server/rs/process/tokens/{id}/transition

    */*

    application/json

    POST

    /gwt-console-server/rs/process/tokens/{id}/transition/default

    */*

    application/json

    POST

    /gwt-console-server/rs/process/definition/{id}/new_instance

    */*

    application/json

     

    Task Lists
    Access task lists

    GET

    /gwt-console-server/rs/tasks/{idRef}

    */*

    application/json

    GET

    /gwt-console-server/rs/tasks/{idRef}/participation

    */*

    application/json

     

    Task Management
    Manage task instances

    POST

    /gwt-console-server/rs/task/{taskId}/assign/{ifRef}

    */*

    application/json

    POST

    /gwt-console-server/rs/task/{taskId}/release

    */*

    application/json

    POST

    /gwt-console-server/rs/task/{taskId}/close

    */*

    application/json

    POST

    /gwt-console-server/rs/task/{taskId}/close/{outcome}

    */*

    application/json

     

    User management
    Manage user and groups

    POST

    /gwt-console-server/rs/identity/sid/invalidate

    */*

    text/plain

    GET

    /gwt-console-server/rs/identity/sid

    */*

    text/plain

    GET

    /gwt-console-server/rs/identity/secure/sid

    */*

    text/plain

    GET

    /gwt-console-server/rs/identity/user/roles

    */*

    application/json

    GET

    /gwt-console-server/rs/identity/user/{actorId}/groups/

    */*

    application/json

    GET

    /gwt-console-server/rs/identity/group/{groupName}/members

    */*

    application/json

    GET

    /gwt-console-server/rs/identity/user/{actorId}/actors

    */*

    application/json

     

    Process Engine
    Process runtime state

    GET

    /gwt-console-server/rs/engine/deployments

    */*

    application/json

    POST

    /gwt-console-server/rs/engine/deployment/{id}/delete

    */*

    application/json

    POST

    /gwt-console-server/rs/engine/deployment/{id}/suspend

    */*

    application/json

    GET

    /gwt-console-server/rs/engine/jobs

    */*

    application/json

    POST

    /gwt-console-server/rs/engine/job/{id}/execute

    */*

    application/json

    POST

    /gwt-console-server/rs/engine/deployment/{id}/resume

    */*

    application/json

     

    Form Processing
    Web based form processing

    GET

    /gwt-console-server/rs/form/task/{id}/render

    */*

    text/html

    GET

    /gwt-console-server/rs/form/process/{id}/render

    */*

    text/html

    POST

    /gwt-console-server/rs/form/task/{id}/complete

    multipart/form-data

    text/html

    POST

    /gwt-console-server/rs/form/process/{id}/complete

    multipart/form-data

    text/html

     参考的代码地址

    https://anonsvn.jboss.org/repos/soag/bpm-console/

    http://github.com/heiko-braun/bpm-console

    https://github.com/bpmc/bpm-console

  • 相关阅读:
    51nod 1113 矩阵快速幂 如题目
    poj Raising Modulo Numbers 快速幂模板(取膜)
    bzoj 1503: [NOI2004]郁闷的出纳员 平衡树
    codevs 1063 合并果子 优先队列相关
    bzoj 3224: Tyvj 1728 普通平衡树 Treap模版
    快排模板
    hdu 4353 统计点在三角形内的个数
    hdu 3264 圆的交+二分
    hdu 3685 多边形重心+凸包
    hdu 3992 AC自动机上的高斯消元求期望
  • 原文地址:https://www.cnblogs.com/2018/p/2250369.html
Copyright © 2020-2023  润新知