Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Wrong mapping from XSD to EMF? BPEL schema
Wrong mapping from XSD to EMF? BPEL schema [message #38716] Mon, 15 March 2004 15:28 Go to next message
Eclipse UserFriend
Originally posted by: wah.zurich.ibm.com

Hi everyone,

I created an EMF project that is based on an XML schema definition, in
particular the schema of a BPEL model. BPEL is a language used to
defined business processes. Its schema can be seen here:

http://www-106.ibm.com/developerworks/library/ws-bpel/#appen dixd

In the generated editor, strange things can be modelled. There are at
least 3 things that worry me:

- Each type can be used only once throughout the whole model (e.g., a
Sequence).

- The root node of the model, Process, is intended to have exactly one
child. When I loaded the XSD file in XML Spy, this is clearly visible.
In the generated model editor, however, a Process can have more than one
child.

- The last thing is that an element such a Sequence may only have
children of type Target and Source. This means that no activities can be
defined within the sequence.

Am I doing something wrong?

Michael
Re: Wrong mapping from XSD to EMF? BPEL schema [message #38749 is a reply to message #38716] Mon, 15 March 2004 15:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Michael,

I don't understand your comment about "each type can be used only once".
What are you referring to here? Looking at the definition for tProcess, it
looks like it specifies many element children, so I'm confused by your one
child only comment. I don't understand the comment about Sequence either,
target and source appearch to be things on tActivity not tSequence. Could
you more clearly state what the problem is in each case?


Michael Wahler wrote:

> Hi everyone,
>
> I created an EMF project that is based on an XML schema definition, in
> particular the schema of a BPEL model. BPEL is a language used to
> defined business processes. Its schema can be seen here:
>
> http://www-106.ibm.com/developerworks/library/ws-bpel/#appen dixd
>
> In the generated editor, strange things can be modelled. There are at
> least 3 things that worry me:
>
> - Each type can be used only once throughout the whole model (e.g., a
> Sequence).
>
> - The root node of the model, Process, is intended to have exactly one
> child. When I loaded the XSD file in XML Spy, this is clearly visible.
> In the generated model editor, however, a Process can have more than one
> child.
>
> - The last thing is that an element such a Sequence may only have
> children of type Target and Source. This means that no activities can be
> defined within the sequence.
>
> Am I doing something wrong?
>
> Michael
Re: Wrong mapping from XSD to EMF? BPEL schema [message #38783 is a reply to message #38749] Mon, 15 March 2004 16:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wah.zurich.ibm.com

Hi Ed,

thank you for taking the time.

Ok, I haven't explained the problem well. As far as I understand it,
tProcess may have exactly one child of the 'activity' group due to the
'choice' markup. The editor however lets me create several activities as
a tProcess' children.

The sequence problem: Within a tFlow, I can have two parallel
tSequences. In theory. I cannot create a second tFlow child of type
tSequence when there already exists a child of type tSequence.




Ed Merks wrote:
> Michael,
>
> I don't understand your comment about "each type can be used only once".
> What are you referring to here? Looking at the definition for tProcess, it
> looks like it specifies many element children, so I'm confused by your one
> child only comment. I don't understand the comment about Sequence either,
> target and source appearch to be things on tActivity not tSequence. Could
> you more clearly state what the problem is in each case?
>
>
> Michael Wahler wrote:
>
>
>>Hi everyone,
>>
>>I created an EMF project that is based on an XML schema definition, in
>>particular the schema of a BPEL model. BPEL is a language used to
>>defined business processes. Its schema can be seen here:
>>
>> http://www-106.ibm.com/developerworks/library/ws-bpel/#appen dixd
>>
>>In the generated editor, strange things can be modelled. There are at
>>least 3 things that worry me:
>>
>>- Each type can be used only once throughout the whole model (e.g., a
>>Sequence).
>>
>>- The root node of the model, Process, is intended to have exactly one
>>child. When I loaded the XSD file in XML Spy, this is clearly visible.
>>In the generated model editor, however, a Process can have more than one
>>child.
>>
>>- The last thing is that an element such a Sequence may only have
>>children of type Target and Source. This means that no activities can be
>>defined within the sequence.
>>
>>Am I doing something wrong?
>>
>>Michael
>
>
Re: Wrong mapping from XSD to EMF? BPEL schema [message #38815 is a reply to message #38783] Mon, 15 March 2004 17:07 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Michael,

A choice is mapped to series of optional features and there is currently no
enforcement that these optional features should be mutually exclusive; bugzilla
https://bugs.eclipse.org/bugs/show_bug.cgi?id=51210 asks for this.


Michael Wahler wrote:

> Hi Ed,
>
> thank you for taking the time.
>
> Ok, I haven't explained the problem well. As far as I understand it,
> tProcess may have exactly one child of the 'activity' group due to the
> 'choice' markup. The editor however lets me create several activities as
> a tProcess' children.
>
> The sequence problem: Within a tFlow, I can have two parallel
> tSequences. In theory. I cannot create a second tFlow child of type
> tSequence when there already exists a child of type tSequence.
>
> Ed Merks wrote:
> > Michael,
> >
> > I don't understand your comment about "each type can be used only once".
> > What are you referring to here? Looking at the definition for tProcess, it
> > looks like it specifies many element children, so I'm confused by your one
> > child only comment. I don't understand the comment about Sequence either,
> > target and source appearch to be things on tActivity not tSequence. Could
> > you more clearly state what the problem is in each case?
> >
> >
> > Michael Wahler wrote:
> >
> >
> >>Hi everyone,
> >>
> >>I created an EMF project that is based on an XML schema definition, in
> >>particular the schema of a BPEL model. BPEL is a language used to
> >>defined business processes. Its schema can be seen here:
> >>
> >> http://www-106.ibm.com/developerworks/library/ws-bpel/#appen dixd
> >>
> >>In the generated editor, strange things can be modelled. There are at
> >>least 3 things that worry me:
> >>
> >>- Each type can be used only once throughout the whole model (e.g., a
> >>Sequence).
> >>
> >>- The root node of the model, Process, is intended to have exactly one
> >>child. When I loaded the XSD file in XML Spy, this is clearly visible.
> >>In the generated model editor, however, a Process can have more than one
> >>child.
> >>
> >>- The last thing is that an element such a Sequence may only have
> >>children of type Target and Source. This means that no activities can be
> >>defined within the sequence.
> >>
> >>Am I doing something wrong?
> >>
> >>Michael
> >
> >
Re: Wrong mapping from XSD to EMF? BPEL schema [message #584144 is a reply to message #38716] Mon, 15 March 2004 15:50 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31562
Registered: July 2009
Senior Member
Michael,

I don't understand your comment about "each type can be used only once".
What are you referring to here? Looking at the definition for tProcess, it
looks like it specifies many element children, so I'm confused by your one
child only comment. I don't understand the comment about Sequence either,
target and source appearch to be things on tActivity not tSequence. Could
you more clearly state what the problem is in each case?


Michael Wahler wrote:

> Hi everyone,
>
> I created an EMF project that is based on an XML schema definition, in
> particular the schema of a BPEL model. BPEL is a language used to
> defined business processes. Its schema can be seen here:
>
> http://www-106.ibm.com/developerworks/library/ws-bpel/#appen dixd
>
> In the generated editor, strange things can be modelled. There are at
> least 3 things that worry me:
>
> - Each type can be used only once throughout the whole model (e.g., a
> Sequence).
>
> - The root node of the model, Process, is intended to have exactly one
> child. When I loaded the XSD file in XML Spy, this is clearly visible.
> In the generated model editor, however, a Process can have more than one
> child.
>
> - The last thing is that an element such a Sequence may only have
> children of type Target and Source. This means that no activities can be
> defined within the sequence.
>
> Am I doing something wrong?
>
> Michael


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Wrong mapping from XSD to EMF? BPEL schema [message #584170 is a reply to message #38749] Mon, 15 March 2004 16:38 Go to previous message
Michael Wahler is currently offline Michael WahlerFriend
Messages: 14
Registered: July 2009
Junior Member
Hi Ed,

thank you for taking the time.

Ok, I haven't explained the problem well. As far as I understand it,
tProcess may have exactly one child of the 'activity' group due to the
'choice' markup. The editor however lets me create several activities as
a tProcess' children.

The sequence problem: Within a tFlow, I can have two parallel
tSequences. In theory. I cannot create a second tFlow child of type
tSequence when there already exists a child of type tSequence.




Ed Merks wrote:
> Michael,
>
> I don't understand your comment about "each type can be used only once".
> What are you referring to here? Looking at the definition for tProcess, it
> looks like it specifies many element children, so I'm confused by your one
> child only comment. I don't understand the comment about Sequence either,
> target and source appearch to be things on tActivity not tSequence. Could
> you more clearly state what the problem is in each case?
>
>
> Michael Wahler wrote:
>
>
>>Hi everyone,
>>
>>I created an EMF project that is based on an XML schema definition, in
>>particular the schema of a BPEL model. BPEL is a language used to
>>defined business processes. Its schema can be seen here:
>>
>> http://www-106.ibm.com/developerworks/library/ws-bpel/#appen dixd
>>
>>In the generated editor, strange things can be modelled. There are at
>>least 3 things that worry me:
>>
>>- Each type can be used only once throughout the whole model (e.g., a
>>Sequence).
>>
>>- The root node of the model, Process, is intended to have exactly one
>>child. When I loaded the XSD file in XML Spy, this is clearly visible.
>>In the generated model editor, however, a Process can have more than one
>>child.
>>
>>- The last thing is that an element such a Sequence may only have
>>children of type Target and Source. This means that no activities can be
>>defined within the sequence.
>>
>>Am I doing something wrong?
>>
>>Michael
>
>
Re: Wrong mapping from XSD to EMF? BPEL schema [message #584180 is a reply to message #38783] Mon, 15 March 2004 17:07 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31562
Registered: July 2009
Senior Member
Michael,

A choice is mapped to series of optional features and there is currently no
enforcement that these optional features should be mutually exclusive; bugzilla
https://bugs.eclipse.org/bugs/show_bug.cgi?id=51210 asks for this.


Michael Wahler wrote:

> Hi Ed,
>
> thank you for taking the time.
>
> Ok, I haven't explained the problem well. As far as I understand it,
> tProcess may have exactly one child of the 'activity' group due to the
> 'choice' markup. The editor however lets me create several activities as
> a tProcess' children.
>
> The sequence problem: Within a tFlow, I can have two parallel
> tSequences. In theory. I cannot create a second tFlow child of type
> tSequence when there already exists a child of type tSequence.
>
> Ed Merks wrote:
> > Michael,
> >
> > I don't understand your comment about "each type can be used only once".
> > What are you referring to here? Looking at the definition for tProcess, it
> > looks like it specifies many element children, so I'm confused by your one
> > child only comment. I don't understand the comment about Sequence either,
> > target and source appearch to be things on tActivity not tSequence. Could
> > you more clearly state what the problem is in each case?
> >
> >
> > Michael Wahler wrote:
> >
> >
> >>Hi everyone,
> >>
> >>I created an EMF project that is based on an XML schema definition, in
> >>particular the schema of a BPEL model. BPEL is a language used to
> >>defined business processes. Its schema can be seen here:
> >>
> >> http://www-106.ibm.com/developerworks/library/ws-bpel/#appen dixd
> >>
> >>In the generated editor, strange things can be modelled. There are at
> >>least 3 things that worry me:
> >>
> >>- Each type can be used only once throughout the whole model (e.g., a
> >>Sequence).
> >>
> >>- The root node of the model, Process, is intended to have exactly one
> >>child. When I loaded the XSD file in XML Spy, this is clearly visible.
> >>In the generated model editor, however, a Process can have more than one
> >>child.
> >>
> >>- The last thing is that an element such a Sequence may only have
> >>children of type Target and Source. This means that no activities can be
> >>defined within the sequence.
> >>
> >>Am I doing something wrong?
> >>
> >>Michael
> >
> >


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Wrong mapping from XSD to EMF? BPEL schema
Next Topic:Any tools for reducing a schema?
Goto Forum:
  


Current Time: Sat Oct 31 05:36:35 GMT 2020

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

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

Back to the top