Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BPMN 2.0 Modeler » Error when loading process with custom extensionElements
Error when loading process with custom extensionElements [message #1517524] Fri, 19 December 2014 15:08
Cédric Casenove is currently offline Cédric CasenoveFriend
Messages: 22
Registered: December 2013
Junior Member

I am using version of the BPMN2 Modeler plugins (luna repository). I tried to extends the BPMN2 model to attach custom properties to a UserTask object.

I attached my custom Notification object to the extensionElements of a user task with code similar to this:

Notification notification = PMModelFactory.eINSTANCE.createNotification();
ModelDecorator.addExtensionAttributeValue(userTask, PMModelPackage.eINSTANCE.getDocumentRoot_Notification(), notification);

When saving the document, the generated xml seems to be what I expected (pm is the namespace of my extension model):

<bpmn2:userTask id="Task_1" name="Task 1">
<pm:notification notifyActiveStatus="true" notifyAvailableStatus="true"/>

But when I reload the document, I got this error

java.lang.IllegalArgumentException: The feature 'notification' is not a valid feature
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenGet(
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(
at org.eclipse.bpmn2.modeler.core.adapters.FeatureDescriptor.internalSet(
at org.eclipse.bpmn2.modeler.core.adapters.FeatureDescriptor.setValue(
at org.eclipse.bpmn2.modeler.core.adapters.FeatureDescriptor.setValue(
at org.eclipse.bpmn2.modeler.core.model.Bpmn2ModelerResourceImpl$Bpmn2ModelerXmlHandler.createObjectFromFeatureType(

When I was working with the kepler branch, I did not have this problem.

Can someone help me ?

Previous Topic:link external bpmn file to a subprocess
Next Topic:Local/Global variables
Goto Forum:

Current Time: Wed Feb 08 15:16:59 GMT 2023

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

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

Back to the top