How to generate a custom workflow programmatically

Hi All,
I am looking for a way to build a workflow from scratch programmatically based on the custom inputs. Is there any service available for custom workflow generation ?

I am using flowable version 6.7.2

Thanks,
Sriram

Hi,

Can you describe your use case please?

Regards
Martin

Hi @martin.grofcik ,

My usecase is, I have a UI which gets the workflow details from user. With that user inputs(Say necessary info for a workflow), I have to dynamically generate a workflow and deploy it in flowable engine.

Let me know if this info is sufficient

Regards,
Sriram

Hi Sriram,

repositoryService.createDeployment.addBpmnModel(....)....

You can create your own bpmn model programatically.

Regards
Martin