After some successful modeling, generation of code and deployment, using Magic Draw 9.5, Maven 1.0.2, AndroMDA 3.1-RC1-SNAPSHOT and JBoss 4.0.2, I keep having problems with using decision points in activity diagrams.
What Ive done in Magic Draw so far: 1. Create a "Model" to store my model in 2. Create a UseCase, assign stereotypes FrontEndApplication & FrontEndUseCase to this UseCase 3. Within this UseCase create an Activity Diagram 4. Create a class, which will act as a controller, assign this class to the Activity Diagram used in the UseCase. Define an operation processInput(Input: datatype::String) : datatype:: Boolean) 5. Within this Activity Diagram Ive created a begin and a final state. Between these states I have modeled an action state with stereotype FrontEndView on which a user can enter information. 6. From this page, which will be displayed to the user, a transition is modeled to another action state, AnalyzeInput. This transition has a signal trigger named Submit with a parameter Input:datatype::String. This causes a textfield and a submit button to be rendered. 7. The action state AnalyzeInput has a transition into the decision point, which has a calling trigger, which defers to ProcessInput, as defined in the controllerclass, mentioned at step 4. 8. From the decision point, two transitions are modeled to two different pages with stereotype FrontEndView, one for an accepted input and one for a declined input. The accepted input has a guard true, the declined one has a guard false. 9. From these result pages, a simple Ok-button leads to the end-state. A "maven mda" command results in a successful build/validation of the model, but when I use "maven install" this results in a failed build, caused by the following error: D:projectsdecisiontestwebtargetsrcUsecasesAcquireInputSubmitFormImpl.java:7: cannot resolve symbol symbol : class ProcessInputForm location: class Usecases.AcquireInputSubmitFormImpl , ProcessInputForm ^ D:projectsdecisiontestwebtargetsrcUsecasesAcquireInputSubmit.java:69: cannot resolve symbol symbol : variable DecisioninputControllerFactory location: class Usecases.AcquireInputSubmit final java.lang.String value = java.lang.String.valueOf(DecisioninputControllerFactory.getDecisioninputControllerInst ance().processInput(mapping, (AcquireInputSubmitFormImpl)form, request, response)); ^ 2 errors BUILD FAILED What should I do to solve this problem, I already tried to always return false in the method proccessInput() defined in .websrcjavaClassesDecisioninputControllerImpl.java, which should result in conforming to the guard false. A minor second question. When Im deploying a project, the resulting .ear file is about 11MB, how can I determine which included packages are not necessary? For testing purposes it suffices to generate only JSP pages. _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3518#3518 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user