From: Eric C. <ecr...@us...> - 2006-09-25 19:08:25
|
User: ecrutchfield Date: 06/09/25 12:08:22 Modified: andromda-aspdotnet/src/main/resources/templates/aspdotnet/uicontrollers UIPController.cs.vsl Log: fix problem with final state transition logic Revision Changes Path 1.2 +10 -6 cartridges/andromda-aspdotnet/src/main/resources/templates/aspdotnet/uicontrollers/UIPController.cs.vsl Index: UIPController.cs.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-aspdotnet/src/main/resources/templates/aspdotnet/uicontrollers/UIPController.cs.vsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- UIPController.cs.vsl 17 Sep 2006 17:30:51 -0000 1.1 +++ UIPController.cs.vsl 25 Sep 2006 19:08:22 -0000 1.2 @@ -11,7 +11,7 @@ namespace $controller.packageName { /// <summary> -$controller.getDocumentation(" /// ") +$controller.getDocumentation(" /// ", 80, false) /// </summary> public abstract class $controller.name { @@ -40,7 +40,6 @@ /// </summary> public void StartUseCase() { - //TODO: instantiate form and populate HttpContext.Current.Response.Redirect(this.${stringUtils.capitalize(${controller.useCase.normalizedName})}()); } @@ -50,7 +49,7 @@ #region Abstract methods #foreach($operation in ${controller.operations}) /// <summary> -$operation.getDocumentation(" /// ") +$operation.getDocumentation(" /// ", 80, false) /// </summary> ${operation.formSignature}; @@ -86,21 +85,26 @@ #foreach ($action in $controller.useCase.actions) /// <summary> -$action.getDocumentation(" /// ") +$action.getDocumentation(" /// ", 80, false) /// </summary> public virtual string ${stringUtils.capitalize(${action.triggerName})}() { - //${toDoTag} How does the form get populated? +#if ($action.finalStateTarget) +#set ($targetUseCase = $action.target.targetUseCase) + $targetUseCase.controller.fullyQualifiedName nextController = new ${targetUseCase.controller.fullyQualifiedName}(); + return nextController.StartUseCase(); +#else string forward = String.Empty; ${action.fullyQualifiedFormImplementationName} form = this.${action.formImplementationPropertyName}; forward = #processTransition($action) this.${action.formImplementationPropertyName} = form; return forward; +#end } #foreach ($actionState in $action.actionStates) /// <summary> -$actionState.getDocumentation(" /// ") +$actionState.getDocumentation(" /// ", 80, false) /// </summary> private string ${actionState.actionMethodName}(#if (!$action.formFields.empty) $action.fullyQualifiedFormImplementationName form#end) { |