eclipse-ocl / org.eclipse.ocl

Eclipse Public License 2.0
0 stars 0 forks source link

Executing query "ClassName.allInstances()" on InstanceSpecifications in Pivot #1649

Open eclipse-ocl-bot opened 1 month ago

eclipse-ocl-bot commented 1 month ago

| --- | --- | | Bugzilla Link | 484060 | | Status | UNCONFIRMED | | Importance | P3 normal | | Reported | Dec 09, 2015 20:26 EDT | | Modified | Jan 13, 2016 05:53 EDT | | Version | 6.0.0 | | Reporter | Finn Taylor |

Description

Created attachment 258561\ This is the UML Model that I am using to create dynamic instances.

I am trying to create dynamic instances of a class in UML Model using InstanceSpecification (org.eclipse.uml2.uml) and then execute query "ClassName.allInstances()" to select those instances. This works fine in Classic OCL but it doesn't work in Pivot. I have tried to convert this InstanceSpecification to org.eclipse.ocl.pivot.InstanceSpecification and I've also tried to create InstanceSpecification using PivotFactory but it doesn't work. However, this query works if I create instances of Ecore class using EFactory.create(EClass).\ P.S. Attached is the UML Model I am working with.

Blank Package.uml

eclipse-ocl-bot commented 1 month ago

By Ed Willink on Jan 13, 2016 05:53

Sorry for the slow response. Busy ....

Your UML model fails to validate:

The feature 'references' of 'UML' contains an unresolved proxy 'org.eclipse.emf.ecore.impl.EPackageImpl@e5e4888{pathmap://UML_PROFILES/Standard.profile.uml#_yzU58YinEdqtvbnfB2L_5w}'

You provide no Java to demonstrate what you are trying and failing to do.

You may find

https://wiki.eclipse.org/OCL/ForumNetiquette

helpful in avoiding ping-pong.