Activiti工作流程和Orbeon XForm集成

编程入门 行业动态 更新时间:2024-10-11 11:21:18
本文介绍了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集成。在此处查看此帖子: forums.activiti/content / orbeon-xform-integration-activiti-workflow

An orbeon integration with Activiti is possible. Look at this post here: forums.activiti/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集成

本文发布于:2023-11-28 12:08:23,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642334.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:工作流程   Activiti   XForm   Orbeon

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!