Three of my workflows have all halted and say waiting. They are waiting on the activity Script which is a C# script. This script does basic calculations not available in workflow. For example find and replace in string functions. There is no looping statements, only If statements.
There are no processes utilizing the CPU and these are only CPU based requests.
What is the name of the process that it is using to execute this code would be my first question.
Also how do I limit the time that workflow will wait for a script so that I can have the workflow either continue or throw an error.
A workflow waiting on a task to complete is a nightmare. I would rather have it blow up and throw an error than go into a waiting state while running calculations. At least someone can be notified if an error occurs. If the workflow is waiting on a user that is OK, the user knows it and can be notified.
//Claim Number String ClaimNum = GetTokenValue("PatternMatching_Claim Number").ToString(); if (ClaimNum.Length < 4 || ClaimNum.IndexOfAny(new char[] {'0','1','2','3','4','5','6','7','8','9'}) == -1) { SetTokenValue("PatternMatching_Claim Number", ""); } //Case Number String CaseNum = GetTokenValue("PatternMatching_Case Number").ToString(); if (CaseNum.Length < 4 || CaseNum.IndexOfAny(new char[] {'0','1','2','3','4','5','6','7','8','9'}) == -1) { SetTokenValue("PatternMatching_Case Number", ""); } //SSN String SSN = GetTokenValue("PatternMatching_SSN").ToString(); SSN = Regex.Replace(SSN, "[^0-9]", ""); if (SSN.Length == 9) { SSN = Regex.Replace(SSN, @"^(...)(..)(....)$", "$1-$2-$3"); SetTokenValue("PatternMatching_SSN", SSN); }