工作流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

 

posted @ 2011-11-16 08:39  2012  阅读(2069)  评论(1编辑  收藏  举报