Beispiel #1
0
        protected void EndActivityExecution(HeContext heContext, int activityId, bool reschedule, DateTime?explicitNextRun, bool hasError, string errorId)
        {
            Debugger.CleanCurrentProcessInfo(false);

            using (Transaction trans = DatabaseAccess.ForSystemDatabase.GetRequestTransaction()) {
                DBRuntimePlatform.Instance.UpdateActivity(trans, heContext.AppInfo.Tenant.Id, activityId, null, null, null, null, null, null, null, null,
                                                          false, string.Empty, hasError, errorId, (reschedule? (explicitNextRun != null? false: true): (bool?)null), explicitNextRun, null, null, null, null, null);
            }

            DatabaseAccess.CommitAllTransactions();
        }