I can't get the defined properties [message #1777736] |
Sun, 03 December 2017 15:23  |
Eclipse User |
|
|
|
Hi,
I'm a newbie in Eclipse and I have to make extensions in BPMN.
I read all the tutorials and I looked at the bpmn2.tutorial.plugin (but there are several differencies with the tutorials) but I'm having some issues. And as you can see, english is not my native language, so I am not sure to understand all...
Here are my main problems :
1) I defined properties for my customTask (wich is not a task but a data object), but I can't get them with ModelDecorator.getAnyAttribute(arg0, "type").
Here is a part of my plugin.xml:
<customTask
category="MyDatacategory"
description="My Data"
featureContainer="com.hedadura.MyDataFeatureContainer"
icon="MyData.png"
id="MyDataId"
name="My Data"
runtimeId="com.hedadura.runtime"
type="DataObject">
<property name="extensionValues">
<value>
<property name="MyDataConfig">
<value>
<property name="parameters">
<value>
<property name="type" value="MyDataConfig">
</property>
<property name="value" value="My custom data">
</property>
</value>
</property>
</value>
</property>
</value>
</property>
</customTask>
<modelEnablement
runtimeId="com.hedadura.runtime"
id="com.hedadura.modelEnablementId"
profile="Full">
<enable object="MyDataConfig">
</enable>
<enable object="Parameter">
</enable>
</modelEnablement>
I tried a lot of things, but I never get these properties.
2) When I open a BPMN diagram, the default palette is not displayed. I only can see my palette extension (with my data object). Here is the corresponding part of plugin.xml:
<toolPalette
id="com.hedadura.toolpalette.my.full"
runtimeId="com.hedadura.runtime"
profile="Full">
<category id="org.bpmn2.modeler.toolpalette.default.categories"/>
<category id="com.hedadura.toolpalette.my.snippets" name="My Data">
<tool
name="My Data Object"
description="My Data Object">
<object type="DataObject[$name='MyDataConfig']" id="MyDataToolId"/>
</tool>
</category>
</toolPalette>
I tried with <enable object="all"/> in the modelEnablement section, but nothing changed.
Can anybody say me what I am doing wrong ?
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03796 seconds