Project execution
Now what happens when the user select the form Manage Services in the UMRA Forms application?
- A request is sent to the from the UMRA Forms application to the UMRA Service to generate and return the Manage Services form.
- The UMRA Service checks the access rights of the end-user and the Manage Services project is loaded by the UMRA Service and the form generation is initialized.
- As part of the Manage Services form generation process, the project Collect Services is loaded and the script is executed. Resulting variables (%ServicesTable%) are stored and passed to the form generation process.
- The form of the Manage Service project is generated. The table holds the data from the variable generated by the Collect Services project.
- The form is returned to the UMRA Forms application and shown.
- The user selects a service and presses one of the buttons.
- The selected service is stored in variable %ServiceName% and send with information of the pressed button to the UMRA Service.
- The UMRA Service checks the access rights of the end-user and the actions configured for the button are executed.
- The form of the Manage Services project is generated and returned to the UMRA Forms application. As part of the form generation process, the script of the Collect Services project is executed.
The following section shows the UMRA Service log file information for a complete session:
12:19:47 09/21/2005 Form message: '09/21/2005,12:19:47,"SSP\J. Vriens","Forms list",OK,N/A,"1 projects found for user 'SSP\J. Vriens'."'
12:19:49 09/21/2005 Executing form initialization project 'Collect Services'.
12:19:49 09/21/2005 Variable 1: %UmraFormSubmitAccount%=SSP\J. Vriens
12:19:49 09/21/2005 Getting services information from computer: 'COUNT'. Options: include services, exclude drivers, include non-stopped services and/or drivers, include stopped services and/or drivers, include configuration info.
12:19:49 09/21/2005 Form message: '09/21/2005,12:19:49,"SSP\J. Vriens","Form load",OK,"Manage services",'
12:19:54 09/21/2005 Variable 1: %ServiceName%=W3SVC
12:19:54 09/21/2005 Variable 2: %UmraFormSubmitAccount%=SSP\J. Vriens
12:19:54 09/21/2005 Variable 3: %ComputerName%=COUNT
12:19:54 09/21/2005 Variable 4: %ServicesTable%=Table with 96 rows
12:19:54 09/21/2005 Variable 5: %NowDay%=21
12:19:54 09/21/2005 Variable 6: %NowMonth%=09
12:19:54 09/21/2005 Variable 7: %NowYear%=2005
12:19:54 09/21/2005 Variable 8: %NowHour%=12
12:19:54 09/21/2005 Variable 9: %NowMinute%=19
12:19:54 09/21/2005 Variable 10: %NowSecond%=54
12:19:54 09/21/2005 Variable 11: %ServiceCommand%=RESTART
12:19:54 09/21/2005 If-Then-Else condition [Variable '%ServiceName%' (text) equals (case insensitive) value '' OR Variable '%ServiceName%' (text) has no value or does not exist] result is FALSE, continue script execution with next action.
12:19:54 09/21/2005 Jump to script action with label 'RESTART'.
12:19:54 09/21/2005 Executing command for service 'W3SVC' on computer 'COUNT': Restart service.
12:19:54 09/21/2005 Waiting 60 seconds for status completion.
12:19:56 09/21/2005 Service successfully 'restarted (stopped)'.
12:19:57 09/21/2005 Service successfully 'restarted (started)'.
12:19:57 09/21/2005 Jump to script action with label 'Ready'.
12:19:57 09/21/2005 Executing form initialization project 'Collect Services'.
12:19:57 09/21/2005 Variable 1: %ServiceName%=
12:19:57 09/21/2005 Variable 2: %UmraFormSubmitAccount%=SSP\J. Vriens
12:19:57 09/21/2005 Variable 3: %ComputerName%=COUNT
12:19:57 09/21/2005 Variable 4: %ServicesTable%=Table with 96 rows
12:19:57 09/21/2005 Variable 5: %NowDay%=21
12:19:57 09/21/2005 Variable 6: %NowMonth%=09
12:19:57 09/21/2005 Variable 7: %NowYear%=2005
12:19:57 09/21/2005 Variable 8: %NowHour%=12
12:19:57 09/21/2005 Variable 9: %NowMinute%=19
12:19:57 09/21/2005 Variable 10: %NowSecond%=54
12:19:57 09/21/2005 Variable 11: %ServiceCommand%=RESTART
12:19:57 09/21/2005 Getting services information from computer: 'COUNT'. Options: include services, exclude drivers, include non-stopped services and/or drivers, include stopped services and/or drivers, include configuration info.
12:19:57 09/21/2005 Form message: '09/21/2005,12:19:54,"SSP\J. Vriens","Form submit",OK,"Manage services"'
First, at 12:19:47, the forms are loaded into the UMRA Forms application. Then, starting at 12:19:49 the form of project Manage Services is generated. This includes the execution of project Collect Services. At 12:19:54 the web-service is selected from the list and the Restart submit button is pressed. The script of the Manage Services project is executed. At 12:19:54 the service is requested to stop. 2 seconds later, at 12:19:56, the service is stopped and started at 12:19:57. Next, the script of project Collect Services is executed as part of the form generation process of project Manage Service project. At 12:19:57 the form is returned to the UMRA Forms client application and the process is complete.
|