Skip to main content


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: 30
Registered: November 2017
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: 30
Registered: November 2017
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 messageGo to next message
Xabier Garat is currently offline Xabier GaratFriend
Messages: 30
Registered: November 2017
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 ?
Re: I can't get the defined properties [message #1780825 is a reply to message #1779270] Sun, 28 January 2018 22:50 Go to previous messageGo to next message
Ralph Soika is currently offline Ralph SoikaFriend
Messages: 192
Registered: July 2009
Senior Member
Have you seen this wiki page about Tool Palettes:
https://wiki.eclipse.org/BPMN2-Modeler/DeveloperTutorials/ToolPalettes

Maybe this will help you. But I know that the tool palettes are a kind of mystery.

===
Ralph
Re: I can't get the defined properties [message #1781221 is a reply to message #1780825] Sat, 03 February 2018 09:08 Go to previous messageGo to next message
Xabier Garat is currently offline Xabier GaratFriend
Messages: 30
Registered: November 2017
Member
Thank you for answering.
Yes, I have seen this wiki page.
I started again my plugin. I made a very simple plugin, without defining a new model and without new properties, and my extensions were visible on the palette.
I wanted to go forward and before making any change, I made a copy of my project. In the copy, I changed only some names and Ids on my plugin (eg: runtimeId="com.hedadura.runtimeId" became runtimeId="com.hedadura2.runtimeId") and when I start the plugin, the palette is empty !!! (the "old" version still works). I looked at the code very carefully, but I can't see where I could make a mistake. And there is not any kind of error message.
How is it possible to debug these palette problems ?
Re: I can't get the defined properties [message #1781265 is a reply to message #1781221] Mon, 05 February 2018 09:43 Go to previous messageGo to next message
Ralph Soika is currently offline Ralph SoikaFriend
Messages: 192
Registered: July 2009
Senior Member
Try to clear the workspace of our debug environment. I think this will help. And do not launch both plugins in parallel when developing. Note: in your test environment your workspace is assigned to one specific BPMN plugin. This can be configured via project preferences.
Re: I can't get the defined properties [message #1781552 is a reply to message #1781265] Thu, 08 February 2018 12:55 Go to previous message
Xabier Garat is currently offline Xabier GaratFriend
Messages: 30
Registered: November 2017
Member
Thank's.
I closed all other projects and now the palette is displayed.
I can go forward now.
Previous Topic:Extende Palette Tool
Next Topic:Example: Implementing an Extension
Goto Forum:
  


Current Time: Tue Apr 23 07:57:11 GMT 2024

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

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

Back to the top