This topic describes how the developer linked the four individual steps into a single process flow. The four steps include the following possible result codes:

The developer followed these steps to link the steps into a process flow:

  1. Create a Result Code Link between Step 1 (Check Rental Agreement Return Condition) and Step 2 (Create Service Ticket for Damage) for the DAMAGED result code.
  2. Create a Result Code Link between Step 1 (Check Rental Agreement Return Condition) and Step 3 (Check Rental Agreement Return Mileage) for the NEXT result code.
  3. Select Step 1 to load its Properties and click the Action Map tab.
  4. Add the FAILED result code for Step 1 with an Action of End Process.
    1. Click the Add Map button and enter FAILED (do not check the Success box).
    2. Set the Action to End Process.
    3. Enter FAILED for the Process Flow Result Code to tie this result to the Process Flow's results.
       
  5. Add the END result code for Step 1 with an Action of End Process.
    1. Click the Add Map button and enter END (also check the Success box, which this is a successful outcome).
    2. Set the Action to End Process.
    3. Enter SUCCESS for the Process Flow Result Code to tie this result to the Process Flow's results.

      Step 1's Action Map
  6. Create a Result Code Link between Step 2 (Create Service Ticket for Damage) and Step 3 (Check Rental Agreement Return Mileage) for the Success result code.
  7. Select Step 2 to load its Properties and click the Action Map tab.
  8. Configure the Failed result code for Step 2 with an Action of End Process and enter FAILED for the Process Flow Result Code to tie this result to the Process Flow's results.
  9. Create a Result Code Link between Step 3 (Check Rental Agreement Return Mileage) and Step 4 (Create Service Ticket for Service) for the SERVICE result code.
  10. Select Step 3 to load its Properties and click the Action Map tab.
  11. Add the END result code for Step 3 with an Action of End Process.
    1. Click the Add Map button and enter END (also check the Success box, which this is a successful outcome).
    2. Set the Action to End Process.
       
  12. Add the FAILED result code for Step 3 with an Action of End Process.
    1. Click the Add Map button and enter FAILED (do not check the Success box).
    2. Set the Action to End Process.
    3. Enter FAILED for the Process Flow Result Code to tie this result to the Process Flow's results.
       
  13. Select Step 4 to load its Properties and click the Action Map tab.
  14. Configure the Success result code for Step 4 with an Action of End Process and enter FAILED for the Process Flow Result Code to tie this result to the Process Flow's results.
  15. Configure the Failed result code for Step 4 with an Action of End Process and enter FAILED for the Process Flow Result Code to tie this result to the Process Flow's results.
  16. Save the Process Flow record.
  17. Create the Event Handler to fire this Process Flow for the BeforeCommitTransaction event when a Rental Agreements record is saved. See Creating Event Handler and Testing Process Pipeline.