Skip to main content

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

Hi Andrey,

I think the problem here may be that you haven't defined an extension model for your elements (or maybe you have and it's not quite correct?) The editor will not allow you to modify the BPMN2 metamodel directly, and so you have to define your own model with its own namespace for these extensions.

I have taken the liberty of creating a working plugin (attached) that contains the bare minimum of what is needed to get this to work.

Just out of curiosity, what is the nature of the project you are working on that requires this extension?

HTH,
Bob

________________________
Robert ("Bob") Brodt
Senior Software Engineer
JBoss by Red Hat


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.

_______________________________________________
bpmn2-modeler-dev mailing list
bpmn2-modeler-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/bpmn2-modeler-dev

Attachment: test.extension.zip
Description: Zip archive


Back to the top