Hi Wouter,

thank you for your detailed explenation on your plans on model
verification.

If I understand you correctly it should already be possible to implement
check-Routines with java code inside the metamodel facades, right? So I can
already place verification code there? (Of course using OCL is much better
then implementing java code...)

Regards
Stefan



|--------+------------------------>
|        |          [EMAIL PROTECTED]|
|        |          tscape.net    |
|        |                        |
|        |          11.06.2004    |
|        |          15:17         |
|        |                        |
|--------+------------------------>
  
>------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                    |
  |       An:     [EMAIL PROTECTED]                                                    
                   |
  |       Kopie:  [EMAIL PROTECTED]                                                    
                  |
  |       Thema:  RE: RE: [Andromda-user] bpm4struts: Best Practices on finding 
modellingerrors?                           |
  
>------------------------------------------------------------------------------------------------------------------------|




>your hint that ClassCastExceptions usually means forgotten or espcially
>*misspelled* stereotypes was exactly the clue I needed.
>The generation works fine now!
>

good news! :-)

>P.S.: Are there already some documents available on how your are planing
to
>support model validation in AndroMDA. I think this is a crucial feature
for
>MDA tools...
>


there are no documents at this point, I guess we'll update the wiki site
once we have something concrete and the teamserver is back up - there is a
real problem here and we need to come to a solution to guarantuee a better
uptime

We are implementing model constraint validation by using one of the latest
additions to the andromda core which is an OCL translation framework
initially conceived and integrated by Chad Brandon (who we all know)

so what can we do with it and how are we planning on using it ? well very
simply put it allows us to take OCL input and translate it to any language
of choice, currently there is support for EJB-QL and Hiberate-QL and I am
trying to get the generated Java code running.

from within the templates we call the model element facades and ask it for
a specific translation from OCL, so it is inserted directly where we want
it

we have already constructed a mechanism in the layer of abstract facade
classes that for each call to the facades the pre and postconditions are
checked (and the result is being cached for performance, since the model
does not change at runtime)

failing to model correctly will then allow us to give a more precise
message instead of these boring exceptions all the time :-)

gottogonow

hth

-- Wouter :-)

>
>
>
>|--------+------------------------>
>|        |          [EMAIL PROTECTED]|
>|        |          tscape.net    |
>|        |                        |
>|        |          11.06.2004    |
>|        |          14:12         |
>|        |                        |
>|--------+------------------------>
>  >
------------------------------------------------------------------------------------------------------------------------|

>  |
|
>  |       An:     [EMAIL PROTECTED],
[EMAIL PROTECTED]                                  |
>  |       Kopie:
|
>  |       Thema:  RE: [Andromda-user] bpm4struts: Best Practices on
finding modelling errors?                              |
>  >
------------------------------------------------------------------------------------------------------------------------|

>
>
>
>
>hi Stefan,
>
>a classcast exception typically means you forgot to add a stereotype, see
>my email of yesterday explaining which steps to verify in order to be able
>to generate
>
>-- Wouter
>
>>Hello,
>>
>>I'm trying to work with the bpm4struts cartridge and have modelled a
quite
>>simple activity graph.
>>When starting the MDA-Task of AndroMDA 3.0M1it result in the following
>>output:
>>
>> [andromda] 13:15:21,933 INFO  [CartridgeFinder] found cartridge -->
>>'bpm4struts'
>> [andromda] 13:15:21,983 INFO  [CartridgeFinder] found cartridge -->
'ejb'
>> [andromda] 13:15:22,023 INFO  [CartridgeFinder] found cartridge -->
>'java'
>> [andromda] 13:15:28,032 INFO  [andromda] Input model -->
>>'file:D:/Projekte/mdd/andromda/andropalace/mda/src/uml/andropalace_02_md.xml'

>
>> [andromda] 13:15:38,938 INFO  [MetafacadeMappings] found metafacades -->
>>'bpm4struts'
>> [andromda] 13:15:39,028 INFO  [MetafacadeMappings] found metafacades -->
>>'ejb'
>> [andromda] 13:15:39,268 INFO  [MetafacadeMappings] found metafacades -->
>>'default'
>> [andromda] 13:15:40,790 ERROR [DefaultAndroMDACartridge] Error
performing
>>DefaultAndroMDACartridge.processWithTemplate with template
>>'templates/StrutsAction.vsl', template context '{securityEnabled=false,
>>[EMAIL PROTECTED],

>
>>
>>[EMAIL PROTECTED],
>>securityRealm=other}' and cartridge 'bpm4struts'
>> [andromda] org.apache.velocity.exception.MethodInvocationException:
>>Invocation of method 'getInput' in  class
>>org.andromda.cartridges.bpm4struts.metafacades.StrutsActionLogicImpl
threw
>>exception class java.lang.ClassCastException : null
>> [andromda]     at
>>org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:193)

>
>>...
>>
>>I'm quite sure that I've made a mistake in the UML modell but unfortuntly
>>don't have any idear where... And unfortunatly the exeption text didn't
do
>>a lot to help me get a clue.
>>I know the andromda team is working on features to validate a model
before
>>the generating process starts, but in the meantime can anyone give me
some
>>best practices on how to handle such kind of situations?
>>
>>Any hints would be very welcome!
>>
>>Regards
>>Stefan
>>
>>
>>
>>
>>-------------------------------------------------------
>>This SF.Net email is sponsored by the new InstallShield X.
>>From Windows to Linux, servers to mobile, InstallShield X is the
>>one installation-authoring solution that does it all. Learn more and
>>evaluate today! http://www.installshield.com/Dev2Dev/0504
>>_______________________________________________
>>Andromda-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/andromda-user
>>
>
>__________________________________________________________________
>Introducing the New Netscape Internet Service.
>Only $9.95 a month -- Sign up today at http://isp.netscape.com/register
>
>Netscape. Just the Net You Need.
>
>New! Netscape Toolbar for Internet Explorer
>Search from anywhere on the Web and block those annoying pop-ups.
>Download now at http://channels.netscape.com/ns/search/install.jsp
>
>
>
>
>

__________________________________________________________________
Introducing the New Netscape Internet Service.
Only $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp






-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to