Hello Stefan, I re-enabled that part of the code, I now remember that I put it in comment a while back because I was not able to also update the metamodel (a binary file) which was in use by somebody else.
I did not remember to enable it afterwards, but now it is done.. it is in CVS but I will test more during this day (you'll have to wait 8+ hours for anon-cvs to catch up with dev-cvs) I hope this will make it work for you -- Wouter > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:andromda-user- > [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] > consulting.de > Sent: Wednesday, July 21, 2004 4:29 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [Andromda-user] Using AndroMDA with ARIS UML Designer > > Hello Wouter, > > after quite a long break am back again and (unfortunatly) still have to > try > to get AndroMDA working together with ARIS UML Designer. > > I still have the problem that in ARIS I can't place an activity graph in > the namespace of an use case, probably you remember the issue, see > http://www.mail-archive.com/andromda- > [EMAIL PROTECTED]/msg01325.html. > > There you annoucend a solution to our problem: > > [...] > if you cannot put an activity graph inside the namespace of a usecase > you can just put in anywhere you want, but you'll need to give it a name > that is unique among all activity graphs > then you add a tagged value to the use-case like this: > @andromda.struts.usecase.activity=myActivityGraphName > [...] > > So today I tried this (sorry for the delay!) with > andromda-bin-3.0M2-SNAPSHOT, which I downloaded this morning from > team.andromda.org, but I still have problems. This is a cutout of the ant > task output: > > ###snipp### > [andromda] INFO [AndroMDA] > [andromda] INFO [AndroMDA] A n d r o M D A - 3.0M2-SNAPSHOT > [andromda] INFO [AndroMDA] > [andromda] INFO [AndroMDA] found translation-library --> 'query' > [andromda] INFO [AndroMDA] found translation-library --> 'validation' > [andromda] INFO [AndroMDA] found cartridge --> 'bpm4struts' > [andromda] INFO [AndroMDA] found cartridge --> 'java' > [andromda] INFO [AndroMDA] Input model --> > 'file:D:/Projekte/mdd/andromda/andropalace- > M2/mda/src/uml/andropalace_02.xml' > [andromda] INFO [AndroMDA] found metafacades --> 'bpm4struts' > [andromda] INFO [AndroMDA] found metafacades --> 'default' > [andromda] INFO [AndroMDA:bpm4struts] Output: > 'file:/D:/Projekte/mdd/andromda/andropalace- > M2/mda/../web/src/jsp/layout/csv-file.png' > [andromda] INFO [AndroMDA:bpm4struts] Output: > 'file:/D:/Projekte/mdd/andromda/andropalace- > M2/mda/../web/src/jsp/layout/sort-ascending.png' > [andromda] INFO [AndroMDA:bpm4struts] Output: > 'file:/D:/Projekte/mdd/andromda/andropalace- > M2/mda/../web/src/jsp/layout/sort-descending.png' > [andromda] INFO [AndroMDA:bpm4struts] Output: > 'file:/D:/Projekte/mdd/andromda/andropalace- > M2/mda/../web/src/jsp/layout/xml-file.png' > [andromda] INFO [AndroMDA:bpm4struts] Output: > 'file:/D:/Projekte/mdd/andromda/andropalace- > M2/mda/../web/src/jsp/layout/excel-file.png' > [andromda] INFO [AndroMDA:bpm4struts] Output: > 'file:/D:/Projekte/mdd/andromda/andropalace- > M2/mda/../web/src/jsp/layout/sort-none.png' > [andromda] INFO [AndroMDA:bpm4struts] Output: > 'file:/D:/Projekte/mdd/andromda/andropalace- > M2/mda/../web/src/jsp/layout/layout-common.js' > [andromda] INFO [AndroMDA:bpm4struts] Output: > 'file:/D:/Projekte/mdd/andromda/andropalace- > M2/mda/../web/target/src/de/moviepalace/presentation/tickets/Reservierun g. > java' > [andromda] INFO [AndroMDA:bpm4struts] Empty Output: > 'file:/D:/Projekte/mdd/andromda/andropalace-M2/mda/../web/src/jsp/empty- > file.jsp' > > --> not writing > [andromda] INFO [AndroMDA:bpm4struts] Output: > 'file:/D:/Projekte/mdd/andromda/andropalace- > M2/mda/../web/target/src/de/moviepalace/presentation/tickets/Reservierun gA > ctionForm.java' > [andromda] ERROR [Cartridge] Error performing > Cartridge.processWithTemplate with template > 'templates/StrutsUseCaseForm.vsl', template context > '{securityEnabled=false, > class=org.andromda.metafacades.uml14.ModelElementFacadeLogicImpl[de.movi ep > alace.presenta > tion.tickets.Reservierung], securityRealm=other, > [EMAIL PROTECTED]' and cartridge > 'bpm4struts' > [andromda] org.apache.velocity.exception.MethodInvocationException: > Invocation of method 'getFormFields' in class > org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCaseLogicImpl > threw > exception class java.lang.NullPointerException : null > [andromda] at > org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentif ie > r.java:193) > [andromda] at > org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc e. > java:175) > [andromda] at > org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference. ja > va:327) > ###snapp### > > As soon as I manually move the activity graph in the use case namespace, > everything seems to work fine... > > In the sources of > org.andromda.cartridges.bpm4struts.metafacadesStrutsUseCaseLogicImpl I > found the code: > > public java.lang.Object handleGetActivityGraph() > { > /* > * In case there is a tagged value pointing to an activity graph, > and this graph is found, > * then return it. > */ > /* @todo: commented out, MUST BE ENABLED LATER > final Object activity = > findTaggedValue(Bpm4StrutsProfile.TAGGED_VALUE_USECASE_ACTIVITY); > if (activity != null) > { > String activityName = activity.toString(); > Collection activityGraphs = getModel().getAllActivityGraphs(); > for (Iterator iterator = activityGraphs.iterator(); > iterator.hasNext();) > { > Object obj = iterator.next(); > if (obj instanceof StrutsActivityGraph) > { > StrutsActivityGraph activityGraph > = (StrutsActivityGraph)obj; > if > (activityName.equalsIgnoreCase(activityGraph.getName > ())) > return activityGraph; > } > } > } > */ > ... > > Can this be the problem? Any help would be very welcome! > > Regards > Stefan > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Andromda-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/andromda-user ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user
