简体   繁体   English

Camunda /外部任务/连接 Python 与 BPM

[英]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 的角度来看,您只需将任务类型提供给服务任务,您将在脚本中使用它来识别任务。

  1. 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

  2. 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您将拥有处理服务任务和边界任务的代码

You can't use a python script IN a service task, but you can use a python script as an external task worker, this repo will probably be a good starting point for you.你不能在服务任务中使用 python 脚本,但你可以使用 python 脚本作为外部任务工作者, 这个 repo可能是你的一个很好的起点。

dg dg

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

相关问题 Python:无需任何外部库即可连接到数据库 - Python: Connecting to db without any external libraries Python的可嵌入工作流/ BPM库? - Embeddable Workflow/BPM Library For Python? 在 Camunda 8 Python 中处理进程实例 - Handling instances of Processes in Camunda 8 Python Python Luigi - 满意时继续执行外部任务 - Python Luigi - Continue with External task when satisfied 将 Python 连接到 arduino - 检查字符串是否等于执行任务 - Connecting Python to arduino - check if string is equal to do task 使用 Python 从 Azure Databricks 连接到外部 MySQL 数据库 - Connecting to external MySQL database from Azure Databricks with Python Python:Flask 没有外部库的简单任务队列不起作用 - Python: Flask simple task queue without external libraries not working Python:以设定的BPM间隔(&lt;1s)播放音频的时间安排不正确 - Python: Inaccurate timing playing audio at a set BPM interval (<1s) 我正在使用https://github.com/scaperot/the-BPM-detector-python/blob/master/bpm_detection/bpm_detection.py,如何输入音频文件? - I am using https://github.com/scaperot/the-BPM-detector-python/blob/master/bpm_detection/bpm_detection.py, how to input the audio file? Python套接字模块。 连接到HTTP代理,然后在外部资源上执行GET请求 - Python socket module. Connecting to an HTTP proxy then performing a GET request on an external resource
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM