Add a custom Task

Hallo Everyone
I’m trying to add a custum Task but I don’t get it.can someone help me
Thanks

1646880971569_956F7426-39AC-4cd8-A5AF-7710553FEBCA

1 Like

What did you already try to achieve what you want? Did you already check out the custom elements example?

thank you for your reply

I did the following after referring to the example

added the corresponding entries in the custom json as shown below
1646906003943_2B484873-F329-4d71-87EF-CA66D9DC6D61

added the corresponding entries in replaceMenuProvider
1646907469164_2388B581-C39E-4739-AE31-4076D0E6282E

I got the following result
1646906874584_9AE2CE07-F080-4dc1-8404-76D10EA84DDE

When I click this option I get unexpected results
1646906237956_8A740612-793F-428c-B174-F2493D2AD2FD

What would you expect to be rendered? Did you create a custom renderer?

What XML do you expect? The way your extension is defined you can do

<bpmn:userTask>
  <bpmn:extensionElements>
    <custom:userReportTask>
      foo
    </custom:userReportTask>
  </bpmn:extensionElements>
</bpmn:userTask>

You’d create a bpmn:UserTask with a custom:UserReportTask extension element. The element would still look like a normal user task unless you create a custom renderer that renders the element differently when it has your extension element.