Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Workflow and EObject references
Workflow and EObject references [message #1764187] Fri, 26 May 2017 14:02 Go to next message
Leila S is currently offline Leila SFriend
Messages: 36
Registered: January 2015
Member
Hi,

I want to use workflow to run an evl file. The EVL program uses four metamodels. One of the metamodels is the trace metamodel, which refer to source or target elements in the source/target metamodels. The type of these references are EObject.
When I use the workflow to run EVL, the below error is appeared.

EXCEPTION: Property 'name' not found in object org.eclipse.emf.ecore.impl.DynamicEObjectImpl@a20537 [eClass: org.eclipse.emf.ecore.impl.EClassImpl@14bf9bc [name: Family] [instanceClassName: null] [abstract: false, interface: false]]

The minimal example is attached.

Bests,
Leila.
Re: Workflow and EObject references [message #1764336 is a reply to message #1764187] Sun, 28 May 2017 12:58 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1579
Registered: July 2009
Location: York, UK
Senior Member

Hi Leila,

The ANT file in the attached project runs without errors on my end. Could you please try it in a clean workspace to ensure that this is not a side-effect of e.g. registration of multiple metamodels with the same nsURI.

Cheers,
Dimitris
Re: Workflow and EObject references [message #1764352 is a reply to message #1764336] Mon, 29 May 2017 02:01 Go to previous messageGo to next message
Leila S is currently offline Leila SFriend
Messages: 36
Registered: January 2015
Member
Hi Dimitris,
I try it in a clean workspace, but the error is appeared again.
Buildfile: C:\Users\S\Desktop\plugins\testworkflow\testWorkflow\build.xml

loadModels:

validate:
[epsilon.evl - F2PEVLStrace.evl] self: org.eclipse.emf.ecore.impl.DynamicEObjectImpl@f4cfa4 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@336997 (name: FamilySourceEnd) (instanceClassName: null) (abstract: false, interface: false))
[epsilon.evl - F2PEVLStrace.evl] Flanders
[epsilon.evl - F2PEVLStrace.evl] EXCEPTION: Property 'name' not found in object org.eclipse.emf.ecore.impl.DynamicEObjectImpl@183f875 [eClass: org.eclipse.emf.ecore.impl.EClassImpl@a88cbb [name: Family] [instanceClassName: null] [abstract: false, interface: false]]
[epsilon.evl - F2PEVLStrace.evl] 	at (C:\Users\S\Desktop\plugins\testworkflow\testWorkflow\resources\bxFiles\atomicOperations.eol@448:16-448:45)
[epsilon.evl - F2PEVLStrace.evl] 	at (C:\Users\S\Desktop\plugins\testworkflow\testWorkflow\resources\bxFiles\atomicOperations.eol@448:4-448:45)
[epsilon.evl - F2PEVLStrace.evl] 	at (C:\Users\S\Desktop\plugins\testworkflow\testWorkflow\resources\bxFiles\atomicOperations.eol@448:1-449:19)
[epsilon.evl - F2PEVLStrace.evl] 	at (C:\Users\S\Desktop\plugins\testworkflow\testWorkflow\resources\bxFiles\atomicOperations.eol@446:0-450:1)
[epsilon.evl - F2PEVLStrace.evl] 	at (C:\Users\S\Desktop\plugins\testworkflow\testWorkflow\resources\bxFiles\F2PEVLStrace.evl@16:19-16:40)
[epsilon.evl - F2PEVLStrace.evl] 	at (C:\Users\S\Desktop\plugins\testworkflow\testWorkflow\resources\bxFiles\F2PEVLStrace.evl@16:15-16:40)
[epsilon.evl - F2PEVLStrace.evl] 	at (C:\Users\S\Desktop\plugins\testworkflow\testWorkflow\resources\bxFiles\F2PEVLStrace.evl@16:2-16:41)
[epsilon.evl - F2PEVLStrace.evl] 	at (C:\Users\S\Desktop\plugins\testworkflow\testWorkflow\resources\bxFiles\F2PEVLStrace.evl@14:7-18:15)
[epsilon.evl - F2PEVLStrace.evl] 
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.execute.introspection.java.JavaPropertyGetter.invoke(JavaPropertyGetter.java:51)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.dom.PropertyCallExpression.execute(PropertyCallExpression.java:65)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.dom.PropertyCallExpression.execute(PropertyCallExpression.java:40)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.dom.PropertyCallExpression.execute(PropertyCallExpression.java:72)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(ExecutorFactory.java:97)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.dom.EagerOperatorExpression.execute(EagerOperatorExpression.java:20)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(ExecutorFactory.java:97)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.dom.IfStatement.execute(IfStatement.java:40)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(ExecutorFactory.java:97)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.dom.StatementBlock.execute(StatementBlock.java:49)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(ExecutorFactory.java:97)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.dom.Operation.executeBody(Operation.java:201)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.dom.Operation.execute(Operation.java:184)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.dom.Operation.execute(Operation.java:160)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.dom.OperationList.execute(OperationList.java:114)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.dom.OperationCallExpression.execute(OperationCallExpression.java:113)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(ExecutorFactory.java:97)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.dom.NotOperatorExpression.execute(NotOperatorExpression.java:16)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(ExecutorFactory.java:97)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.dom.AssignmentStatement.execute(AssignmentStatement.java:61)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(ExecutorFactory.java:97)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.dom.StatementBlock.execute(StatementBlock.java:49)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(ExecutorFactory.java:97)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.dom.ExecutableBlock.executeBlockOrExpressionAst(ExecutableBlock.java:94)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.dom.ExecutableBlock.execute(ExecutableBlock.java:108)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.eol.dom.ExecutableBlock.execute(ExecutableBlock.java:137)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.evl.dom.Constraint.check(Constraint.java:100)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.evl.dom.ConstraintContext.checkAll(ConstraintContext.java:132)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.evl.EvlModule.execute(EvlModule.java:216)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.workflow.tasks.ExecutableModuleTask.executeImpl(ExecutableModuleTask.java:218)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute(EpsilonTask.java:40)
[epsilon.evl - F2PEVLStrace.evl] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
[epsilon.evl - F2PEVLStrace.evl] 	at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
[epsilon.evl - F2PEVLStrace.evl] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[epsilon.evl - F2PEVLStrace.evl] 	at java.lang.reflect.Method.invoke(Unknown Source)
[epsilon.evl - F2PEVLStrace.evl] 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[epsilon.evl - F2PEVLStrace.evl] 	at org.apache.tools.ant.Task.perform(Task.java:348)
[epsilon.evl - F2PEVLStrace.evl] 	at org.apache.tools.ant.Target.execute(Target.java:435)
[epsilon.evl - F2PEVLStrace.evl] 	at org.apache.tools.ant.Target.performTasks(Target.java:456)
[epsilon.evl - F2PEVLStrace.evl] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
[epsilon.evl - F2PEVLStrace.evl] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
[epsilon.evl - F2PEVLStrace.evl] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:36)
[epsilon.evl - F2PEVLStrace.evl] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:705)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:527)
[epsilon.evl - F2PEVLStrace.evl] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[epsilon.evl - F2PEVLStrace.evl] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[epsilon.evl - F2PEVLStrace.evl] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[epsilon.evl - F2PEVLStrace.evl] 	at java.lang.reflect.Method.invoke(Unknown Source)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.ant.core.AntRunner.run(AntRunner.java:371)
[epsilon.evl - F2PEVLStrace.evl] 	at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:267)
[epsilon.evl - F2PEVLStrace.evl] 	at java.lang.Thread.run(Unknown Source)

