From the course: SharePoint Designer 2010: Building Custom Workflows

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Creating error traps in workflows

Creating error traps in workflows

From the course: SharePoint Designer 2010: Building Custom Workflows

Start my 1-month free trial

Creating error traps in workflows

Error trapping is a programming discipline that you use to build workflows that are really strong, and that account for every possibility, even if it should never exist. This is an example, and it's easy to understand because I'm talking about credit cards. However, you would never build this application. The laws around credit card processing are so fierce these days that you are not going to create a credit card processing application inside of SharePoint. However, we might want to go take a look and say, you know, is this American Express MasterCard or Visa for a purpose other than processing? So here are our three possible credit cards, but the business has just made a decision to also take Discover cards, and because our workflow was written when we didn't take Discover cards, we could go a long time allowing people to make free purchases. There they are using their Discover card, and we don't have a way to process it because we're processing American Express, MasterCard, Visa…

Contents