public static WfStatus DbValue(short status) { WfStatus value = WfStatus.Unknown; switch (status) { case 0: value = WfStatus.Unknown; break; case 1: value = WfStatus.Running; break; case 2: value = WfStatus.Succeeded; break; case 3: case 4: value = WfStatus.Failed; break; default: value = WfStatus.Unknown; break; } return(value); }
public static short WfValue(WfStatus status) { short value = 0; switch (status) { case WfStatus.Unknown: value = 0; break; case WfStatus.Running: case WfStatus.Suspended: value = 1; break; case WfStatus.Succeeded: value = 2; break; case WfStatus.Failed: value = 4; break; default: value = 0; break; } return(value); }
public override string ToString() { return("<" + XMLTagName + " datetime=\"" + DateTime.ToString("MM-dd-yyyy HH:mm:ss") + "\" Type=\"" + Type + "\" name=\"" + Name + ((DisplayName.Length > 0)? "\" displayname=\"" + DisplayName:string.Empty) + "\" wfStatus=\"" + WfStatus.ToString() + ((ApexStatus.Length > 0) ? "\" ApexStatus=\"" + ApexStatus : string.Empty) + ((ErrorCode.Length > 0) ? "\" ErrorCode=\"" + ErrorCode : string.Empty) + ((ErrorMessage.Length > 0) ? "\" ErrorMessage=\"" + ErrorMessage : string.Empty) + "\" WfHost=\"" + WfHost + "\" ThreadId=\"" + ThreadId + "\" order=\"" + Order + "\" user=\"" + User + "\"/>"); }
public static WfResult Create(WfStatus Status, string Message, int Error) { return(new WfResult(Status, Message, Error)); }
protected WfResult(WfStatus Status, string Message, int Error) { this.StatusCode = Status; this.Message = Message; this.ErrorCode = Error; }