Table of Contents

Search

  1. Preface
  2. Understanding Data Types and Field Properties
  3. Designing Processes
  4. Using and Displaying Data
  5. Designing Guides
  6. Designing Process Objects
  7. Designing Service Connectors
  8. Using App Connections
  9. System Services, Listeners and Connectors
  10. Designing Human Tasks

Design

Design

Methods to Return a Fault from a Process

Methods to Return a Fault from a Process

  1. Use an output
    . This is suitable when you foresee that the error might occur and you want to use a data decision step to branch the process based on the normal process flow.
  2. Throw a fault
    . This is suitable when the only appropriate response to the error is to pass the error up to the caller or log the error and suspend the process. For example, if you attempt to access a web service that responds with the HTTP status code, 403 Forbidden, it indicates that the service understood the request but refuses to take any action, because access is denied. Throwing a fault is normally the best option to handle this error because you are unlikely to resolve it in the normal process flow.

Throw Step Usage

When you add a Throw step to a process, the error information is propagated by the Throw step. This allows you to catch the fault when you call it, for example, through a Subprocess step.
Note that:
  1. The name must be a string value.
  2. Throw is a terminating step so it does not support any outbound links.
  3. A Throw step can be used to rethrow information caught using a fault handler. In that case, the payload for the step is a faultInfo element that contains the parameters returned by the service, service connector, or SOA connector.
  4. You can also use a Throw step to construct specific fault information that you want to use as part of your process.

0 COMMENTS

We’d like to hear from you!