In the previous chapter, you completed the process definitions by adding connectors to send email and to manage calendar events. You have now created all the processes, forms, connectors, and pages used in the Tahiti application.
In this chapter, you will update the forms used in the Tahiti application processes so that the application page is displayed after a form is submitted. Next, you will update the application to include the final page. Finally, you will deploy the processes.
When you have updated the Tahiti application and deployed its processes, you will validate it in the development environment using a scenario that checks all the usage paths.
In this section, you will update the process forms so that after the user clicks Submit on a form, the Tahiti application page is displayed. If you do not do this, after a form is submitted the default page is displayed. This is the user’s task list in the Bonita BPM Portal. If the users do not use the Portal for other processes, displaying this page could be confusing, so it is better to specify a page.
First, you need to get the URL of the Tahiti application that you defined in the Portal:
http://localhost:8080/bonita/apps/tahiti/index/
(adjust 8080 to the port used by your running Studio)./bonita/apps/tahiti/index/
. Save this URL to add to the forms.Now that you have the URL, you can update the forms. There are three forms to update, newVacationRequestForm, reviewRequestForm, and cancellationReviewForm. For the newVacationRequestForm, follow these steps:
Now go back to the process diagram and select the Review request human task. Follow the same steps to open and update the reviewRequestForm form. For cancellationReviewForm, open the Tahiti-CancelVacationRequest process, go to the Review cancellation task, and update the form.
In “Add a Cancel Option to the Application Page” you created the final version of the Tahiti application home page, which you exported as a .zip archive. All you need to do to update the application is replace the previous page with this final version. Follow these steps:
You have now completed the updates to the Tahiti application.
You have updated the application to use the updated page. Next, you need to deploy the processes that are called by the application:
To do this, go the Bonita BPM Studio. Open each process diagram in turn and click Run in the top menu bar. If you are running a process for the first time since you updated it, there might be some configuration information that you need to provide, and this will be listed in an information message. You can check the configuration is complete manually before running a process, but it is usually quicker to rely on the Studio to check and report any problems.
For the Tahiti-InitiateVacationAvailable process, click the button in the displayed form so that the process runs to its conclusion. For the other processes, simply close the browser window where the form or the Portal is displayed. This deploys the process without running it.
The next section explains how to test the Tahiti application in your development environment.
In the previous section, you deployed the Tahiti vacation management application and its processes in your development environment. You have done some testing along the way to make sure that the individual components work, but now it’s time to test the whole application. This section outlines a test scenario that will validate almost every aspect of the application and the processes it contains.
There are three users in this scenario:
April and Walter are not managers. All three users have the same password, bpm
.
In this scenario, you need to use the Tahiti application as each user in turn, so you log in and log out several times using the Bonita BPM Portal. In a production system, you would probably access the application from your corporate intranet, which would handle the login, and you would not use the Bonita BPM Portal.
The three users log in to the Portal with the User profile, and then access the Tahiti application using the browser bookmark that you created earlier. Each user has 10 days of vacation available. To simplify checking, create all vacation requests for 1 day.
Follow these steps:
At the end of these steps, Helen’s vacation statement should show that she has 9 days available with one pending request, April has 8 days available with one pending request, and Walter has 9 and an outstanding cancellation request.
You have created the Tahiti vacation management application and validated that it works correctly in the development environment.
The next chapter contains some suggestions about how to test the application in a pre-production environment and prepare it for deployment. It also contains some suggestions to think about for future improvements to the application.
18.221.175.164