Bpmn-js deploying custom task and custom properties


#1

Hi,
I am using bpmn-js , bpmn-js properties panel and camunda bpmn moddle as well…I have added a custom task in the task element.for e.g after dragging the task element in the space when we click on the wrench icon,several tasks are shown like Send Task,Receive Task,Script Task etc.the custom task created is shown in that list.
I have added a custom tab to it with two custom properties as well…I have made all the changes in the JavaScript but I am unable to deploy it to the Camunda WildFly server,as the engine won’t recognize my custom task.It is giving an error like:

Caused by: org.xml.sax.SAXException: Error: URI=null Line=15: cvc-complex-type.2.4.a: Invalid content was found starting with element ‘bpmn2:edgeTask’. One of ‘{“http://www.omg.org/spec/BPMN/20100524/MODEL”:flowElement, “http://www.omg.org/spec/BPMN/20100524/MODEL”:artifact, “http://www.omg.org/spec/BPMN/20100524/MODEL”:resourceRole, “http://www.omg.org/spec/BPMN/20100524/MODEL”:correlationSubscription, “http://www.omg.org/spec/BPMN/20100524/MODEL”:supports}’ is expected.

02:50:56,503 ERROR [io.undertow.request] (default task-51) UT005023: Exception handling request to /CamundaWebModeler/rest/CamundaBPMNRestService/updateBPMN: org.camunda.bpm.model.xml.ModelParseException: SAXException while parsing input stream
at org.camunda.bpm.model.xml.impl.util.DomUtil.parseInputStream(DomUtil.java:241)
at org.camunda.bpm.model.xml.impl.parser.AbstractModelParser.parseModelFromStream(AbstractModelParser.java:65)
at org.camunda.bpm.model.bpmn.impl.BpmnParser.parseModelFromStream(BpmnParser.java:61)
at org.camunda.bpm.model.bpmn.Bpmn.doReadModelFromInputStream(Bpmn.java:245)
at org.camunda.bpm.model.bpmn.Bpmn.readModelFromStream(Bpmn.java:127)
at camundaWebModeler.ws.rest.CamundaBPMNRestService.updateBPMN(CamundaBPMNRestService.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)

Please guide me where can I make the required changes?


Creating new element types
#2

Hi @bikks,

I cannot help with your issue but could you be kind to give the steps to add a custom task in the wrench tool? Because I want to build something similar.

Thanks!