Is there any API to create user task in web-modeler - Camunda 8?
Hi @Yadhu_Nandhan
Could you please elaborate on what you mean by “API to create user task in web-modeler”. Web Modeler has some REST APIs, but so far, it’s a UI application to manage processes.
Please explain what you’re trying to achieve.
Regards,
Alex
Hi @Alex_Voloshyn,
Thank you for your response. Let me clarify my question in more detail.
I understand that the Web Modeler is primarily a UI-based tool for designing workflows using drag-and-drop. What I would like to know is whether Camunda 8 provides any API or programmatic approach to create workflows, specifically with predefined user tasks, rather than creating them manually through the Web Modeler interface.
The reason for this request is that in our use case, we frequently need to create workflows that share a common structure and include certain user tasks by default. Having an API to generate or bootstrap BPMN models with these predefined tasks would significantly reduce repetitive manual work, improve consistency, and speed up the workflow creation process.
In short, I am trying to understand if there is any way to automate workflow creation through APIs (for example, by uploading or generating BPMN models), or if the Web Modeler is currently limited to manual, UI-driven modeling only.
Looking forward to your guidance on whether such functionality exists or if there are recommended alternatives.
Best regards,
Yadhu
@Yadhu_Nandhan - there isn’t a great way to programmatically generate a BPMN model. You can use this library (GitHub - camunda/camunda-bpmn-model: BPMN model API written in Java.) but one reason we don’t encourage it is because the visual layout of the model isn’t maintained. The visual documentation BPMN brings is one of its best features: what you see is what gets executed.
BPMN is just XML, so another approach could be creating a template you updated some elements of to try to remove some of that manual work.
You also mentioned “uploading BPMN models” - you can deploy models using the API, without needing Modeler. (Modeler just calls those APIs behind the scenes anyway!)
How many process models are you generating that you need to script it in this way?
Hi @nathan.loding,
Thanks for the clarification. In our case, we often need to create 20–30 process models per project, many of which share a similar structure with predefined user tasks. Doing this manually in the Web Modeler becomes repetitive and time-consuming.
Even if the visual layout is not perfect, being able to programmatically generate a base BPMN (through templates or code) and then refine it in the Web Modeler would save us significant effort. It’s also good to know that models can be deployed directly via the API, which supports our automation needs.
I’ll explore the template/XML approach further, but would appreciate any best practices you might suggest for handling template-driven BPMN generation at scale.
Best regards,
Yadhu