Chapter 7. Executing the pizzaPlace order process

Now that you have deployed the project, you can execute the project’s defined functionality. For this example, you will be acting as the customer (Bill) and fill out the pizza order form. The pizza place employee (Katy) will add the order price and send the order confirmation to your task inbox.

Prerequisites

Procedure

  1. Log in to Business Central as the customer:

    • Username: Bill
    • Password: bill
  2. Click MenuManageProcess Instances.
  3. Click New Process Instance, select pizzaPlace.pizzaOrders from the Process definition menu, and click Start.
  4. Type the following values:

    • Pizza: Large pizza
    • Extra Ingredients: Anchovies
    • Drink: Beer

      Figure 7.1. Input the order information

      Inputting the order information in to the order form
  5. Click Submit to start the process instance. After starting the process instance, the Manage Process Instances view opens.
  6. Click anywhere in the pizzaOrders row to view the process details.

    Figure 7.2. View the process details

    Viewing the process details in the Manage Process Instances view
  7. Click the Diagram tab to view the process flow within the process diagram. The state of the process will be highlighted as it moves through each task.

    Figure 7.3. View the process flow

    Viewing the process flow in the process diagram
  8. Log out and log back in again to Business Central as the employee:

    • Username: Katy
    • Password: katy
  9. Click MenuTrackTask Inbox. This will take you to the order form. This is the form that the pizza place employee (Katy) will take ownership of and return an order confirmation containing the order price.
  10. Click anywhere in the Task row to open the order form.
  11. Click Start, type the order total in the Price field, and click Complete.

    Figure 7.4. Adding the order total price

    Employee adds the order total to be returned to the customer
  12. Log out and log back in again to Business Central as the customer:

    • Username: Bill
    • Password: bill
  13. Click MenuTrackTask Inbox. This will take you to the order confirmation form containing the order’s total price.