Hi Wouter, hi everyone
unfortunatly I still have problems with bmp4struts and ARIS UML Designer.
Here is what I did:
This morning I checked out andromda-all from sourceforge and build it, then
I created a brand new Ant-Project using the Ant-Tool, then I started the
generation for my model I got the following validation errors:
...
[andromda] INFO [AndroMDA] A n d r o M D A - 3.0-RC1-20050323082126
...
[andromda] ERROR [AndroMDA:VALIDATION:ERROR] 1)
[Bpm4Struts::andropalace::presentation::tickets::TicketreservationGraph]:An
activity graph must have a controller class context to which (optionally)
operations can be deferred. Make sure this graph's use-ca
se has the <<FrontEndUseCase>> stereotype.
[andromda] ERROR [AndroMDA:VALIDATION:ERROR] 2)
[Bpm4Struts::andropalace::presentation::tickets::TicketreservationGraph::enter
criteria]:Each name of a JSP action state must be unique in the namespace
of a use-case.
[andromda] ERROR [AndroMDA:VALIDATION:ERROR] 3)
[Bpm4Struts::andropalace::presentation::tickets::TicketreservationGraph::select
show]:Each name of a JSP action state must be unique in the namespace of a
use-case.
[andromda] ERROR [AndroMDA:VALIDATION:ERROR] 4)
[Bpm4Struts::andropalace::presentation::tickets::Ticketreservation]:Each
use-case needs one and only one activity graph.
[andromda] INFO [AndroMDA] completed model processing --> TIME:
22.052[s], RESOURCES WRITTEN: 55 - 4 VALIDATION ERROR(S)
I double checked the model, escpecially the context for the ActivityGraph:
...
<UML:ActivityGraph name="TicketreservationGraph" xmi.id
="ID.il----4-----p--" xmi.uuid="ID.cedaed90-995e-11d9-1068-00e000f95533"
isSpecification="false" namespace="ID.dz----4-----p--" context
="ID.gf----4-----p--">
...
where ID.gf----4-----p-- is the xmi.id of the controller class
("TicketreservationController"). As soon as I move the ActivityGraph
("TicketreservationGraph") in the namespace of my use case, no validation
errors come up.
Probably my string reference of the graph in the use case tagged value is
wrong? How do I have to specifiy the activity graph? My Namespace structure
is "Bpm4Struts::andropalace::presentation::tickets", and the value of the
tag is "andropalace.presentation.tickets.TicketreservationGraph":
<UML:UseCase name="Ticketreservation" xmi.id="ID.9-----6-----p--" xmi.uuid
="ID.e59a3a81-9b71-11d9-1068-00e000f95533" isSpecification="false"
namespace="ID.dz----4-----p--" stereotype="ID.ls----4-----p--
ID.c2----4-----p--" isRoot="false" isLeaf="false" isAbstract="false">
<UML:ModelElement.taggedValue>
<UML:TaggedValue xmi.id="ID.10----6-----p--" xmi.uuid
="ID.fd0f7a40-9b71-11d9-1068-00e000f95533" type="ID.2o----5-----p--">
<UML:TaggedValue.dataValue>andropalace.presentation.tickets.TicketreservationGraph</UML:TaggedValue.dataValue>
</UML:TaggedValue>
</UML:ModelElement.taggedValue>
</UML:UseCase>
where ID.2o----5-----p-- is the xmi.id of the tagged definition "
@andromda.struts.usecase.activity". Isn't that correct?
Any hints would be very helpful.
Regards
Stefan
P.S.: At first I tried the binary distribution of the current nightly
build, but that seems to be an "older" build. It says
...
[andromda] INFO [AndroMDA] A n d r o M D A - 3.0-RC1-20050321223404
...
Are there still problems with the nightly build?
Hello Stefan,
Hmm, I've seen this error being posted before .. I will take a look at it
this evening (I'm working now) and make sure it's fixed in case it's indeed
a bug.
Can you file an issue in JIRA just in case ?
I thought I had a test for this, I will have to verify that. If it's a real
bug it will be fixed this evening.
-- Wouter
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:andromda-user-
> [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> consulting.de
> Sent: Monday, March 21, 2005 3:47 PM
> To: [email protected]
> Subject: [Andromda-user] Using BPM4Struts with ARIS UML Designer
>
> Hi everybody,
>
> I have a quite urgent problem with AndroMDA BPM4Struts and would be very
> thankful for any hints. Here's the problem:
>
> I would like to use ARIS UML Designer together with AndroMDA BPM4Struts
> cartridge. But ARIS UML Desginer doesn't allow to model activity graphs
in
> the namespace of a use case. (ARIS UML Desginer is quite rigorous in it's
> compliance to the UML spec with say that the namespace of a usecase must
> be
> empty, see chapter 2.11.3.5, Well-Formedness Rules for usecases, of UML
> Spec 1.4.1 and 1.5; see also
> http://www.mail-archive.com/andromda-
> [EMAIL PROTECTED]/msg01318.html)
>
> Fortunatly the bpm4struts cartridge provides a tagged definition
> @andromda.struts.usecases.activity for the stereotype FrontEndUseCase, so
> you can reference the activity graph in a use case via a tagged value.
> This
> feature allready worked with a pre M2 version of andromda (I tested it
> that
> time).
>
> Now I try to work with the current RC1 Snapshot or M3 release, but in
both
> cases I got the following exceptions:
>
> ERROR [AndroMDA:VALIDATION:ERROR] 1)
>
org.andromda.cartridges.bpm4struts.metafacades.StrutsJsp[Bpm4Struts::andro
> palace::presentation::tickets::Ticketreservation::enter
>
> criteria]:Each name of a JSP action state must be unique in the namespace
> of a use case
>
> ERROR [AndroMDA:VALIDATION:ERROR] 2)
>
org.andromda.cartridges.bpm4struts.metafacades.StrutsJsp[Bpm4Struts::andro
> palace::presentation::tickets::Ticketreservation::select
>
> show]:Each name of a JSP action state must be unique in the namespace of
a
> use case
>
> ERROR [AndroMDA:VALIDATION:ERROR] 3)
>
org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCase[Bpm4Struts::a
> ndropalace::presentation::tickets::Ticketreservation]:Each
>
> use-case needs one and only one activity graph.
>
> As soon as I "move" the activity graph in the namespace of the use case
by
> hand (via editing the xmi-file directly) the generation works fine.
>
> Is it possible that the OCL constraints for the bpm4stuts profile don't
> account for the case that the activity graph doesn't reside in the
> namespace of the use case but is referenced by a tagged value? My this be
> the cause for validation error #3, and #1 and #2 being consecutive
faults?
>
> Any help would be very welcome!
>
> Regards
> Stefan
>
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Andromda-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/andromda-user
-------------------------------------------------------
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user