使用业务中心和JBPM调用REST服务 [英] Calling a REST service using business central and JBPM

查看:63
本文介绍了使用业务中心和JBPM调用REST服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试进行POC显示,可以在业务中心使用JBPM调用外部REST服务。



我们已经创建了一个新的BPM,然后添加了REST服务任务。在这一点上,我们注意到创建了具有REST定义的WID文件。在WID文件中,它定义了诸如URL,方法和身份验证之类的东西。



我们已经筛选了所有7.2文档,但是在我们生命中,我们无法弄清楚如何实际设置这些参数并做一些有用的事情。是否有人使用Business Central 7.2调用外部流程来创建一个简单的 Hello World?



我们看到有一个预先定义的REST处理程序:


We're trying to do a POC showing we can call an external REST service using JBPM in business-central.

We've created a new BPM, then added a REST service task. We notice at this point that a WID file is created that has REST definition. Inside the WID file, it defines things like URL, Method, and authentication.

We've sifted through all the 7.2 docs, but for the life of us, we cannot figure out how to actually set those parameters and do something useful. Does anyone have a simple "Hello World" using business central 7.2 calling out to an external process?

We see there's a predefinied REST handler: https://github.com/kiegroup/jbpm/blob/master/jbpm-workitems/jbpm-workitems-rest/src/main/java/org/jbpm/process/workitem/rest/RESTWorkItemHandler.java

We're lacking how to assemble all of this; we can't find documentation or examples on something that seems so simple.

Thank you!

解决方案

If you're using Busines Central, you can edit the process model and check the data assignments for the specific REST node. In there you can set the values of the variables or use some process variable to map dynamic values. Hope it helps.

这篇关于使用业务中心和JBPM调用REST服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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