Using Conditions to Control the Process Flow

Objectives

After completing this lesson, you will be able to:

  • Create and configure process conditions
  • Create a Process Condition and adjust the process flow

Using Conditions to Control the Flow in an Overview

Introduction

Sometimes a process is not only a sequential flow of steps, but it branches down one path or another based on the business situation. In this lesson, you will learn how to add a process condition that routes the business process based on certain criteria. These conditions apply an 'If/Else rule', and the business process responds according to the rules defined in the condition settings of the process. Therefore, when the 'If' expression has the definition of a condition, the 'Else' expression holds the instruction about what to do if the condition is not met.

With SAP Build Process Automation, you can automate your process to take different conditional routes without writing a single line of code. Now we will show you how to do that. You will use process conditions to get rid of unnecessary approvals by routing the process for auto-approval, or for a one-step-approval flow, based on the sales order criteria. For example, a sales order less than a certain value such as 50,000, does not need approval, and all other sales orders will undergo one-level approval.

Creating and Configuring a Process Condition

Watch the following video to learn more:

Now that you have designed a process with forms and automation, let's define which process flow should run based on the If/Else conditions that decide which process flow is executed and whether there will be an auto-approval or a one-step approval route.

Create a Process Condition and Adjust the Process Flow

Business Scenario

You will learn how to use process conditions in a business process to get rid of unnecessary approvals when the process is routed for an auto-approval or one-step-approval flow, based on the sales order criteria.

A process condition routes the business process based on certain criteria. These conditions apply an If/Else rule to the process content, and respond according to the rules defined as settings in the process builder.

To learn more about how to create a process condition and adjust the process flow, follow this interactive tutorial.

Exercise Options

To start the exercise, choose Start Exercise in the figure below.

A pop-up opens. You have the following options:

  • Choosing Start: the simulation starts. Follow the simulation to learn how to create a process condition and adjust the process flow.
  • Choosing Open PDF Document: a PDF opens. Based on the steps described in this document, you can perform the exercise in your own system landscape.

Steps

  1. Create a process condition and adjust the process flow.

    1. Choose Add Process Step.

    2. Choose Controls and Events.

    3. Choose Condition.

    4. Choose Open Condition Editor.

    5. Choose Process Content.

    6. From the Process Content drop-down list, choose Order Amount.

    7. Open the is equal to list.

    8. Choose is less than.

    9. In the Order Amount field, enter 100000KM SERVICE.

    10. Choose Apply.

    11. Choose Open Condition Editor.

    12. Choose Add Group.

    13. Choose Any.

    14. Choose Process Content.

    15. Select the scroll bar to scroll down.

    16. From the Process Content list, choose Shipping Country.

    17. In the Value field, enter India.

    18. Choose Process Content again.

    19. Select the scroll bar to scroll down.

    20. From the Process Content list, choose Shipping Country.

    21. In the Value field, enter Germany.

    22. Select the scroll bar to scroll down.

    23. To expand the Panel Expand pane, choose the arrow.

    24. Select the scroll bar to scroll down.

    25. Choose Apply.

    26. Choose Close side panel.

    27. Choose Add Process Step.

    28. Choose Form.

    29. Choose Blank Form.

    30. In the Name field, enter Auto Approval Notification.

    31. In the Description field, enter Notification form to in form auto approval of the sales order.

    32. Choose Create.

    33. Choose More Options.

    34. Select Open Editor.

    35. Choose Heading.

    36. In the New Headline field, enter Automatic Order Confirmation.

    37. Choose Paragraph.

    38. In the New Paragraph field, enter Your order has been received and we will send you the details as soon as the order is shipped. You can find the details of your order below. Please review and verify your request:.

    39. Choose Paragraph.

    40. In the New Paragraph field, enter Your Sale's Order Details:.

    41. Choose Text.

    42. In the New Text field, enter Order Number.

    43. Select Read Only.

    44. Choose Number.

    45. In the New Number field, enter Order Amount.

    46. Select Read Only.

    47. Choose Date.

    48. In the New Date field, enter Expected Delivery Date.

    49. Select Read Only.

    50. Choose Paragraph.

    51. In the New Paragraph field, enter Please press the Submit button to acknowledge the order status..

    52. Choose Save.

    53. Choose Order Processing.

    54. Choose Auto Approval Notification.

    55. In the Subject field, enter Your order has been successfully received.

    56. Choose Order Number.

    57. Select the scroll bar to scroll down.

    58. Choose Users.

    59. From the Process Content pane, choose Process Started By.

    60. Choose Inputs.

    61. From the Auto Approval Notification pane, choose Expected Delivery Date.

    62. From the Process Content pane, choose Expected Delivery Date.

    63. From the Auto Approval Notification pane, choose Order Amount.

    64. From the Process Content pane, choose Order Amount.

    65. From the Auto Approval Notification pane, choose Order Number.

    66. From the Process Content pane, choose Order Number.

    67. Choose Close side panel.

    68. Choose Add Process Step (the + icon).

    69. Choose Controls and Events.

    70. Choose End.

    71. Choose Zoom Out.

    72. Choose Zoom Out again.

    73. Choose Zoom Out again.

    74. Choose Zoom Out again.

    75. Choose Save.

Result

You have now successfully created a process condition and adjusted the process flow.

Log in to track your progress & complete quizzes