Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[bpmn2-modeler-dev] Custom task with extensionElements

Hi,

I'm trying to implement a custom task with extensionElements. Something like this:

<task ...>
  <extensionElements>
    <myns:taskConfig>
      <myns:attribute name="name" value="value" />
    </myns:taskConfig>
   </extensionElements>
</task>

I tried the following extension point:

      <customTask
            id="sampe"
            runtimeId="my.runtime"
            name="Sampe Task"
            featureContainer="MyCustomTaskFeatureContainer"
            type="Task">
            
            <property name="extensionElements">
                <value>
                    <property name="taskConfig">
                        <value>
                            <property name="attribute">
                                <value>
                                    <property name="name" />
                                    <property name="value" />
                                </value>
                            </property>
                        </value>
                    </property>
                </value>
            </property>
      </customTask>

But it failed with  java.lang.IllegalArgumentException: The feature 'taskConfig' is not a valid feature

Can someone, please, point me the right way?
Thanks.

Back to the top