9. Test the Hello World application

Now that you have extended your Hello World application, it's time to test the changes!

  1. Check in any views or forms that are checked out. Navigate to the Hello World list and add a new item. Wait for five minutes and verify that you receive an email reminding you to complete the task.
    1. From the Application page, check in any views or forms that are checked out.
      During the workflow deployment, the product injects rules into forms where necessary. For example, if you created a new state from the task wizard, the product must create the state on the associated form. For the form edits to take place, the form must be checked out. The product checks the form out as part of the deployment process. In some cases, the form does not check back in automatically, so you must check it in manually.
    2. Navigate to the Hello World list, then add a new item. Notice that you are now using the customized SmartForm to capture the new item (where you only need to add the Title since you removed the response and reply-date controls). Enter a Title and click Save.
      Hello World SmartForm
    3. You should see the message that you configured. Click OK to close the dialog.
      Message Box
    4. Open your email client. Wait for five minutes, then confirm that you receive the reminder email asking you to complete the outstanding task.
      Reminder Email
  2. As the originator of the request, complete the task with the Say Hello action. When you open the form, verify you can see the Hello World List Items tab, and the tabbed form loads the list items when opened. On the Hello World list, verify the Response column is still empty.
    1. Locate the task notification email for the item you just added. Click the worklist item link to open the task form.
      Worklist Item Link in Email
    2. The Display Hello World form loads. At the top of the form is the Workflow view that the product adds to task forms. This view contains the instructions and a drop-down list of actions you can chose from. On the bottom half of the form is your Display Hello World tabbed views. Click the HELLO WORLD LIST ITEMS tab. The List Hello World form launches and displays a list of all records from the Hello World list. Notice the count aggregate shows the total number of list items.
      Tabbed Form
    3. In the Workflow section, select Say Hello from the Select Action drop-down list, then Submit the form. Click OK for the confirmation dialog. Close the browser window.
      Select Action
    4. Return to the Hello World list and refresh the page. Verify the list item has not updated with the response. This is because the workflow is still waiting for the second recipient’s decision.
  3. Now, you will action the task as the second recipient. Ask your co-worker to open their email client and complete the task for you. Reply to the task notification email with Say Hello.
    1. Ask the second recipient to complete the task with the Say Hello action.
    2. Locate the task notification email, then reply to the email with
      Say Hello
      as the message body. Close Bob's browser.
      Reply to Email
    3. Return to the Hello World list and refresh the page. Notice now, the line item displays a response. This is because both recipients responded with Say Hello!
      Hello World List
Review

In this step, you tested the extended version of the Hello World for SharePoint application. By switching to SmartForms, you can edit the forms and customize them for your needs. This makes for a cleaner, easier to use interface. You added a message that gives you a confirmation that the form submitted successfully. Finally, you learned about using multiple task recipients and how the workflow waits until all recipients have actioned their tasks. In the next optional step, you learn how to clean your environment by deleting artifacts no longer needed.

Next Step: 10. (Optional) Clean up your environment by deleting the application artifacts