BUILD FAILED
C:\Users\S\Desktop\plugins\testworkflow\testWorkflow\build.xml:48: Property 'name' not found in object org.eclipse.emf.ecore.impl.DynamicEObjectImpl@183f875 [eClass: org.eclipse.emf.ecore.impl.EClassImpl@a88cbb [name: Family] [instanceClassName: null] [abstract: false, interface: false]]
	at (C:\Users\S\Desktop\plugins\testworkflow\testWorkflow\resources\bxFiles\atomicOperations.eol@448:16-448:45)
	at (C:\Users\S\Desktop\plugins\testworkflow\testWorkflow\resources\bxFiles\atomicOperations.eol@448:4-448:45)
	at (C:\Users\S\Desktop\plugins\testworkflow\testWorkflow\resources\bxFiles\atomicOperations.eol@448:1-449:19)
	at (C:\Users\S\Desktop\plugins\testworkflow\testWorkflow\resources\bxFiles\atomicOperations.eol@446:0-450:1)
	at (C:\Users\S\Desktop\plugins\testworkflow\testWorkflow\resources\bxFiles\F2PEVLStrace.evl@16:19-16:40)
	at (C:\Users\S\Desktop\plugins\testworkflow\testWorkflow\resources\bxFiles\F2PEVLStrace.evl@16:15-16:40)
	at (C:\Users\S\Desktop\plugins\testworkflow\testWorkflow\resources\bxFiles\F2PEVLStrace.evl@16:2-16:41)
	at (C:\Users\S\Desktop\plugins\testworkflow\testWorkflow\resources\bxFiles\F2PEVLStrace.evl@14:7-18:15)
Total time: 721 milliseconds


When I want to run the ant file, from the External Tools configurations window I set the JRE>Run in the same JRE as the workspace. Any other config is needed?
Re: Workflow and EObject references [message #1764359 is a reply to message #1764352] Mon, 29 May 2017 07:28 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1579
Registered: July 2009
Location: York, UK
Senior Member

Hi Leila,

> When I want to run the ant file, from the External Tools configurations window I set the JRE>Run in the same JRE as the workspace. Any other config is needed?

Not really. Can you please give this a try with the latest Epsilon stable distribution from [1] and let me know how it goes?

Cheers,
Dimitris

[1] https://www.eclipse.org/epsilon/download/
Re: Workflow and EObject references [message #1764394 is a reply to message #1764359] Mon, 29 May 2017 11:30 Go to previous messageGo to next message
Leila S is currently offline Leila SFriend
Messages: 36
Registered: January 2015
Member
Hi Dimitris,
I have used the latest Epsilon version 1.4 (1.4.0.201611012202) on Eclipse Neon.
Bests,
Leila.
Re: Workflow and EObject references [message #1764406 is a reply to message #1764394] Mon, 29 May 2017 13:02 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1579
Registered: July 2009
Location: York, UK
Senior Member

Hi Leila,

Adding expand="true" to your Families2Persons epsilon.emf.loadModel should do the trick.

Cheers,
Dimitris
Re: Workflow and EObject references [message #1764418 is a reply to message #1764406] Mon, 29 May 2017 14:50 Go to previous message
Leila S is currently offline Leila SFriend
Messages: 36
Registered: January 2015
Member
Hi Dimitris,
Thank you very much. It works:)
Bests,
Leila.
Previous Topic:Use Epsilon in standalone without Eclipse
Next Topic:changing the style of UI
Goto Forum:
  


Current Time: Tue Aug 14 23:23:11 GMT 2018

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

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

Back to the top