|
Re: PropertyExtension [message #1753675 is a reply to message #1753672] |
Wed, 08 February 2017 17:42   |
|
I'm not quite clear on what you're trying to accomplish. Are you saying you want to define a new subclass of ResourceRole (similar to Performer)? And for what purpose? This would require a change to the BPMN 2.0 model itself (not recommended)
If you only want to add new properties to your ResourceRole then take a look at the <modelExtension> elements in, for example, the jBPM plugin.xml. For example, this excerpt from jBPM plugin.xml:
<modelExtension
id="org.eclipse.bpmn2.modeler.runtime.jboss.jbpm5.modelExtension.process"
runtimeId="org.jboss.runtime.jbpm5"
name="%modelExtension.name"
type="Process">
<property name="version" value="1"/>
<property name="packageName" value="defaultPackage"/>
<property name="adHoc" value="false" type="EBoolean"/>
<property name="isExecutable" value="true" type="EBoolean"/>
</modelExtension>
adds the new properties "version", "packageName", "adHoc" and "isExecutable" to a Process element. You then need to provide a <propertyTab> in your plugin.xml to properly render these new properties.
The ExtendedPropertiesAdapter extensions are only intended to allow UI customization for an element 's properties, or to handle referential integrity when making changes to a certain property. For example, take a look at the DataAssociationPropertiesAdapter - this is probably one of the more complex handlers for ensuring that other elements' properties get updated correctly when changing one of the DataAssociation's properties.
|
|
|
Re: PropertyExtension [message #1753789 is a reply to message #1753675] |
Fri, 10 February 2017 09:22   |
im hello world Messages: 44 Registered: February 2017 |
Member |
|
|
Thank you.
So i managed to add a property for the resourceRole, but it is displayed in the bottom (it's shown just under "Resource assignment expression " rubric)
i want to display it in the "Resource role details" rubric (after the "name " of the resource role).
How to do this please?
[Updated on: Fri, 10 February 2017 09:23] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01926 seconds