|
| 1 | +--- |
| 2 | +title: Create business processes |
| 3 | +description: Model a business process to visualize and map transactions to Azure resources, such as Standard workflows in Azure Logic Apps. |
| 4 | +ms.service: azure-business-process-tracking |
| 5 | +ms.topic: how-to |
| 6 | +ms.reviewer: estfan, azla |
| 7 | +ms.date: 06/07/2024 |
| 8 | + |
| 9 | +# CustomerIntent: As a business analyst or business SME, I want a way to visualize my organization's business processes so I can map them to the actual resources that implement these business use cases and scenarios. |
| 10 | +--- |
| 11 | + |
| 12 | +# Create a business process to add business context about Azure resources using Azure Business Process Tracking (Preview) |
| 13 | + |
| 14 | +> [!NOTE] |
| 15 | +> |
| 16 | +> This capability is in preview and is subject to the |
| 17 | +> [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/). |
| 18 | +
|
| 19 | +To add business context around the Azure resources in an integration solution, you can visualize business processes flows for the tasks implemented by these resources. In Azure Business Process Tracking, a business process is a series of stages that represent the tasks that flow through a real-world business scenario. This business process also specifies a single business identifer or *transaction ID*, such as a ticket number, order number, case number, and so on, to identify a transaction that exists across all the stages in the business process and to correlate those stages together. |
| 20 | + |
| 21 | +When you add a stage to your business process, you can also define other business property values to capture as data moves through each stage. You can then later map the transaction ID and other properties to specific operations and data outputs in Standard logic app workflows. For more information, see [What is Azure Business Process Tracking](overview.md)? |
| 22 | + |
| 23 | +For example, suppose you're a developer or business analyst at a power company. Your company's customer service team has the following business process to resolve a customer ticket for a power outage: |
| 24 | + |
| 25 | +:::image type="content" source="media/create-business-process/business-process-stages-example.png" alt-text="Conceptual diagram shows example power outage business process stages for customer service at a power company." lightbox="media/create-business-process/business-process-stages-example.png"::: |
| 26 | + |
| 27 | +After you create a **Business Process** resource in Azure, you can use the process editor to create a flow chart that visually describes this business process, for example: |
| 28 | + |
| 29 | +:::image type="content" source="media/create-business-process/business-process-stages-complete.png" alt-text="Screenshot shows process editor for Azure Business Process Tracking." lightbox="media/create-business-process/business-process-stages-complete.png"::: |
| 30 | + |
| 31 | +> [!NOTE] |
| 32 | +> |
| 33 | +> Although this example shows a sequential business process, your process can have parallel branches to represent decision paths. |
| 34 | +
|
| 35 | +After you define a business process, you can then map each stage to actual Azure resources. |
| 36 | + |
| 37 | +> [!NOTE] |
| 38 | +> |
| 39 | +> In this release, you can only map business process stages to Standard logic app resources and their workflows in Azure Logic Apps. |
| 40 | +
|
| 41 | +## Prerequisites |
| 42 | + |
| 43 | +- An Azure account and subscription. If you don't have an Azure subscription, [sign up for a free Azure account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F). |
| 44 | + |
| 45 | + > [!NOTE] |
| 46 | + > |
| 47 | + > If you're using an [Azure integration environment and application groups](../integration-environments/overview.md) |
| 48 | + > to organize your Azure resources, and you want to map your business process to Azure resources in your |
| 49 | + > integration environment, all your Azure resources must use the same subscription, including your business |
| 50 | + > processes and integration environment. If you're not using an Azure integration environment, you can map |
| 51 | + > your business process to Azure resources where you have access. |
| 52 | +
|
| 53 | +- An existing or new [Azure Data Explorer cluster and database](/azure/data-explorer/create-cluster-and-database) |
| 54 | + |
| 55 | + This Azure resource is required to create, deploy, and store specified data in a business process. Your business process uses this database to store the transactions and business property values that you want to capture as real-time data moves through your workflows at run time. When you create a business process, you specify the cluster, database, and table to use for storing the data that you want. |
| 56 | + |
| 57 | + > [!NOTE] |
| 58 | + > |
| 59 | + > Although Azure Business Process Tracking doesn't incur charges during preview, Azure Data |
| 60 | + > Explorer incurs charges, based on the selected pricing option. For more information, see |
| 61 | + > [Azure Data Explorer pricing](https://azure.microsoft.com/pricing/details/data-explorer/#pricing). |
| 62 | +
|
| 63 | +<a name="create-business-process"></a> |
| 64 | + |
| 65 | +## Create a business process |
| 66 | + |
| 67 | +1. In the [Azure portal](https://portal.azure.com) search box, enter and select **Business Process Tracking**. |
| 68 | + |
| 69 | + :::image type="content" source="media/create-business-process/select-business-process-tracking.png" alt-text="Screenshot shows Azure portal search box with business process tracking entered." lightbox="media/create-business-process/select-business-process-tracking.png"::: |
| 70 | + |
| 71 | +1. On the **Business Process Tracking** toolbar, select **Create**. |
| 72 | + |
| 73 | +1. On the **Create business process** page, on the **Basics** tab, provide the following information: |
| 74 | + |
| 75 | + | Property | Required | Value | Description | |
| 76 | + |----------|----------|-------|-------------| |
| 77 | + | **Subscription** | Yes | <*Azure-subscription*> | The Azure subscription to use for your business process. | |
| 78 | + | **Resource group** | Yes | <*Azure-resource-group-name*> | A new or existing Azure resource group. <br><br>This example uses **City-Power-and-Light-RG**. | |
| 79 | + | **Business process name** | Yes | <*process-name*> | A name for your business process. Use only alphanumeric characters, hyphens, underscores, parentheses, or periods. <br><br>This example uses **Resolve-Power-Outage**. | |
| 80 | + | **Description** | No | <*process-description*> | The purpose for your business process. | |
| 81 | + | **Region** | Yes | <*Azure-region*> | The Azure region for your business process. | |
| 82 | + |
| 83 | + The following example shows the information for the sample business process: |
| 84 | + |
| 85 | + :::image type="content" source="media/create-business-process/business-process-details.png" alt-text="Screenshot shows page for Create business process with Basics tab selected." lightbox="media/create-business-process/business-process-details.png"::: |
| 86 | + |
| 87 | +1. When you're done, select **Next: Transaction ID**. On the **Transaction ID** tab, provide the following information: |
| 88 | + |
| 89 | + | Property | Required | Value | Description | |
| 90 | + |----------|----------|-------|-------------| |
| 91 | + | **Transaction ID** | Yes | <*transaction-ID*> | This important and unique ID identifies a transaction, such as an order number, ticket number, case number, or another similar business identifier that's available across all stages in your business process. <br><br>This example uses the transaction ID named **TicketNumber** to correlate events across the different systems in the example business process, which include CRM, Work Order Management, and Marketing. <br><br>**Note**: Azure Business Process Tracking automatically includes and records the transaction timestamp so that you don't have to separately add this value. Although you can define only a single transaction ID when you create a business process, you can later define other business properties in each stage that you want to record. | |
| 92 | + | **Data type** | Yes | <*transacton-ID-data-type*> | The data type for your transaction ID: **String** or **Integer**. <br><br>This example uses the **Integer** data type. | |
| 93 | + |
| 94 | + The following example shows the sample transaction ID: |
| 95 | + |
| 96 | + :::image type="content" source="media/create-business-process/define-transaction-id.png" alt-text="Screenshot shows page for Create business process page with Transaction ID tab selected." lightbox="media/create-business-process/define-transaction-id.png"::: |
| 97 | + |
| 98 | +1. When you're done, select **Next: Data storage**. On the **Data storage** tab, provide the following information: |
| 99 | + |
| 100 | + | Property | Required | Value | Description | |
| 101 | + |----------|----------|-------|-------------| |
| 102 | + | **Subscription** | Yes | <*Azure-subscription*> | The Azure subscription for your Data Explorer instance. | |
| 103 | + | **Cluster** | Yes | <*cluster-name*> | The name for the cluster in your Data Explorer instance. | |
| 104 | + | **Database** | Yes | <*database-name*> | The name for the database in your Data Explorer instance. | |
| 105 | + | **Table** | Yes | <*table-name*> | The name for the table to create or use. To update an existing table, select the option to **Use an existing table**. <br><br>**Note**: Although you can use the same name as an existing table, which updates that table, for security purposes, create a unique and separate table for each business process. This practice helps you avoid mixing sensitive data with non-sensitive data and is useful for redeployment scenarios. | |
| 106 | + | **Use an existing table** | No | Enabled or disabled | To update an existing table, select this option. | |
| 107 | + |
| 108 | +1. When you're done, select **Create**. |
| 109 | + |
| 110 | + After the Azure portal completes deployment for your new **Business Process** resource, the portal automatically opens the resource's **Overview** page. |
| 111 | + |
| 112 | +1. Now, continue on to add the stages for your business process. |
| 113 | + |
| 114 | +<a name="add-stage"></a> |
| 115 | + |
| 116 | +## Add a business process stage |
| 117 | + |
| 118 | +After you create your business process, add the stages for that process. For example, suppose you're an integration developer at a power company. You manage a solution for a customer work order processor service that's implemented by multiple Standard logic app resources and their workflows. Your customer service team follows the following business process to resolve a customer ticket for a power outage: |
| 119 | + |
| 120 | +:::image type="content" source="media/create-business-process/business-process-stages-example.png" alt-text="Conceptual diagram shows example power outage business process stages for customer service at a power company." lightbox="media/create-business-process/business-process-stages-example.png"::: |
| 121 | + |
| 122 | +1. In the [Azure portal](https://portal.azure.com), open your business process resource, if not already open. |
| 123 | + |
| 124 | +1. On the resource menu, under **Business process tracking**, select **Editor**. |
| 125 | + |
| 126 | +1. In the editor, select **Add stage**. |
| 127 | + |
| 128 | + :::image type="content" source="media/create-business-process/add-stage.png" alt-text="Screenshot shows business process editor with Add stage selected." lightbox="media/create-business-process/add-stage.png"::: |
| 129 | + |
| 130 | +1. On the **Add stage** pane, provide the following information: |
| 131 | + |
| 132 | + > [!TIP] |
| 133 | + > |
| 134 | + > To quickly draft the stages in your business process, just provide the stage |
| 135 | + > name, select **Add**, and then return later to provide the remaining values |
| 136 | + > when you [map the business process to a Standard logic app workflow](map-business-process-workflow.md). |
| 137 | +
|
| 138 | + | Property | Required | Value | Description | |
| 139 | + |----------|----------|-------|-------------| |
| 140 | + | **Stage name** | Yes | <*stage-name*> | The name for this process stage. Use only alphanumeric characters, hyphens, underscores, parentheses, or periods. | |
| 141 | + | **Description** | No | <*stage-description*> | The purpose for this stage. | |
| 142 | + |
| 143 | + This example creates a stage named **Create_ticket**: |
| 144 | + |
| 145 | + :::image type="content" source="media/create-business-process/add-stage-quick.png" alt-text="Screenshot shows pane named Add stage with stage name, description, and properties to track." lightbox="media/create-business-process/add-stage.png"::: |
| 146 | + |
| 147 | + In the **Properties to track** table, on the **Success** tab, your previously defined transaction ID is automatically included. This value is required for correlation across stages and workflows. |
| 148 | + |
| 149 | + On the **Success** and **Failure** tabs, you can optionally define and map other business property values that you want to record. You can use these property values to correspondingly identify a successful or failed stage, which is left entirely to your interpretation, business scenarios, or needs. |
| 150 | + |
| 151 | + - **Success** tab: Define and map other business property values to identify and record from a successful stage. |
| 152 | + |
| 153 | + - **Failure** tab: Define and map other business property values to identify and record from a failed stage. |
| 154 | + |
| 155 | + To define other business property values to use for this stage, follow these steps: |
| 156 | + |
| 157 | + 1. Under **Properties to track**, select **Success** or **Failure** as appropriate. |
| 158 | + |
| 159 | + 1. Under the **Properties to track** table, select **Add property**. |
| 160 | + |
| 161 | + 1. Enter the property name and type, which is either a **String** or **Integer**. |
| 162 | + |
| 163 | + For example, this stage specifies a few more properties, such as **CustomerName**, **CustomerEmail**, and **CustomerPhone**, to record from a successfully completed stage: |
| 164 | + |
| 165 | + :::image type="content" source="media/create-business-process/add-properties.png" alt-text="Screenshot shows pane named Add stage with stage name, description, and more properties to track." lightbox="media/create-business-process/add-properties.png"::: |
| 166 | + |
| 167 | +1. When you're done, select **Add stage**. |
| 168 | + |
| 169 | + Now, you can continue adding more stages or [map each business property in your stage to the respective operation and outputs in a Standard logic app workflow](map-business-process-workflow.md). |
| 170 | + |
| 171 | +1. To add another stage, choose one of the following options on the process editor: |
| 172 | + |
| 173 | + - Under the last stage, select the plus sign (**+**) for **Add a stage**. |
| 174 | + |
| 175 | + - Between stages, select the plus sign (**+**), and then select either **Add a stage** or **Add a parallel stage**, which creates a branch in your business process. |
| 176 | + |
| 177 | + > [!TIP] |
| 178 | + > |
| 179 | + > To delete a stage, open the stage's shortcut menu, and select **Delete**. |
| 180 | +
|
| 181 | +1. Repeat the preceding steps to add another stage as needed. |
| 182 | + |
| 183 | + The following example shows a completed business process: |
| 184 | + |
| 185 | + :::image type="content" source="media/create-business-process/business-process-stages-complete.png" alt-text="Screenshot shows process editor with completed business process stages." lightbox="media/create-business-process/business-process-stages-complete.png"::: |
| 186 | + |
| 187 | +1. When you're done, on the process editor toolbar, select **Save**. |
| 188 | + |
| 189 | +1. Now, continue on to [map each business property to the respective operation and outputs in a Standard logic app workflow](map-business-process-workflow.md) so that you can get insights about your deployed resource. |
| 190 | + |
| 191 | +## Next step |
| 192 | + |
| 193 | +> [!div class="nextstepaction"] |
| 194 | +> [Map a business process to a Standard logic app workflow](map-business-process-workflow.md) |
0 commit comments