Unit 8: Second Test 

Use

You start your workflow in dialog and two steps are executed. The notification of absence is created in the first step and then checked in the second.

Procedure

Starting the workflow and filling out the form

  1. If you are still in the Workflow Builder, choose .
  2. The Start Workflow (Test Environment) screen is then displayed. The number of your workflow is entered.

    If you are no longer in the Workflow Builder, choose Tools ® Business Workflow ® Development ® Runtime Tools ® Start Workflow (Test Environment). Enter the number of your workflow or use the F4 input help.

  3. Choose .

You go to the screen Create Notification of Absence.

From the requester’s perspective

When the workflow is started, the work item for creating the notification of absence is provided to you directly for processing. This is because of advancing with immediate dialog. You were introduced to this in the first test.

  1. Fill out the form and choose .

From the head of department's perspective

You created the step for checking the notification of absence in your workflow definition without specifying the agents responsible. This means that all of the possible agents of the single-step task are recipients of the work item. Since you occupy the position of both requester and head of department, you are automatically and immediately presented with the work item for approving the application. This is again because of advancing with immediate dialog.

As the superior, you have several options:

  1. Choose to cancel processing.

The Start Workflow (Test Environment) screen is then displayed again.

Exit this dialog and, if necessary, the Workflow Builder.

Reporting and analysis: Workflow outbox

In the first test of your workflow, you were introduced at this point to work item analysis. Now, you will be introduced to the workflow outbox.

Amongst other things, the work items which you started in dialog along with date, time and current status are displayed in the workflow outbox.

  1. Choose Tools ® Business Workflow ® Development ® Runtime Tools ® Business Workplace.
  2. In the tree displayed, choose Outbox ® Started workflows.
  3. Choose the arrow on the right next to the and then Today only.
  4. The work items for all the workflows you started today are then displayed. Note the statuses of the work items displayed in the Status column of the Business Workplace. Read the F1 help for the Status column.

  5. Position the cursor on the work item for the workflow just started. This work item has the status in process.
  6. From the current workflow data, you can see that the step Create notification of absence has been completed successfully, when that was, and who processed it. The work item has the status completed.

    You can also see that the work item representing the task for checking the request still has status ready and can therefore still be seen in the superior’s Business Workplace.

    Business Workplace - check notification of absence

    You now once again occupy the position of the superior who canceled processing earlier when the application was to be checked.

  7. In the tree, choose Inbox ® Workflow.
  8. The work items for you to process are displayed with their work item texts and certain other attributes.

    A preview of the selected work item is displayed below the list and contains the description of the work item.

  9. Select the work item for checking the notification of absence and choose .
  10. You go to the work item display. There you find amongst other things the description text, also with replaced text variables.

  11. Choose to return to the Business Workplace.
  12. Choose or start execution by double-clicking the entry.
  13. Either reject or approve the request. You should start the workflow twice and test each variant.

To check whether the workflow was completed correctly, go to your workflow outbox. The procedure is described above.

Result

Your workflow definition has now been tested and you can continue with the next unit.