简体   繁体   English

从ESB启动BPM流程(WSO2-Enterprise Integrator 6.4.0)

[英]Start a BPM process from the ESB (WSO2-Enterprise Integrator 6.4.0)

I would like to understand which in the best practice in wso2 to start a bpm process from the esb. 我想了解在wso2的最佳实践中,哪个方法可以从esb启动bpm进程。

Basically I would need to define a service that starts a bpm process as soon as it receives an amqp message. 基本上,我需要定义一个服务,该服务在收到amqp消息后立即启动bpm进程。

For the implementation of the service, I am refering to this https://docs.wso2.com/display/ESB490/ESB+as+a+RabbitMQ+Message+Consumer that works as expected. 为了实现该服务,我指的是按预期方式工作的https://docs.wso2.com/display/ESB490/ESB+as+a+a+RabbitMQ+Message+Consumer

Now I am wondering which is the best practice to start the bpmn process from the ESB. 现在,我想知道从ESB开始bpmn进程的最佳实践是什么。 Personally I would use an HTTPEndPoint to send the ReST POST "Start a Process Instance" (refer to https://docs.wso2.com/display/EI640/BPMN+REST+API#BPMNRESTAPI-Processinstances ). 我个人将使用HTTPEndPoint发送ReST POST“启动流程实例”(请参阅https://docs.wso2.com/display/EI640/BPMN+REST+API#BPMNRESTAPI-Processinstances )。

Is it this the expected approach or is there a better integrated way? 这是预期的方法还是有更好的集成方法?

Your suggested approach is correct. 您建议的方法是正确的。 BPMN process can be started using a REST call to the BPMN Rest api. 可以使用对BPMN Rest api的REST调用来启动BPMN流程。 Then the respective process will start and initiate a process instance. 然后,相应的流程将启动并启动流程实例。 Make sure to send the correct data to the start resource. 确保将正确的数据发送到启动资源。

[1] https://docs.wso2.com/display/EI6xx/BPMN+REST+API#BPMNRESTAPI-StartaProcessInstance [1] https://docs.wso2.com/display/EI6xx/BPMN+REST+API#BPMNRESTAPI-StartaProcessInstance

Regards Nandika 问候南迪卡

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

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