Why does the Process Call shape have multiple return paths?

Document created by anton_serbanescu Employee on Sep 3, 2014Last modified by Adam Arrowsmith on Jan 3, 2017
Version 4Show Document
  • View in full screen mode

Issue

You have a main process with a Process Call shape. There are multiple return paths from the process shape but only one is expected.

 

Solution

This is expected behavior (see Return Documents shape). A Process Call shape will have a return path for each Return Documents shape present in the subprocess. This allows you to use different Return Documents shapes in the subprocess to represent different possible outcomes. The Return Documents shape labels are used as the return path labels.

 

For example, you could design the subprocess to encapsulate error handling or validation logic and send documents to one of two Return Document shapes labeled as "Valid" and "Rejected". The main process then can simply handle each path appropriately.

 

Subprocess:

 

Main Process:

Attachments

    Outcomes