Activiti工作流程和Orbeon XForm集成 [英] Activiti workflow and Orbeon XForm Integration

查看:156
本文介绍了Activiti工作流程和Orbeon XForm集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须将Orbeon Xforms与Activiti工作流引擎集成在一起。

I have to integrate Orbeon Xforms with Activiti workflow engine.

过去有人这样做吗?

如何从Orbeon表单启动Activiti工作流?

How to initiate the Activiti workflow from the Orbeon forms?

我在互联网上检查过,但似乎没有人已经集成了从Orbeon Xforms到Activiti的调用以启动流程实例。 Orbeon XForms提供了REST API,但仅支持XML消息,不支持JSON参数。

I have checked on internet but nobody seems to have integrated the call from Orbeon Xforms to Activiti to start the process instance. The Orbeon XForms has provided REST API but its only supported for XML message and there is no support for JSON parameters.

推荐答案

可以与Activiti进行orbeon集成。在此处查看此帖子: http://forums.activiti.org/content / orbeon-xform-integration-activiti-workflow

An orbeon integration with Activiti is possible. Look at this post here: http://forums.activiti.org/content/orbeon-xform-integration-activiti-workflow

正确的是Activiti仅支持JSON。但是,使用自定义的formHandler,您可以接收orbeon发布的XML,解析过程变量,启动过程无效并将更新后的变量写回到Activiti数据库。我只是对此做了一个原型的概念证明。在此Servlet中,您可以使用Activiti的Java API。

It is right that Activiti only supports JSON. But with a custom formHandler, you could receive the XML posted by orbeon, parse the process variables, start a process inatance and write the updated variables back to the Activiti database. I just did a prototypical proof of concept about this. In this servlet, you can use the Java APIs of Activiti.

您可以这样实现:
1.显示一个orbeon表单,其中包含初始过程值
的字段2.将这些值提交给定制的servlet
3. Servlet解析orbeon xml表单数据并提取键入的值
4.使用Activiti Java API,您的servlet将使用从orboen xml中提取的值来启动流程实例
5.如果实例正确启动,则将HTTPStatusCode 200发送回orbeon。
6.关闭orbeon表单。

You could realize it like this: 1. Display an orbeon form which has fields for the initial process values 2. Submit those values to a custom servlet 3. The servlet parses the orbeon xml form data and extracts the typed in values 4. Use the Activiti Java API wihtin your servlet to start a process instance with the values extracted from the orboen xml 5. If the instance was started correctly, send a HTTPStatusCode 200 back to orbeon. 6. Close the orbeon form.

最诚挚的问候
Ben

Best regards Ben

这篇关于Activiti工作流程和Orbeon XForm集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