I execute  andromda via ant

1- Back in the command line i change directory into c:\andromda3.0\ant. To start the MDA  and i type ant
A new prject is built
2- I copy the generated lib in my new project 
3-
 Open the generated Model-file from ./mda/source/uml/ into Magicdraw 
 4. Start to model
 4.1. Create a package structure to hold my diagrams
4.2. Create a Use-Case within the package, name it "Login" by typing 
into Items-Property-bo
 x (not
 into the label of the item)
 4.3. Assign the stereotypes "FrontEndApplication" and "FrontEndUseCase" 
by right-clicking the Use-Case and selection from the Stereotypes 
submenu
 4.4. Create an Activity Graph by right clicking on the 
 item in
 the 
Containment-Tree and selecting from the submenu New Diagram/Activity Graph, 
call it "LoginActivity"
 4.5. In "LoginActivity" I create an Initial
 State, two Action States 
"Action1" and "Action2", and also a Final State. 
4.6. Next I add Transitions from
  - Initial State to Action1
 
 - Action1 to Action2
  - Action2 to Final State
 4.7. Action2 gets the
 Stereotype FrontEndView to mark it as a JSP
 4.8 The outgoing Transition from Action2 to Final State will hold a 
Trigger:
 - In the Items Specification under Trigger I click the "Edit" button
 - Under General Tabs enter the name "login" (this should be a method)
  - Type of the trigger is signal
 - Under Parameter tab I add the Strings "userName" and "password"
 4.9. Create a new Class diagram "Web Tier"
 4.10. within the Class diagram create the class "LoginController"
 4.11. Assign the class to the "Login Activity" by right clicking on the 
Controllers icon in the Containment View and selecting "State/Activity 
Diagram /assign..", select Login Activity in the resulting dialog
 4.12. Save the model 
 5- Back in the command line i change directory into my newly generated 
project folder. To start the MDA i type ant 
 I cannot determine the source of my error. And here there are the result.
Could you help me

 

 

has the ignore attribute set to 'true' --> skipping processing

 [andromda] ERROR [AndroMDA:VALIDATION:ERROR] 1) [Data::Component View::zzz::Login::LoginAc

tivity]:An activity graph must have a controller class context to which (optionally) operat

ions can be deferred. Make sure this graph's use-case has the FrontEndUseCase stereotype.

 [andromda] ERROR [AndroMDA:VALIDATION:ERROR] 2) [Data::Component View::zzz::Login::LoginAc

tivity::Login]:The name of this final state must not be null and exactly match the name of

a use-case. Alternatively it is possible to reference a use-case using an hyperlink (some U

ML tools support this). In both cases that use-case MUST carry the FrontEndUseCase stereoty

pe. Finally you may also specify an actual hyperlink to an external resource, either in the

 final state's name, or as a webpage link as supported by some UML tools.

 [andromda] ERROR [AndroMDA:VALIDATION:ERROR] 3) [Data::Component View::zzz::Login::LoginAc

tivity::action2]:Each name of a JSP action state must be unique in the namespace of a use-c

ase.

 [andromda] INFO  [AndroMDA] completed model processing --> TIME: 21.813[s], RESOURCES WRIT

TEN: 46 - 3 VALIDATION ERROR(S)

 

BUILD FAILED

C:\andromda-bin-3.0\ant\jeudi2\build.xml:9: The following error occurred while executing th

is line:

C:\andromda-bin-3.0\ant\jeudi2\build.xml:43: The following error occurred while executing t

his line:

C:\andromda-bin-3.0\ant\jeudi2\mda\build.xml:43: Model validation failed!

 

Total time: 25 seconds

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez le ici !

Reply via email to