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/[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/Reservierung.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/ReservierungActionForm.java'
 [andromda] ERROR [Cartridge] Error performing
Cartridge.processWithTemplate with template
'templates/StrutsUseCaseForm.vsl', template context
'{securityEnabled=false,
class=org.andromda.metafacades.uml14.ModelElementFacadeLogicImpl[de.moviepalace.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(ASTIdentifier.java:193)
 [andromda]     at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
 [andromda]     at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java: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

Reply via email to