ServiceTask does not read custom attribute from XML

Given this BPMN:

<definitions id="definitions"
             xmlns:flowable="http://flowable.org/bpmn"
             xmlns:custom="http://custom.com/bpmn"
             targetNamespace="http://bwise.com/bpmn"
             xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL">
    <process id="test">
        <startEvent id="start" />
        <sequenceFlow id="flow1" sourceRef="start" targetRef="serv_task" />
        <serviceTask id="serv_task"
                     flowable:expression="foo"
                     flowable:resultVariable="subProcessVar"
                     custom:customTag="bar"/>
        <sequenceFlow id="flow2" sourceRef="serv_task" targetRef="end" />
        <endEvent id="end"/>
    </process>
</definitions>

When this process is read by Flowable. then the customTag is not interpreted. The cause is that in ServiceTaskXMLConverter.convertXMLToElement(), there is no invocation of addCustomAttributes(), like there is on UserTaskXMLConverter:
BpmnXMLUtil.addCustomAttributes(xtr, (BaseElement)userTask, new List[]{defaultElementAttributes, defaultActivityAttributes, defaultUserTaskAttributes});

So the request is to add the reading of custom attribute to ServiceTaskXMLConverter.

That’s correct, however it should be added to all types (not only userTask/serviceTask) to be correct.

For now, you can use an <extensionElement child element instead of a custom attribute. Those can easily be retrieved in the service task delegate using the following class:

Ok, I will try that. Are there plans to support custom tags for all element types?