コード例 #1
0
        public override void Execute(IActivityExecution execution)
        {
            Log.LogDebug("WaitStateUndoService执行Execute:", $"execution:{execution.GetType().Name} _counterName is null?:{(_counterName == null).ToString()}");
            string variableName = (string)_counterName.GetValue(execution);
            object variable     = execution.GetVariable(variableName);

            if (variable == null)
            {
                execution.SetVariable(variableName, (int?)1);
            }
            else
            {
                execution.SetVariable(variableName, ((int?)variable) + 1);
            }
            Log.LogDebug("WaitStateUndoService执行Execute完毕:", $"variable is null?:{(variable==null).ToString()}");
        }