
Unit 5: First Test
Use
You are now going to start a workflow in dialog for the first time, which will run according to your workflow definition. This workflow definition only contains a step for creating a notification of absence so far.
For further information on starting workflows, refer to
Testing Workflows in the SAP Business Workflow documentation.Prerequisites
The creation of a notification of absence, which you carry out within your workflow, is reported on a system-wide basis by an event. Other workflows entered as event receivers for this event may therefore be started. The notification of absence created by you (and published by the event) is then also processed with these workflows.
This event is not used in connection with this tutorial.
To ensure that only you work exclusively with the notification of absence, you can deactivate any existing linkages between the event and its receivers. Proceed as follows:

If you carry out the following steps, you prevent other workflows being started unintentionally by your notification of absence.
However, you may interrupt other workflow demonstrations. Therefore, be careful and speak to the colleagues involved if necessary.
The Event Simulation screen is displayed.
.The system simulates the event FORMABSENC.Created and establishes which workflows would be started.
Event linkage.The Event linkage: Triggering events dialog box is displayed.
.The linkage between workflow and event is deactivated.
.Procedure
Starting the workflow and filling out the notification of absence
.The Test Workflow 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 ® Test Workflow. Enter your workflow ID or use the F4 input help.
.To handle work processes more quickly, SAP Business Workflow supports
advance with immediate dialog. When a workflow is started in dialog, this means that the first work item of the workflow is made available for processing immediately provided that the user who starts the workflow is also one of the recipients of this first work item. This is the case here because you entered the container element _WF_Initiator as the responsible agent in the step definition.The Create notification of absence screen, therefore, is displayed immediately where you can see the notification of absence. It is the method Create that is executed with the first work item.
.The Test Workflow screen is then displayed again.
and exit the Workflow Builder if necessary.Starting a workflow/Business Workplace
Before you extend your workflow definition, carry out the following test. It will familiarize you with the Business Workplace.
The Start Workflow screen is then displayed.
The workflow description is shown on the right.
The notification of absence is then displayed.
.You have now started the workflow but canceled the processing of its first step. But the processing of the work item is not yet completed. You have only broken the processing chain of advancing with immediate dialog.
Your workflow inbox now contains (at least) one work item for processing. This is the work item for creating a notification of absence, the processing of which you canceled previously. This work item has the status In process.
You return to the Create notification of absence screen where the notification of absence is displayed.
.The work item disappears from your workflow inbox.