Home » Modeling » OCL » Problem when opening Ecore file with OCLInEcore using Juno
|
Re: Problem when opening Ecore file with OCLInEcore using Juno [message #1069036 is a reply to message #1069007] |
Mon, 15 July 2013 02:30 |
Archevo tarek Messages: 21 Registered: July 2013 |
Junior Member |
|
|
Hi,
I found a solution to the problem, i change the URI in the imports. for Example,
import wsdl_0 : '/plugin/org.eclipse.wst.wsdl/model/WSDL.ecore#/';
becomes:
import wsdl_0 : 'WSDL.ecore#/';
But, i have another problem:
I created a dynamic instance from my bpel.ecore file with some activities. I tried to set for example the receive activity with some attributes like, operation, portType, which are normally in the WSDL file, but without success. When i try to validate the XMI file obviously it doesn't work, and displays that these features must be set.
How to do this?
Thanks in advance.
|
|
|
Re: Problem when opening Ecore file with OCLInEcore using Juno [message #1069155 is a reply to message #1069036] |
Mon, 15 July 2013 09:28 |
Ed Willink Messages: 7655 Registered: July 2009 |
Senior Member |
|
|
Hi
If you want to use an installed version you should import the package
e.g. 'http:/...WSDL...'
If you want to use a development/installed version you should import the
packge e.g. 'platform:/plugin/org.eclipse.wst.wsdl/model/WSDL.ecore#/'
The #/ navigates from the model root to the package. You can import the
model root, in which case you then need to specify the package name in
your navigation expressions.
------
I've no idea what your second problem is. It seems to me that you should
just learn to define Ecore operations and properties, so I'm obviously
not understnading your problem.
Regards
Ed Willink
On 15/07/2013 03:30, zernadji tarek wrote:
> Hi, I found a solution to the problem, i change the URI in the
> imports. for Example, import wsdl_0 :
> '/plugin/org.eclipse.wst.wsdl/model/WSDL.ecore#/';
> becomes:
> import wsdl_0 : 'WSDL.ecore#/';
>
> But, i have another problem:
> I created a dynamic instance from my bpel.ecore file with some
> activities. I tried to set for example the receive activity with some
> attributes like, operation, portType, which are normally in the WSDL
> file, but without success. When i try to validate the XMI file
> obviously it doesn't work, and displays that these features must be set.
>
> How to do this?
>
> Thanks in advance.
|
|
|
Re: Problem when opening Ecore file with OCLInEcore using Juno [message #1069243 is a reply to message #1069155] |
Mon, 15 July 2013 13:53 |
Archevo tarek Messages: 21 Registered: July 2013 |
Junior Member |
|
|
Hi,
I'm trying to test some OCL constraints, so i created a dynamic instance form the ecore model (in my case the ecore model of BPEL). For that, i opened the file with OCLInEcore editor, and right click, then create dynamic instance (it creates an XMI file). I created a BPEL process, with some activities namely, 'Receive', 'Reply', 'ASsign',,,,. In the properties view, you can set attributes of these activities. When i finished, i tried to validate the instance (right click, and validate), it displays problesms (reason: Diagnosis of process). It tells that some required features like 'portType',and 'operation' of the activities 'Reply' and 'Receive' in the BPEL process instance (in the XMI file) must be set.
In the properties view, when left click on a activity, say, 'Receive', it gives the possibility to set these attributes. But, when trying to do it, i noticed that it is expected a value from a list but nothing is found in the list, like the PortType name, or the Operation name. The editor is expected a value may be from another XMI file of the WSDL.ecore file, which represents an instance of a WSDL file (the wsdl of the BPEL process).
How can i get these properties, from another instance of WSDL.ecore?? if this is the case, how to get a property in a XMI file from another one??
Thanks in advance.
|
|
|
Re: Problem when opening Ecore file with OCLInEcore using Juno [message #1069250 is a reply to message #1069243] |
Mon, 15 July 2013 14:13 |
Ed Willink Messages: 7655 Registered: July 2009 |
Senior Member |
|
|
Hi
This is nothing to do with OCL; it's a basic EMF usage question.
Use "Load Resource..." from the context menu to load additional resources.
Regards
Ed Willink
On 15/07/2013 14:53, zernadji tarek wrote:
> Hi,
> I'm trying to test some OCL constraints, so i created a dynamic
> instance form the ecore model (in my case the ecore model of BPEL).
> For that, i opened the file with OCLInEcore editor, and right click,
> then create dynamic instance (it creates an XMI file). I created a
> BPEL process, with some activities namely, 'Receive', 'Reply',
> 'ASsign',,,,. In the properties view, you can set attributes of these
> activities. When i finished, i tried to validate the instance (right
> click, and validate), it displays problesms (reason: Diagnosis of
> process). It tells that some required features like 'portType',and
> 'operation' of the activities 'Reply' and 'Receive' in the BPEL
> process instance (in the XMI file) must be set.
> In the properties view, when left click on a activity, say, 'Receive',
> it gives the possibility to set these attributes. But, when trying to
> do it, i noticed that it is expected a value from a list but nothing
> is found in the list, like the PortType name, or the Operation name.
> The editor is expected a value may be from another XMI file of the
> WSDL.ecore file, which represents an instance of a WSDL file (the wsdl
> of the BPEL process).
>
> How can i get these properties, from another instance of WSDL.ecore??
> if this is the case, how to get a property in a XMI file from another
> one??
> Thanks in advance.
|
|
|
Re: Problem when opening Ecore file with OCLInEcore using Juno [message #1069291 is a reply to message #1069243] |
Mon, 15 July 2013 15:52 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Populating references requires instances of the type that conform to the
reference's type. The entire resource set is visited to find such
instances, but if there are none, the list of choices will be empty.
You can use Load Resource... from the context menu to load other
resources, and if they contain instance of the type, those instances
will be appear in the list of choices. But BPEL has a specialized
editor and you're likely best of to use that editor for editing BPEL
instances...
On 15/07/2013 3:53 PM, zernadji tarek wrote:
> Hi,
> I'm trying to test some OCL constraints, so i created a dynamic
> instance form the ecore model (in my case the ecore model of BPEL).
> For that, i opened the file with OCLInEcore editor, and right click,
> then create dynamic instance (it creates an XMI file). I created a
> BPEL process, with some activities namely, 'Receive', 'Reply',
> 'ASsign',,,,. In the properties view, you can set attributes of these
> activities. When i finished, i tried to validate the instance (right
> click, and validate), it displays problesms (reason: Diagnosis of
> process). It tells that some required features like 'portType',and
> 'operation' of the activities 'Reply' and 'Receive' in the BPEL
> process instance (in the XMI file) must be set.
> In the properties view, when left click on a activity, say, 'Receive',
> it gives the possibility to set these attributes. But, when trying to
> do it, i noticed that it is expected a value from a list but nothing
> is found in the list, like the PortType name, or the Operation name.
> The editor is expected a value may be from another XMI file of the
> WSDL.ecore file, which represents an instance of a WSDL file (the wsdl
> of the BPEL process).
>
> How can i get these properties, from another instance of WSDL.ecore??
> if this is the case, how to get a property in a XMI file from another
> one??
> Thanks in advance.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Goto Forum:
Current Time: Sun Apr 28 21:28:19 GMT 2024
Powered by FUDForum. Page generated in 0.04298 seconds
|