Difference between revisions of "Exercise 05: Building a Process Model"
From AgileApps Support Wiki
Wikieditor (talk | contribs) (Created page with "==Objectives== In this exercise, you create a new Process Model - a diagram that defines the steps needed to process an order. You define Process model elements to automate th...") |
Wikieditor (talk | contribs) (→Steps) |
||
Line 12: | Line 12: | ||
==Steps== | ==Steps== | ||
# Go to the '''Configuration''' page, under the '''Customization''' tile, click '''Objects'''. Navigate to '''Orders''' > '''Processes''' > '''New Process''' page. | # Go to the '''Configuration''' page, under the '''Customization''' tile, click '''Objects'''. Navigate to '''Orders''' > '''Processes''' > '''New Process''' page. | ||
#: The Process Model Editor opens in a separate browser window: | #: The Process Model Editor opens in a separate browser window:<br><br>[[File:Process_Model_Editor.png|800px]]<br><br> | ||
#:'''Note:''' Starting the Process Model Editor may take a few seconds. | #:'''Note:''' Starting the Process Model Editor may take a few seconds. | ||
# Use drag & drop to add a Start Event step from the palette to the design canvas: | # Use drag & drop to add a Start Event step from the palette to the design canvas:<br><br>[[File:PME_Start_Event.png|800px]]<br><br> | ||
# To automatically set the order status to pending, add a step of type '''Execute Rule Set''' after the '''Start''' event. | # To automatically set the order status to pending, add a step of type '''Execute Rule Set''' after the '''Start''' event.<br><br>[[File:PME_Execute_Rule_Set.png|800px]]<br><br> | ||
# Name the step '''Update Pending''' and click '''+''' to create a new Rule Set with the same name and with a description '''Change the status of the order to “pending”'''. Click '''Save'''. | # Name the step '''Update Pending''' and click '''+''' to create a new Rule Set with the same name and with a description '''Change the status of the order to “pending”'''. Click '''Save'''.<br><br>[[File:PME_New_Rule_Set.png]]<br><br> | ||
#:'''Note:''' We will not implement the Rule Set and its Business Rules now. You will add this in a later exercise. | #:'''Note:''' We will not implement the Rule Set and its Business Rules now. You will add this in a later exercise. | ||
# Connect the '''Start Event''' step to the '''Execute Rule Set''' step by clicking the '''Start Event''' step and dragging its connector arrow to the '''Execute Rule Set''' element. | # Connect the '''Start Event''' step to the '''Execute Rule Set''' step by clicking the '''Start Event''' step and dragging its connector arrow to the '''Execute Rule Set''' element.<br><br>[[File:PME_Update_Pending.png|300px]]<br><br> | ||
# Add a '''User Task''' step to the canvas. Name it '''Finish Order Setup''', provide a '''Due Date''' of '''4 hours''', assign it to the '''Individual Owner''', and specify '''Open''' for the '''Change status to''' option: | # Add a '''User Task''' step to the canvas. Name it '''Finish Order Setup''', provide a '''Due Date''' of '''4 hours''', assign it to the '''Individual Owner''', and specify '''Open''' for the '''Change status to''' option:<br><br>[[File:PME_User _Task.png|800px]]<br><br> | ||
# Add an '''Approval Step''' to the canvas. Name it '''Manager Approval''', provide a '''Due Date''' of '''2 hours''', assign it to the User’s manager by selecting the '''Individual Owner''' and '''Reports To''' for the '''Assigned to''' option. Check '''Comment required''' and set '''Change Status to''' to '''Resolved'''. | # Add an '''Approval Step''' to the canvas. Name it '''Manager Approval''', provide a '''Due Date''' of '''2 hours''', assign it to the User’s manager by selecting the '''Individual Owner''' and '''Reports To''' for the '''Assigned to''' option. Check '''Comment required''' and set '''Change Status to''' to '''Resolved'''.<br><br>[[File:PME_Approval_Step.png|800px]]<br><br> | ||
# Arrange and connect the steps so that your canvas looks as shown: | # Arrange and connect the steps so that your canvas looks as shown:<br><br>[[File:PME_Finish_Order_Setup_Manager_ Approval.png|500px]]<br><br> | ||
# It is good practice to save your work often: | # It is good practice to save your work often: | ||
## Since the Process Model will not be saved if there are any syntax errors, click the '''Check Syntax''' button to verify that there are no errors in your Process Model. You should see a message stating there are no errors: | ## Since the Process Model will not be saved if there are any syntax errors, click the '''Check Syntax''' button to verify that there are no errors in your Process Model. You should see a message stating there are no errors: | ||
##: '''Note:''' If you get a message stating that there are syntax errors, you must resolve them before you continue. | ##: '''Note:''' If you get a message stating that there are syntax errors, you must resolve them before you continue. | ||
## Save the Process as '''SouthEast Process Model''' with a description: | ## Save the Process as '''SouthEast Process Model''' with a description:<br><br>[[File:PME_Save_SouthEast_Process_Model.png|500px]]<br><br> | ||
## In case the process editor window was closed, click on a step in the process image to reopen the Process Model in its Process Model Editor and to continue with the exercise. | ## In case the process editor window was closed, click on a step in the process image to reopen the Process Model in its Process Model Editor and to continue with the exercise. | ||
# After the '''Manager Approval''' step, add a '''Decision Switch''' to continue the process flow depending on whether the manager approves or rejects the order. | # After the '''Manager Approval''' step, add a '''Decision Switch''' to continue the process flow depending on whether the manager approves or rejects the order.<br><br>[[File:PME_Manager_Approval.png|500px]]<br><br> | ||
# Add another '''Execute Rule Set''' step named '''Complete Order''' for when the manager approves the order. When configuring the step, create another empty Rule Set called '''Complete Order''' on the fly with a description '''Change the status of the order to “closed”'''. | # Add another '''Execute Rule Set''' step named '''Complete Order''' for when the manager approves the order. When configuring the step, create another empty Rule Set called '''Complete Order''' on the fly with a description '''Change the status of the order to “closed”'''. | ||
# Connect step '''Manager Approval''' to the '''Decision Switch'''. | # Connect step '''Manager Approval''' to the '''Decision Switch'''. | ||
# Connect the '''Decision Switch''' to the step '''Complete Order'''. | # Connect the '''Decision Switch''' to the step '''Complete Order'''. | ||
# Finally double-click on the connecting arrow leaving the Decision switch to open the Decision Switch dialog box. Configure the connection to be labeled as '''Approved''' with a branch condition of '''Approved equals Yes'''. | # Finally double-click on the connecting arrow leaving the Decision switch to open the Decision Switch dialog box. Configure the connection to be labeled as '''Approved''' with a branch condition of '''Approved equals Yes'''.<br><br>[[File:PME _Decision_Switch.png|800px]]<br><br> | ||
# Add an '''End Event''' step to the model and connect it to the '''Complete Order''' step: | # Add an '''End Event''' step to the model and connect it to the '''Complete Order''' step:<br><br>[[File:PME_Complete _Order.png|500px]]<br><br> | ||
# To define what happens if the manager rejects an order: | # To define what happens if the manager rejects an order: | ||
## Add a '''Send Email''' step to the left of the Decision Switch using the values shown. Name it '''Email Agent for Updates'''. Specify the '''Record Owner''' as Email recipient. For the '''Email Template''', click '''+''' to create a new Email Template named '''Agent Order Update''' with a Subject '''Need More Order Details''' on the fly. | ## Add a '''Send Email''' step to the left of the Decision Switch using the values shown. Name it '''Email Agent for Updates'''. Specify the '''Record Owner''' as Email recipient. For the '''Email Template''', click '''+''' to create a new Email Template named '''Agent Order Update''' with a Subject '''Need More Order Details''' on the fly.<br><br>[[File:PME_Send _Email.png|800px]]<br><br> | ||
## Connect the '''Decision Switch''' to the '''Send Email''' step from above. Double-click on the connecting arrow to open the Decision Switch dialog box. Configure the connection to be labeled as '''Rejected''' with a branch condition of '''Approved equals No'''. | ## Connect the '''Decision Switch''' to the '''Send Email''' step from above. Double-click on the connecting arrow to open the Decision Switch dialog box. Configure the connection to be labeled as '''Rejected''' with a branch condition of '''Approved equals No'''. | ||
## Now complete the process flow by connecting the Send Email step back to the '''Update Pending''' step: | ## Now complete the process flow by connecting the Send Email step back to the '''Update Pending''' step:<br><br>[[File:PME _Full_Process.png|800px]]<br><br> | ||
# Check the syntax and save the '''Process Model'''. | # Check the syntax and save the '''Process Model'''. | ||
#: As you save the '''Process Model''' for the second time, it will ask for a review comment. | #: As you save the '''Process Model''' for the second time, it will ask for a review comment. | ||
#: All changes are assigned to your '''SouthEast Process Model''' Process model. | #: All changes are assigned to your '''SouthEast Process Model''' Process model.<br><br>[[File:SouthEast_Process _Model.PNG|800px]] |
Revision as of 06:11, 12 December 2022
Objectives
In this exercise, you create a new Process Model - a diagram that defines the steps needed to process an order. You define Process model elements to automate the processing and control of the Orders Object. Here is the plan for the process flow:
- When a new Orders order is submitted by an Agent, automatically update the status of the order to Pending.
- Assign a task to the Agent (who created the order) to complete the order (for example, to add line items to it).
- When the Agent is finished with the order, assign the order to the Agent’s manager for approval.
- If the Manager:
- Approves the order, set the order status to Resolved.
- Rejects the order, send an email to the Agent requesting more information.
Steps
- Go to the Configuration page, under the Customization tile, click Objects. Navigate to Orders > Processes > New Process page.
- Use drag & drop to add a Start Event step from the palette to the design canvas:
- To automatically set the order status to pending, add a step of type Execute Rule Set after the Start event.
- Name the step Update Pending and click + to create a new Rule Set with the same name and with a description Change the status of the order to “pending”. Click Save.
- Note: We will not implement the Rule Set and its Business Rules now. You will add this in a later exercise.
- Connect the Start Event step to the Execute Rule Set step by clicking the Start Event step and dragging its connector arrow to the Execute Rule Set element.
- Add a User Task step to the canvas. Name it Finish Order Setup, provide a Due Date of 4 hours, assign it to the Individual Owner, and specify Open for the Change status to option:
- Add an Approval Step to the canvas. Name it Manager Approval, provide a Due Date of 2 hours, assign it to the User’s manager by selecting the Individual Owner and Reports To for the Assigned to option. Check Comment required and set Change Status to to Resolved.
- Arrange and connect the steps so that your canvas looks as shown:
- It is good practice to save your work often:
- Since the Process Model will not be saved if there are any syntax errors, click the Check Syntax button to verify that there are no errors in your Process Model. You should see a message stating there are no errors:
- Note: If you get a message stating that there are syntax errors, you must resolve them before you continue.
- Save the Process as SouthEast Process Model with a description:
- In case the process editor window was closed, click on a step in the process image to reopen the Process Model in its Process Model Editor and to continue with the exercise.
- Since the Process Model will not be saved if there are any syntax errors, click the Check Syntax button to verify that there are no errors in your Process Model. You should see a message stating there are no errors:
- After the Manager Approval step, add a Decision Switch to continue the process flow depending on whether the manager approves or rejects the order.
- Add another Execute Rule Set step named Complete Order for when the manager approves the order. When configuring the step, create another empty Rule Set called Complete Order on the fly with a description Change the status of the order to “closed”.
- Connect step Manager Approval to the Decision Switch.
- Connect the Decision Switch to the step Complete Order.
- Finally double-click on the connecting arrow leaving the Decision switch to open the Decision Switch dialog box. Configure the connection to be labeled as Approved with a branch condition of Approved equals Yes.
- Add an End Event step to the model and connect it to the Complete Order step:
- To define what happens if the manager rejects an order:
- Add a Send Email step to the left of the Decision Switch using the values shown. Name it Email Agent for Updates. Specify the Record Owner as Email recipient. For the Email Template, click + to create a new Email Template named Agent Order Update with a Subject Need More Order Details on the fly.
- Connect the Decision Switch to the Send Email step from above. Double-click on the connecting arrow to open the Decision Switch dialog box. Configure the connection to be labeled as Rejected with a branch condition of Approved equals No.
- Now complete the process flow by connecting the Send Email step back to the Update Pending step:
- Add a Send Email step to the left of the Decision Switch using the values shown. Name it Email Agent for Updates. Specify the Record Owner as Email recipient. For the Email Template, click + to create a new Email Template named Agent Order Update with a Subject Need More Order Details on the fly.
- Check the syntax and save the Process Model.