Create Shape type task from an event click button element

how to create a task by clicking on a button, a type of task or any element,
help me please

Use below logic to create a task from button click

bpmnModeler.get(‘create’).start(event, bpmnModeler.get(‘elementFactory’).createShape({type: “bpmn:Task”}));

1 Like

Thank you very much for your help [Ramana]