Deployment of Process Diagram on camunda server "ENGINE-09005 Could not parse BPMN process

I have implemented Launch workFlow functionality where i have Deploy button which will Call rest api to deploy Process Diagram on Camunda server

I can able to generate xml for CustomeElement but whenEver i am trying to deploying on camunda server using ‘camunda/api/engine/engine/default/deployment/create’ API,

it failed with message

{“type”:“ProcessEngineException”,“message”:“ENGINE-09005 Could not parse BPMN process. Errors: \n* cvc-complex-type.2.4.a: Invalid content was found starting with element ‘al:trigger’. One of ‘{“”:flowElement, “”:artifact, “”:resourceRole, “”:correlationSubscription, “”:supports}’ is expected. | EmbeddedFormExample.bpmn | line 2 | column 42”}

i also happy if i get any idea how we can restrict some Custome Element to not update xml ,

because if i remove custom Elemnt tag from xml its able to deploy sucessfully

Hi @vikashsingh009, If I understood you correctly, you would want to remove the custom element tags before deploying in order to get it to working on the Camunda server? Have you managed to get it working properly when you removed them manually?

Yes if I removed manully it will able to deploy successfully

You said you have implemented a launch functionality that deploys your workflow process automatically. Isn’t then possible for you to remove the custom elements from xml before deploying?

Thats possible ,but my question is since i have lots of Custom Element which is attaching to Orignal element like userTask …in that case if i remove those my diagram will be fully modified

First of all the namespace al is not defined in your XML which leads to an error. Secondly you can’t just put an element you came up with somewhere in the process. This will result in invalid BPMN. Extension elements are the right place to put those things. A task could then look like this:

<bpmn:task id="Task_1">
      <myAwesomeNamespace:trigger id="foo" />