简体   繁体   English

如何从Python启动jBPM流程?

[英]How do you start a jBPM process from Python?

I'm trying to kick off a few jBPM workflows from a Python/Django app and would rather not add a new language to the stack. 我正在尝试从Python / Django应用程序启动一些jBPM工作流,而不想在堆栈中添加新的语言。 Is this possible? 这可能吗?

If your jBPM version is 5 or higher you can use gwt-console. 如果您的jBPM版本是5或更高版本,则可以使用gwt-console。
GWT console has REST interface. GWT控制台具有REST界面。

For example, to start a new process instance use 例如,要启动新流程实例,请使用

http://jbpm-server/gwt-console-server/rs/process/definition/{id}/new_instance HTTP:// jbpm的服务器/ GWT-控制台服务器/ RS /进程/定义/ {ID} / new_instance

for information how to install: 有关如何安装的信息:

http://docs.jboss.org/jbpm/v5.3/userguide/ch.console.html#d0e4578 http://docs.jboss.org/jbpm/v5.3/userguide/ch.console.html#d0e4578

or you can download it from here: http://sourceforge.net/projects/jbpm/files/jBPM%205/ 或者您可以从此处下载: http : //sourceforge.net/projects/jbpm/files/jBPM%205/

see this guide for more information: http://docs.jboss.org/jbpm/v5.3/userguide/ch.console.html 有关更多信息,请参见此指南: http : //docs.jboss.org/jbpm/v5.3/userguide/ch.console.html

Hope it will help. 希望它会有所帮助。

Here is the documentation for jBPM 6.1 Remote REST API . 这是jBPM 6.1远程REST API的文档。

The REST docs for 6.1 states: 6.1的REST文档指出:

[POST] /runtime/{deploymentId}/process/{processDefId}/start

According to the docs, it does the following: 根据文档,它执行以下操作:

  • Starts a process. 开始一个过程。
  • Returns a JaxbProcessInstanceResponse instance, that contains basic information about the process instance. 返回一个JaxbProcessInstanceResponse实例,该实例包含有关流程实例的基本信息。
  • The prodessDefIdcomponent of the URL must conform to the following regex: [_a-zA-Z0-9-:.]+ This operation takes map query parameters (see above), which will be used as parameters for the process instance. URL的prodessDefId组件必须符合以下正则表达式:[_a-zA-Z0-9-:.] +此操作采用映射查询参数 (请参见上文),它将用作流程实例的参数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM