Is it possible to create custom task that can be parsed and used in the camunda engine?
I tried extending the XML schema definition by adding my new type like this:
<?xml version="1.0"?>
<xs:schema xmlns="http://someURI.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" targetNamespace="http://someURI.com">
<xs:import namespace="http://www.omg.org/spec/BPMN/20100524/MODEL" schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"/>
<xs:element name="myTask" type="tMyTask" substitutionGroup="flowElement"/>
<xs:complexType name="tMyTask">
<xs:complexContent>
<xs:extension base="bpmn2:tTask">
<xs:attribute name="atOne" type="xsd:string" use="required"/>
<xs:attribute name="atTwo" type="xsd:string" use="required"/>
<xs:attribute name="atThree" type="xsd:string" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>
And in my bpmn file i added a new element in the process:
<foo:myTask atOne="1" atTwo="2" atThree="3" />
Additionally I added my new xsd file to the schemaLocation of the bpmn file, but it is not working. The parser complains that myTask is not correct.
Do you have an idea how to achieve my goal?
Cheers