Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BPMN 2.0 Modeler » BPMN2 Modeler extensions(Interesting blog about BPMN2 Modeler extensions)
BPMN2 Modeler extensions [message #1803908] Wed, 13 March 2019 13:08 Go to next message
Paul Leacu is currently offline Paul LeacuFriend
Messages: 1
Registered: April 2017
Junior Member
Hey - I found this interesting:

"blog.imixs.org/2019/03/13/bpmn-2-0-the-extension-mechansim/"

It shows an effective third party use of BPMN2.

--Paul
Re: BPMN2 Modeler extensions [message #1803933 is a reply to message #1803908] Wed, 13 March 2019 20:20 Go to previous messageGo to next message
Ralph Soika is currently offline Ralph SoikaFriend
Messages: 150
Registered: July 2009
Senior Member
Here is the link: https://blog.imixs.org/2019/03/13/bpmn-2-0-the-extension-mechansim/
Re: BPMN2 Modeler extensions [message #1815942 is a reply to message #1803908] Tue, 15 October 2019 15:10 Go to previous message
satya gagrani is currently offline satya gagraniFriend
Messages: 1
Registered: October 2019
Junior Member
Hi, looking to get some quick help on exception on trying to run example given on documentation link(https://download.eclipse.org/bpmn2-modeler/doc/api/core.html) using enumration type below when opening property page for task ( remove enumration the no error and rest of properties show up fine).looking to extend task for some usecase with enumration with simple way described in documentation...
<!-- This <modelExtension> extends BPMN2 Activity elements and all subclasses
(Task, UserTask, etc.) Besides the boolean "isDevice", the extension adds
a new type called "Device" which contains a "type" attribute (an enum) and
a "DeviceIdentifier" type which itself contains two attributes, a String
and an Integer. Note that a specialized <propertyTab> is needed to display/edit
these extensions (see below).
-->
<modelExtension id="org.eclipse.bpmn2.modeler.examples.dynamic.activity"
name="Activity Extension"
type="Activity">
<property name="isDevice" type="EBoolean" value="true"
label="Is Device" />
<property name="device" type="Device" label="Device Definition">
<value>
<property name="type" type="DeviceType:EEnum" value="Phone Tablet Computer Banana"
label="Device Type" />
<property name="deviceID" type="DeviceIdentifier" label="Device Details">
<value>
<property name="carrier" type="EString" value=""
label="Carrier or Service Provider" />
<property name="identifier" type="EInt" value="0"
label="Device Identifier" />
</value>
</property>
</value>
</property>
</modelExtension>

<!-- This <propertyTab> will add a new tab to the Property Sheet called "Activity
Extensions". The tab will be visible for all BPMN2 Activity objects and their
subclasses (type="org.eclipse.bpmn2.Activity") In this case, the Default
property sheet page (class="default") is sufficient to display the attributes
and elements, although we could have supplied our own Java class to handle
these extensions.
-->
<propertyTab id="org.eclipse.bpmn2.modeler.examples.dynamic.activity.tab"
afterTab="org.eclipse.bpmn2.modeler.description.tab" class="default"
features="isDevice device carrier identifier" type="org.eclipse.bpmn2.Activity"
label="Activity Extensions">
</propertyTab>
it error out with exception ..
java.lang.NullPointerException
at org.eclipse.bpmn2.modeler.core.model.ModelDecorator.findEClassifier(ModelDecorator.java:941)
at org.eclipse.bpmn2.modeler.core.model.ModelDecorator.addAnyAttribute(ModelDecorator.java:1129)
at org.eclipse.bpmn2.modeler.core.adapters.FeatureDescriptor.internalSet(FeatureDescriptor.java:592)
at org.eclipse.bpmn2.modeler.core.adapters.FeatureDescriptor$1.doExecute(FeatureDescriptor.java:474)
at org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:135)
at org.eclipse.graphiti.ui.internal.editor.GFWorkspaceCommandStackImpl.execute(GFWorkspaceCommandStackImpl.java:128)
at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:219)
at org.eclipse.bpmn2.modeler.core.adapters.FeatureDescriptor.setValue(FeatureDescriptor.java:471)
at org.eclipse.bpmn2.modeler.core.adapters.ExtendedPropertiesProvider.setValue(ExtendedPropertiesProvider.java:193)
at org.eclipse.bpmn2.modeler.core.adapters.ExtendedPropertiesProvider.setValue(ExtendedPropertiesProvider.java:185)
at org.eclipse.bpmn2.modeler.core.merrimac.DefaultBusinessObjectDelegate.setValue(DefaultBusinessObjectDelegate.java:120)
at org.eclipse.bpmn2.modeler.core.merrimac.dialogs.ObjectEditor.setValue(ObjectEditor.java:309)
at org.eclipse.bpmn2.modeler.core.merrimac.dialogs.ComboObjectEditor.setValue(ComboObjectEditor.java:263)
at org.eclipse.bpmn2.modeler.core.merrimac.dialogs.ComboObjectEditor$6.selectionChanged(ComboObjectEditor.java:186)
at org.eclipse.jface.viewers.Viewer$1.run(Viewer.java:155)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
Previous Topic:Question parameters from .wid file tab "I/O Parameters"
Goto Forum:
  


Current Time: Mon Feb 24 13:10:22 GMT 2020

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

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

Back to the top