Step 4: Managing Task Instances Using Worklist Console
This section describes how to use the Worklist Console to modify a task in the Loan_Web project. The key objectives for this section are:
Log in with administrator rights
Re-assign a pending task
Validate the update using the Worklist User Portal
This section is an extension of the previous section, and relies on its environment. So, it is assumed that you have the Loan Application open in Workshop for WebLogic Platform, and the myworklist server is up and running.
Update the Application Using Worklist Console
Perform the following steps to log in and re-assign a task:
Open a Web browser and enter the following URL to open the WebLogic Integration Management Console:
Alternatively, select RunWebLogic IntegrationWorklist Console to open the WebLogic Integration Management Console in the Workshop for WebLogic Platform IDE.
Use the following credentials to log in to the Worklist Console, with administrator rights:
Click View Tasks for the Loan_EAR Worklist System Instance as shown in Figure 3. Worklist Application Management: Worklist System Instance Page
As a user with administrator rights, you can view all the Worklist Instance details at any given point. After clicking View Tasks, the page is refreshed and all the tasks in the Loan_EAR project are listed in the Task Summary page.
In the Task Summary page, select the task from the list by clicking the check box adjacent to the task name. This task has been claimed by Mary, as shown in Figure 5-2.
Figure 5-1 Worklist Application Management: Task Summary Page for the Loan_EAR Project
Select Reactivate from the dropdown menu in Apply this action on selected tasks and click Submit.
Click OK to proceed.
Selected action REACTIVATE executed successfully dialog appears in the Tasks Summary - Loan_EAR page.
Since Mary, rejected the loan in the previous chapter, you have to activate the task.
Click Assign to update the task with the intent to re-assign it to user weblogic.
At this point, if you log in to the Worklist User Portal as weblogic, you will notice that there are no tasks assigned to you. After completion of this section, the list of tasks assigned should be updated to reflect re-assignment of the task selected in Figure 5-2.
In the refreshed page, move weblogic from the Users list to the Selected Users list, and Administrators from the Group list to the Selected Groups list (see Figure 5-3).
Figure 5-2 Assign Task to User weblogic
Click Assign to complete this task and the refreshed page displays the Task Summary page. As highlighted in Figure 5-4, the task has been updated as the Claimant field is empty. This task was claimed by Mary prior to this re-assignment exercise.
Figure 5-3 Updated Task Summary Page
Click Logout to close the Worklist Console and proceed to the next section, validating the re-assignment.
Verify Updated Application in Worklist Portal
After completing the re-assignment task, verify if the task has been assigned to the user weblogic using Worklist Portal.
Start a new session of the loan web project in a Web browser using the URL:
Log in to the portal using the following credentials:
Click Login to display the Task home page for user weblogic, as shown in Figure 5-4.
Figure 5-4 View Task Home Page for User weblogic
The task instance Car loan for Maggie May is now displayed in your Assigned Tasks portlet.