Flow_0ikhfhp Thank you for following our food ordering process. Hope now you have a good idea about the BPMN sub processes and Call Activities. ### Get Involved! Please get in touch with us! We would love to help you define your business processes. There is no end to what we can accomplish if we work together. Please reach out to Dan at [dan@sartography.com](mailto:dan@sartography.com) to get started. Flow_043v27k We have completed the Sub Process, below are the information we captured from activities in the sub process. Next, we will use a call activity to handle the payment process. Hello {{name}} Your Order is **Appetizers** {% for ap in appetizers %} {{ ap }} {% endfor %} **Soups** {% for sp in soups %} {{ sp }} {% endfor %} **Main Course** {% for mn in mains %} {{ mn }} {% endfor %} **Desserts** {% for ds in desserts %} {{ ds }} {% endfor %} Total Cost of your order is ${{cost}} appetizers = [] if bruschetta: appetizers.append("Bruschetta") if buffalo_wings: appetizers.append("Buffalo Wings") if onion_rings: appetizers.append("Onion Rings") soups = [] if chicken_noodle_soup: soups.append("Chicken Noodle Soup") if french_onion_soup: soups.append("FrenchOnion Soup") if roasted_pumpkin_soup: soups.append("Roasted Pumpkin Soup") if tom_yum_soup: soups.append("Tom Yum Soup") mains = [] if chicken_cordon_bleu: mains.append("Chicken Cordon Bleu") if vegetable_biryani: mains.append("Vegetable Biryani") if scallops_with_basil_risotto: mains.append("Scallops with Basil Risotto") if beef_lasagna: mains.append("Beef Lasagna") if turkey_enchilada: mains.append("Turkeyb Enchilada") desserts = [] if key_lime_pie: desserts.append("Key Lime Pie") if red_velvet_cake: desserts.append("Red Velvet Cake") if new_york_cheesecake: desserts.append("New York Cheesecake") if thai_mango_sticky_rice: desserts.append("Thai Mango Sticky Rice") if tiramisu: desserts.append("Tiramisu") cost = len(appetizers) * 5 + len(soups) * 12 + len(mains) * 15 + len(desserts) * 7 Flow_0smi6w4 Flow_0of7hx2 Hello {{name}} Thank you for your order. Your order reference number is 1106 **Appetizers** {% for ap in appetizers %} {{ ap }} {% endfor %} **Soups** {% for sp in soups %} {{ sp }} {% endfor %} **Main Course** {% for mn in mains %} {{ mn }} {% endfor %} **Desserts** {% for ds in desserts %} {{ ds }} {% endfor %} Your order will be delivered soon. Flow_0iiz32q Flow_043v27k ## Welcome to the Sub Process and Call Activity Example This process model will demonstrate the difference between a BPMN Sub Process and a Call Activity. **Sub Process** is a collection of flow objects, that are grouped to increase the readability and understanding of the process, by reducing the complexity. **Call Activity** simply reuses an already defined process to perform a predefined task. This process model takes you through the steps of ordering food items. First, enter your name in this form (which is a user task) Flow_0ikhfhp Flow_0ysk0b2 Flow_0ysk0b2 Flow_0smi6w4 Flow_0eww58z Flow_1ul5cqu Now we are inside the 'Select Food' sub process. This sub process is defined to compound all the tasks related to selecting food items. By creating this sub process, we hide the complexity of selecting individual food items, like appetizers, soups, etc. from the upper-level process. The first activity in the sub process is to select the Appetizers. Flow_0eww58z Flow_0fsaner The second activity in the sub process is to select the soup. > NOTE: As you step through this process - click on the "Process Instance Id: ##" in the breadcrumbs at the top of the page, and view the diagram. You will see it is keeping track of where you are. Click on the blue arrow icon of the sub process to go inside the sub process to view its' activities. >You can use the "Go" button to continue with the process. Flow_0fsaner Flow_105pv70 Flow_105pv70 Flow_06kwk3d This is the last activity of the subprocess. When you complete this activity it'll take you back to the main process. Flow_06kwk3d Flow_1ul5cqu Selecting different food items grouped together and created as a sub process This will reduce the complexity of the main diagram Flow_0of7hx2 Flow_0iiz32q User Tasks allow you to collect information from real people through web forms. Sub process is a collection of activities, that help us hide the complexity of the process flow and make it easier to understand. Call Activity is a way to reuse a separately defined process inside this process.  To open this diagram, select this task, then use the Properties Panel on the right and click the "Launch Editor" button under Called Activity.