Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BPMN 2.0 Modeler » I can't get the defined properties
I can't get the defined properties [message #1777736] Sun, 03 December 2017 20:23 Go to next message
Xabier Garat is currently offline Xabier GaratFriend
Messages: 6
Registered: November 2017
Junior Member
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 ?
Re: I can't get the defined properties [message #1777957 is a reply to message #1777736] Wed, 06 December 2017 18:51 Go to previous messageGo to next message
Xabier Garat is currently offline Xabier GaratFriend
Messages: 6
Registered: November 2017
Junior Member
I have some news.
I found the last version of org.eclipse.bpmn2.modeler.examples.customtask (I had an old one). Then I can see more how I have to do, but I still have problems.
About the palette : I don't use the toolPalette extension anymore (like in the example). But I can't see my data object extension in the palette.
I get the palette only if I disable the model in plugin.xml. I use the same model as in the tutorial (I just changed the name taskConfig with MyDataConfig). What could be the problem ?

About the properties : I can't still get the properties defined for my customtask.

Anybody has an idea ?
Re: I can't get the defined properties [message #1779270 is a reply to message #1777957] Thu, 04 January 2018 16:08 Go to previous message
Xabier Garat is currently offline Xabier GaratFriend
Messages: 6
Registered: November 2017
Junior Member
Hi,

I updated Eclipse (I have now Oxygen.2 Release (4.7.2)).
I started all again and again. But I still can't get my custom data in the tool palette.
In plugin.xml I defined this customTask :
<customTask
category="My tools"
description="Tests"
featureContainer="com.hedadura.MyDataFeatureContainer"
icon="DataIoBarrier.png"
id="com.hedadura.MyDataId"
name="My Data"
propertyTabs="com.hedadura.MyData.propertyTab"
runtimeId="com.hedadura.runtimeId"
type="DataObject">
<property name="type" value="MyDataTest" />
<property name="MyDataConfig" label="MyData Configuration" type="MyDataConfig"/>
</customTask>

And this modelEnablement
<modelEnablement
runtimeId="com.hedadura.runtimeId"
id="com.hedadura.modelEnablement"
profile="Full"
description="All BPMN2 elements and attributes"
ref="org.eclipse.bpmn2.modeler.runtime.none:Full">
<enable object="MyDataConfig"/>
<enable object="Parameter"/>
</modelEnablement>

Anybody has an idea why my customTask is not visible in the palette ?
Previous Topic:Generated custom workeditors are using invalid imports
Next Topic:Extende Palette Tool
Goto Forum:
  


Current Time: Sun Jan 21 09:04:01 GMT 2018

Powered by FUDForum. Page generated in 0.01652 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software