protected WorkflowException(StepConfig stepConfig, ErrorConfig errorConfig,
                             string message, Exception innerException)
     : base(message, innerException)
 {
     StepConfig  = stepConfig;
     ErrorConfig = errorConfig;
 }
        //public static void SetInstInfo(DataRow row, DataRow mainRow, DbContext context, string infoFieldName, string columnName)
        //{
        //    int sharpP = columnName.IndexOf("#", StringComparison.CurrentCulture);
        //    if (sharpP > -1)
        //    {
        //        string fieldName = columnName.Substring(0, sharpP);
        //        string easySearchName = columnName.Substring(sharpP + 1);
        //        EasySearch search = PlugInFactoryManager.CreateInstance<EasySearch>("EasySearch", easySearchName);
        //        string infoValue = search.Decode(context, mainRow[fieldName].ToString());
        //        row[infoFieldName] = infoValue;
        //    }
        //    else
        //    {
        //        row[infoFieldName] = mainRow[columnName];
        //    }
        //}

        public static void SaveError(WF_WORKFLOW_INST workflowRow, WorkflowException wfException)
        {
            ErrorConfig error = wfException.ErrorConfig;

            if (workflowRow.WI_STATUS.Value <StepState>() != StepState.Mistake)
            {
                workflowRow.WI_STATUS          = StepState.Mistake.Value <int>();
                workflowRow.WI_ERROR_TYPE      = (int)wfException.Reason;
                workflowRow.WI_MAX_RETRY_TIMES = error.RetryTimes;
            }
            workflowRow.WI_RETRY_TIMES   = workflowRow.WI_RETRY_TIMES.Value <int>() + 1;
            workflowRow.WI_NEXT_EXE_DATE = DateTime.Now.Add(error.Interval);
        }
 protected WorkflowException(StepConfig stepConfig, ErrorConfig errorConfig)
 {
     StepConfig  = stepConfig;
     ErrorConfig = errorConfig;
 }
Example #4
0
 public NoActorException(StepConfig stepConfig, ErrorConfig errorConfig, Exception innerException)
     : base(stepConfig, errorConfig, "没有找到下一步骤的操作者", innerException)
 {
 }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the NoActorException class.
 /// </summary>
 public NoActorException(StepConfig stepConfig, ErrorConfig errorConfig)
     : base(stepConfig, errorConfig)
 {
 }
 /// <summary>
 /// Initializes a new instance of the PlugInException class.
 /// </summary>
 public PlugInException(StepConfig stepConfig, ErrorConfig errorConfig, Exception innerException)
     : base(stepConfig, errorConfig, "插件计算错误", innerException)
 {
 }
 public NoRouteException(StepConfig stepConfig, ErrorConfig errorConfig, Exception innerException)
     : base(stepConfig, errorConfig, "没有找到下一步骤", innerException)
 {
 }
 /// <summary>
 /// Initializes a new instance of the NoRouteException class.
 /// </summary>
 public NoRouteException(StepConfig stepConfig, ErrorConfig errorConfig)
     : base(stepConfig, errorConfig)
 {
 }