[英]Camunda /External Task/ Connecting Python with BPM
I would like to create a simple Python Script and use it to perform a service task in my BPMN process.我想创建一个简单的 Python 脚本并使用它在我的 BPMN 流程中执行服务任务。 Does anyone know how I can use a Python script in a service task?
有谁知道我如何在服务任务中使用 Python 脚本?
I'm attaching the references that you could use with the specific configuration.我附上了您可以在特定配置中使用的参考资料。 Note: from BPMN perspective you just need to give the task type to the service task which you will use in script to identify the task.
注意:从 BPMN 的角度来看,您只需将任务类型提供给服务任务,您将在脚本中使用它来识别任务。
For Camunda -7 and local setup to execute the service task you can follow https://medium.com/@klauke.peter/implementing-an-external-task-worker-for-camunda-in-python-566b5ebff488对于 Camunda -7 和本地设置来执行服务任务,您可以按照https://medium.com/@klauke.peter/implementing-an-external-task-worker-for-camunda-in-python-566b5ebff488
For Camunda -8 and zeebe setup you will have to make a slight change while creating the channel you will have to use "from pyzeebe import create_camunda_cloud_channel" for the functional implementation you can find it in the ref url https://pyzeebe.readthedocs.io/en/latest/channels.html#camunda-cloud You can also refer once you created the channel and started the process https://forum.camunda.io/t/boundary-event-error-handler/37272 In this url you will have code for handling service task and then also the boundary task对于 Camunda -8 和 zeebe 设置,您必须在创建通道时稍作更改,您必须使用“from pyzeebe import create_camunda_cloud_channel”进行功能实现,您可以在参考 url https://pyzeebe.readthedocs 中找到它。 io/en/latest/channels.html#camunda-cloud您也可以在创建频道并启动流程 后参考 https://forum.camunda.io/t/boundary-event-error-handler/37272在此 url您将拥有处理服务任务和边界任务的代码
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.