public FindBlocksOfTaskRequest(TaskId taskId, string taskExecutionId, BlockType blockType, string referenceValueOfTask, ReprocessOption reprocessOption) : base(taskId, taskExecutionId, blockType) { ReferenceValueOfTask = referenceValueOfTask; ReprocessOption = reprocessOption; }
public FindBlocksOfTaskRequest(TaskId taskId, string taskExecutionId, BlockType blockType, string referenceValueOfTask, ReprocessOption reprocessOption) : base(taskId, taskExecutionId, blockType) { ReferenceValueOfTask = referenceValueOfTask; ReprocessOption = reprocessOption; }
public static string GetFindObjectBlocksOfTaskQuery(ReprocessOption reprocessOption) { if (reprocessOption == ReprocessOption.Everything) return String.Format(GetBlocksOfTaskQuery, ",B.ObjectData", ""); if (reprocessOption == ReprocessOption.PendingOrFailed) return String.Format(GetBlocksOfTaskQuery, ",B.ObjectData", "AND BE.BlockExecutionStatus IN (@NotStarted, @Started, @Failed)"); throw new ArgumentException("ReprocessOption not supported"); }
public static string GetFindNumericRangeBlocksOfTaskQuery(ReprocessOption reprocessOption) { if (reprocessOption == ReprocessOption.Everything) return String.Format(GetBlocksOfTaskQuery, ",B.FromNumber,B.ToNumber", ""); if (reprocessOption == ReprocessOption.PendingOrFailed) return String.Format(GetBlocksOfTaskQuery, ",B.FromNumber,B.ToNumber", "AND BE.BlockExecutionStatus IN (0, 1, 3)"); throw new ArgumentException("ReprocessOption not supported"); }
public static string GetFindObjectBlocksOfTaskQuery(ReprocessOption reprocessOption) { if (reprocessOption == ReprocessOption.Everything) { return(String.Format(GetBlocksOfTaskQuery, ",B.ObjectData", "")); } if (reprocessOption == ReprocessOption.PendingOrFailed) { return(String.Format(GetBlocksOfTaskQuery, ",B.ObjectData", "AND BE.BlockExecutionStatus IN (@NotStarted, @Started, @Failed)")); } throw new ArgumentException("ReprocessOption not supported"); }
public static string GetFindNumericRangeBlocksOfTaskQuery(ReprocessOption reprocessOption) { if (reprocessOption == ReprocessOption.Everything) { return(String.Format(GetBlocksOfTaskQuery, ",B.FromNumber,B.ToNumber", "")); } if (reprocessOption == ReprocessOption.PendingOrFailed) { return(String.Format(GetBlocksOfTaskQuery, ",B.FromNumber,B.ToNumber", "AND BE.BlockExecutionStatus IN (0, 1, 3)")); } throw new ArgumentException("ReprocessOption not supported"); }