工作流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 @   2012  阅读(2071)  评论(1编辑  收藏  举报
编辑推荐:
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
历史上的今天:
2010-11-16 VSTO的参考资源
2010-11-16 深入理解linq的参考例子
点击右上角即可分享
微信分享提示