Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
IDs for SCA model elements (was RE: [stp-dev] Test cases for STP-IM Builder)

Hello everyone,

In the past few days I've been working EMF Model Query to keep the names of
the elements updated across models of the different STP editors; something
like a "reverse engineering" thing as I mentioned before. For example, if
the user draws a BPMN activity that looks like this on its serialized form:
	
	<vertices xmi:type="bpmn:Activity" xmi:id="_XnaigT_VEd2hLIVKnOkaeg"
iD="_XnaigD_VEd2hLIVKnOkaeg" outgoingEdges="_FIcQUT_WEd2hLIVKnOkaeg"
name="Halt Machine" activityType="Task"/>

When the STP-IM builder runs, it transforms this activity into a Step
element of an Intermediate Model instance. From this instance, the user can
create an SCA model, a BPEL model and so on. However, if the user makes a
manual change to one of these generated elements (for example its name), the
ideal would be to keep the first BPMN Activity element updated. To do this,
we run an update command querying that activity with the help of the iD
attribute that you see serialized, and then apply the changes that have been
made (for example, set the new activity name).

We were lucky in that the BPMN editor already creates elements with this iD,
and so we can use it to track each one of its elements. However, now we want
to extend this feature to the SCA model editor. In this particular case, we
need to track Composites, Components and Services. However the SCA editors
don't attach an iD to its elements, so we need to think of a way to extend
these model elements to create an iD and attach it. 

Initially I thought of using the Property element of SCA to attach an iD to
the elements, but I discovered that I can only attach these to Composites
and Components, but not to Services, so I won't be able to use this. I
cannot use either the EAnnotations mechanism that provides EMF to extend
elements, because in the SCA metamodel the elements don't have EModelElement
as its supertype.

Do you have any recommendation on how to give the SCA elements an iD so I
can track them?

Thanks a lot!

-Juan


-----Original Message-----
From: Juan Cadavid [mailto:juanjosecg@xxxxxxxxx] 
Sent: Wednesday, August 06, 2008 2:11 AM
To: 'STP Dev list'
Subject: RE: [stp-dev] Test cases for STP-IM Builder

Hi Stéphane,

Thanks a lot for your help! Definitely EMF Compare is the way to go. I'm
working on it along with EMF Model Query to implement the "reverse
engineering" capabilities I described in my earlier message, and hope I can
show it soon :)

-Juan

-----Original Message-----
From: stp-dev-bounces@xxxxxxxxxxx [mailto:stp-dev-bounces@xxxxxxxxxxx] On
Behalf Of Stéphane Drapeau <Stephane.Drapeau@xxxxxxx>
Sent: Monday, August 04, 2008 7:23 AM
To: STP Dev list
Subject: Re: [stp-dev] Test cases for STP-IM Builder

Hi Juan,

Unfortunately, we haven't developed any model comparison service. 
However, by experience, I recommend you to use EMF Compare.

Regards,

Stéphane Drapeau
Obeo

Juan Cadavid a écrit :
>
> Hi STP team,
>
> As I said in my previous message, I’m working on an STP model builder 
> aimed to provide automatic integration between the STP editors. In the 
> following wiki page I’ve documented some really basic usage scenarios, 
> in the form of test cases.
>
> http://wiki.eclipse.org/STP/IM_Component/IM_Builder_Test
>
> Tests 1, 2 and 3 have already been implemented and will soon be 
> uploaded to a Bugzilla entry. For tests 4 and 5, I’d like to ask for 
> advice on implementation, especially to the SCA sub-project team since 
> it’s related to that specific modeler ;-)
>
> Specifically, in test 4 what we do is that we create several BPMN 
> models, produce an unique STP-IM instance and then from it we 
> transform it into an SCA model (using the org.eclipse.stp.im.out.sca 
> plug-in transformation process). Then, we make changes to the SCA 
> model, and we expect to see these changes back in the STP-IM; e.g. 
> changing a service name and seeing such change also reflected on the 
> STP-IM core instance (kind of a “Reverse Engineering” thing).
>
> In order to implement this last step, we would need to track changes 
> taking place in the generated SCA model. So, my question is that if 
> the SCA team has developed any model comparation services, perhaps 
> using EMF Compare or something similar, or if you recommend any 
> specific approach.
>
> Thanks beforehand for any help you can provide; I hope I was able to 
> make myself clear!
>
> Cheers,
>
> -Juan
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> stp-dev mailing list
> stp-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/stp-dev
>   

_______________________________________________
stp-dev mailing list
stp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/stp-dev




Back to the top