public string GetCallbackResult()
        {
//			Request.Form["TxtSlowWorkTime"] = "10";
            //this.BtnSlowWork.Text = "Teste";
//			return "Teste";
            return(Cache[TaskID.ToString()] != null ? Cache[TaskID.ToString()].ToString() : "0");
        }
Exemple #2
0
 public override bool CanActionBeLinked(TaskID act)
 {
     if (act.Action != null)
     {
         ClassPointer cpr = this.RootPointer.GetExternalExecuterClass(act.Action);
         if (cpr != null)
         {
             return(false);
         }
         DataTypePointer dtp = act.Action.ActionMethod.Owner as DataTypePointer;
         if (dtp != null)
         {
             return(false);
         }
         SetterPointer sp = act.Action.ActionMethod as SetterPointer;
         if (sp != null)
         {
             CustomPropertyPointer cpp = sp.SetProperty as CustomPropertyPointer;
             if (cpp != null)
             {
                 return(cpp.MemberId == this.PropertyId);
             }
         }
     }
     return(false);
 }
Exemple #3
0
        public override bool LoadToDesigner(List <UInt32> used, MethodDiagramViewer designer)
        {
            if (!used.Contains(BranchId))
            {
                used.Add(BranchId);
                if (_actionList != null)
                {
                    ClassPointer list = designer.ActionEventCollection;
                    if (list != null)
                    {
                        for (int k = 0; k < _actionList.Count; k++)
                        {
                            TaskID tid = new TaskID(_actionList[k].ActionId, list.ClassId);
                            _actionList[k].Action = GetActionInstance(_actionList[k].ActionId);                            // list.GetAction(tid);

                            if (_actionList[k].Action == null)
                            {
                                _actionList[k].Action = designer.DesignerHolder.GetAction(tid);
                                if (_actionList[k].Action == null)
                                {
                                    DesignUtil.WriteToOutputWindowAndLog("Action data for {0} not found for [{1}] calling {2}.LoadToDesigner. You may delete it from the method and re-create it.", _actionList[k].ActionId, this.Name, this.GetType().Name);
                                }
                            }
                        }
                    }
                }
                return(designer.LoadAction(this));
            }
            return(false);
        }
Exemple #4
0
            /// <summary>Apply the filter (status) on the parsed job and generate summary</summary>
            public FilteredJob(JobHistoryParser.JobInfo job, string status)
            {
                filter = status;
                IDictionary <TaskID, JobHistoryParser.TaskInfo> tasks = job.GetAllTasks();

                foreach (JobHistoryParser.TaskInfo task in tasks.Values)
                {
                    IDictionary <TaskAttemptID, JobHistoryParser.TaskAttemptInfo> attempts = task.GetAllTaskAttempts
                                                                                                 ();
                    foreach (JobHistoryParser.TaskAttemptInfo attempt in attempts.Values)
                    {
                        if (attempt.GetTaskStatus().Equals(status))
                        {
                            string hostname          = attempt.GetHostname();
                            TaskID id                = attempt.GetAttemptId().GetTaskID();
                            ICollection <TaskID> set = badNodesToFilteredTasks[hostname];
                            if (set == null)
                            {
                                set = new TreeSet <TaskID>();
                                set.AddItem(id);
                                badNodesToFilteredTasks[hostname] = set;
                            }
                            else
                            {
                                set.AddItem(id);
                            }
                        }
                    }
                }
            }
Exemple #5
0
        public void OnObjectNameChanged(INonHostedObject obj)
        {
            _eventPath.OnObjectNameChanged(obj);
            ActionClass act = obj as ActionClass;

            if (act != null)
            {
                for (int i = 0; i < listBoxActions.Items.Count; i++)
                {
                    ActionClass a = listBoxActions.Items[i] as ActionClass;
                    if (a != null)
                    {
                        if (a.ActionId == act.ActionId)
                        {
                            listBoxActions.Items.RemoveAt(i);
                            listBoxActions.Items.Insert(i, act);
                        }
                    }
                    else
                    {
                        TaskID tid = listBoxActions.Items[i] as TaskID;
                        if (tid != null)
                        {
                            if (tid.ActionId == act.ActionId && tid.ClassId == act.ClassId)
                            {
                                listBoxActions.Items.RemoveAt(i);
                                listBoxActions.Items.Insert(i, tid);
                            }
                        }
                    }
                }
            }
        }
    //检测 结束 满足条件  执行 召唤
    public void CheckComplete()
    {
        for (int i = 0; i < Core.Data.dragonManager.callDragonSucceed.Length; i++)
        {
            if (Core.Data.dragonManager.callDragonSucceed [i])
            {
                TaskID taskID = TaskID.None;
                if ((DragonManager.DragonType)i == DragonManager.DragonType.EarthDragon)
                {
                    taskID = TaskID.CallEarthDragonTimer;
                }
                else if ((DragonManager.DragonType)i == DragonManager.DragonType.NMKXDragon)
                {
                    taskID = TaskID.CallNMKXDragonTimer;
                }

                if (UIShenLongManager.instance != null)
                {
                    if (UIShenLongManager.instance.isState == true)
                    {
                        //StartCoroutine (CallDragonTimeCompleted (taskID));
                        CallDragonTimeCompleted(taskID);
                        break;
                    }
                }
            }
        }
    }
Exemple #7
0
 private void listBoxActions_SelectedIndexChanged(object sender, System.EventArgs e)
 {
     if (!_loading)
     {
         int n = listBoxActions.SelectedIndex;
         if (n >= 0)
         {
             IAction a = listBoxActions.Items[n] as IAction;
             if (a == null)
             {
                 TaskID tid = listBoxActions.Items[n] as TaskID;
                 if (tid != null)
                 {
                     if (!tid.IsEmbedded)
                     {
                         a = tid.Action;
                     }
                 }
             }
             if (a != null)
             {
                 _loading = true;
                 _panes.OnActionSelected(a);
                 _loading = false;
             }
         }
     }
 }
Exemple #8
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TaskID != 0)
            {
                hash ^= TaskID.GetHashCode();
            }
            if (Schedule != 0)
            {
                hash ^= Schedule.GetHashCode();
            }
            if (IsGet != false)
            {
                hash ^= IsGet.GetHashCode();
            }
            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        /// <exception cref="System.IO.IOException"/>
        public virtual void CleanUpPartialOutputForTask(TaskAttemptContext context)
        {
            // we double check this is never invoked from a non-preemptable subclass.
            // This should never happen, since the invoking codes is checking it too,
            // but it is safer to double check. Errors handling this would produce
            // inconsistent output.
            if (!this.GetType().IsAnnotationPresent(typeof(Checkpointable)))
            {
                throw new InvalidOperationException("Invoking cleanUpPartialOutputForTask() " + "from non @Preemptable class"
                                                    );
            }
            FileSystem fs = FsFor(GetTaskAttemptPath(context), context.GetConfiguration());

            Log.Info("cleanUpPartialOutputForTask: removing everything belonging to " + context
                     .GetTaskAttemptID().GetTaskID() + " in: " + GetCommittedTaskPath(context).GetParent
                         ());
            TaskAttemptID taid    = context.GetTaskAttemptID();
            TaskID        tid     = taid.GetTaskID();
            Path          pCommit = GetCommittedTaskPath(context).GetParent();

            // remove any committed output
            for (int i = 0; i < taid.GetId(); ++i)
            {
                TaskAttemptID oldId = new TaskAttemptID(tid, i);
                Path          pTask = new Path(pCommit, oldId.ToString());
                if (fs.Exists(pTask) && !fs.Delete(pTask, true))
                {
                    throw new IOException("Failed to delete " + pTask);
                }
            }
        }
Exemple #10
0
        public override bool CanActionBeLinked(TaskID act)
        {
            if (act.Action == null)
            {
                act.LoadActionInstance(this.RootPointer);
            }
            ActionAttachEvent aae = act.Action as ActionAttachEvent;

            if (aae != null)
            {
                return(aae.ExecuterMemberId == ActionExecuterId);
            }
            if (act.Action != null && act.Action.ActionMethod != null)
            {
                ClassPointer cpr = this.RootPointer.GetExternalExecuterClass(act.Action);
                if (cpr != null)
                {
                    return(false);
                }
                DataTypePointer dtp = act.Action.ActionMethod.Owner as DataTypePointer;
                if (dtp != null)
                {
                    return(false);
                }
                CustomMethodPointer cp = act.Action.ActionMethod as CustomMethodPointer;
                if (cp != null)
                {
                    if (cp.ClassId != act.ClassId)
                    {
                        if (act.Action.ExecuterMemberId == ActionExecuterId)
                        {
                            return(true);
                        }
                    }
                }
                else
                {
                    SetterPointer sp = act.Action.ActionMethod as SetterPointer;
                    if (sp != null)
                    {
                        CustomPropertyPointer cpp = sp.SetProperty as CustomPropertyPointer;
                        if (cpp == null || cpp.ClassId != act.ClassId)
                        {
                            if (act.Action.ExecuterMemberId == ActionExecuterId)
                            {
                                return(true);
                            }
                        }
                    }
                    else
                    {
                        if (act.Action.ExecuterMemberId == ActionExecuterId)
                        {
                            return(true);
                        }
                    }
                }
            }
            return(false);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (TaskID != 0)
            {
                hash ^= TaskID.GetHashCode();
            }
            if (MaxDoneCount != 0)
            {
                hash ^= MaxDoneCount.GetHashCode();
            }
            if (TaskName.Length != 0)
            {
                hash ^= TaskName.GetHashCode();
            }
            if (TaskDesc.Length != 0)
            {
                hash ^= TaskDesc.GetHashCode();
            }
            if (FinishConditionID != 0)
            {
                hash ^= FinishConditionID.GetHashCode();
            }
            hash ^= stage_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #12
0
        /// <summary>
        /// 清除所有的摸个类型的Timer,线程安全
        /// </summary>
        /// <param name="taskID">Task I.</param>
        public void deleteTask(TaskID taskID)
        {
            List <int> rm = new List <int>();

            m_readerWriterLock.EnterReadLock();
            if (TaskDic != null)
            {
                foreach (TimerTask task in TaskDic.Values)
                {
                    if (task.taskId == taskID)
                    {
                        rm.Add(task._Id);
                    }
                }
            }
            m_readerWriterLock.ExitReadLock();

            m_readerWriterLock.EnterWriteLock();
            if (rm.Count > 0)
            {
                foreach (int id in rm)
                {
                    TaskDic.Remove(id);
                }
            }
            m_readerWriterLock.ExitWriteLock();
        }
Exemple #13
0
        /// <exception cref="System.IO.IOException"/>
        /// <exception cref="System.Exception"/>
        /// <exception cref="System.TypeLoadException"/>
        public virtual void TestFailingMapper()
        {
            Log.Info("\n\n\nStarting testFailingMapper().");
            if (!(new FilePath(MiniMRYarnCluster.Appjar)).Exists())
            {
                Log.Info("MRAppJar " + MiniMRYarnCluster.Appjar + " not found. Not running test."
                         );
                return;
            }
            Job           job    = RunFailingMapperJob();
            TaskID        taskID = new TaskID(job.GetJobID(), TaskType.Map, 0);
            TaskAttemptID aId    = new TaskAttemptID(taskID, 0);

            System.Console.Out.WriteLine("Diagnostics for " + aId + " :");
            foreach (string diag in job.GetTaskDiagnostics(aId))
            {
                System.Console.Out.WriteLine(diag);
            }
            aId = new TaskAttemptID(taskID, 1);
            System.Console.Out.WriteLine("Diagnostics for " + aId + " :");
            foreach (string diag_1 in job.GetTaskDiagnostics(aId))
            {
                System.Console.Out.WriteLine(diag_1);
            }
            TaskCompletionEvent[] events = job.GetTaskCompletionEvents(0, 2);
            NUnit.Framework.Assert.AreEqual(TaskCompletionEvent.Status.Failed, events[0].GetStatus
                                                ());
            NUnit.Framework.Assert.AreEqual(TaskCompletionEvent.Status.Tipfailed, events[1].GetStatus
                                                ());
            NUnit.Framework.Assert.AreEqual(JobStatus.State.Failed, job.GetJobState());
            VerifyFailingMapperCounters(job);
        }
Exemple #14
0
        public Domain.Task Replace(TaskID _id, Status _status)
        {
            var index = tasks.FindIndex(task => task.ID.Equals(_id));

            tasks[index] = TaskFactory.Replace(_status, tasks[index]);
            return(tasks[index]);
        }
Exemple #15
0
        public override bool CanActionBeLinked(TaskID act)
        {
            HandlerMethodID hid = act as HandlerMethodID;

            if (hid != null)
            {
                return(hid.ActionId == this.MethodId);
            }
            if (act.Action != null)
            {
                DataTypePointer dtp = act.Action.ActionMethod.Owner as DataTypePointer;
                if (dtp != null)
                {
                    return(false);
                }
                ClassPointer cpr = this.RootPointer.GetExternalExecuterClass(act.Action);
                if (cpr != null)
                {
                    return(false);
                }
                CustomMethodPointer cmp = act.Action.ActionMethod as CustomMethodPointer;
                if (cmp != null)
                {
                    if (cmp.MemberId == MethodId)
                    {
                        return(true);
                    }
                }
            }
            return(false);
        }
Exemple #16
0
        public Status KillTask(TaskID taskId)
        {
            var taskIdBytes = ProtoBufHelper.Serialize(taskId);

            using (var pinned = MarshalHelper.CreatePinnedObject(taskIdBytes))
                return((Status)NativeImports.SchedulerDriver.KillTask(_nativeDriverPtr, pinned.Ptr));
        }
Exemple #17
0
            /// <exception cref="System.IO.IOException"/>
            public HistoryEvent Answer(InvocationOnMock invocation)
            {
                int    eventId = numEventsRead.GetAndIncrement();
                TaskID tid     = tids[eventId & unchecked ((int)(0x1))];

                if (eventId < 2)
                {
                    return(new TaskStartedEvent(tid, 0, taskType, string.Empty));
                }
                if (eventId < 4)
                {
                    TaskFailedEvent tfe = new TaskFailedEvent(tid, 0, taskType, "failed", "FAILED", null
                                                              , new Counters());
                    tfe.SetDatum(tfe.GetDatum());
                    return(tfe);
                }
                if (eventId < 5)
                {
                    JobUnsuccessfulCompletionEvent juce = new JobUnsuccessfulCompletionEvent(jid, 100L
                                                                                             , 2, 0, "JOB_FAILED", Sharpen.Collections.SingletonList("Task failed: " + tids[0
                                                                                                                                                     ].ToString()));
                    return(juce);
                }
                return(null);
            }
Exemple #18
0
    protected void bt_Submit_Click(object sender, EventArgs e)
    {
        if ((int)ViewState["ID"] != 0)
        {
            bt_Save_Click(null, null);

            ORD_OrderApplyBLL bll = new ORD_OrderApplyBLL((int)ViewState["ID"]);

            if (bll.Items.Count == 0)
            {
                MessageBox.Show(this, "对不起,定单请购明细不能为空!");
                return;
            }
            #region 发起工作流
            NameValueCollection dataobjects = new NameValueCollection();
            dataobjects.Add("ID", ViewState["ID"].ToString());
            dataobjects.Add("OrganizeCity", bll.Model.OrganizeCity.ToString());
            dataobjects.Add("AccountMonth", bll.Model.AccountMonth.ToString());
            dataobjects.Add("TotalFee", lb_TotalCost.Text);
            dataobjects.Add("IsSpecial", bll.Model["IsSpecial"]);
            dataobjects.Add("ProductType", bll.Model["ProductType"]);
            dataobjects.Add("ProductBrand", bll.Model["ProductBrand"]);
            int TaskID;
            TaskID = EWF_TaskBLL.NewTask("Product_Apply", (int)Session["UserID"], "订单产品申请流程,订单号:" + bll.Model.SheetCode, "~/SubModule/Logistics/Order/OrderProductApplyDetail.aspx?ID=" + ViewState["ID"].ToString() + "&Type=1", dataobjects);
            new EWF_TaskBLL(TaskID).Start();
            #endregion

            bll.Model["TaskID"] = TaskID.ToString();
            bll.Model.State     = 2;
            bll.Update();
            Response.Redirect("~/SubModule/EWF/TaskDetail.aspx?TaskID=" + TaskID.ToString());
        }
    }
        public Status KillTask(TaskID taskId)
        {
            var taskIdBytes = ProtoBufHelper.Serialize(taskId);

            using (var pinned = MarshalHelper.CreatePinnedObject(taskIdBytes))
                return (Status)NativeImports.SchedulerDriver.KillTask(_nativeDriverPtr, pinned.Ptr);
        }
        protected void Timer1_Tick1(object sender, EventArgs e)
        {
//			ProgressBar1.StepProgress(10);
            if (Cache[TaskID.ToString()] != null)
            {
                ProgressBar1.Progress = (int)Cache[TaskID.ToString()];
            }
        }
Exemple #21
0
 /// <summary>Create an event to record start of a task</summary>
 /// <param name="id">Task Id</param>
 /// <param name="startTime">Start time of the task</param>
 /// <param name="taskType">Type of the task</param>
 /// <param name="splitLocations">Split locations, applicable for map tasks</param>
 public TaskStartedEvent(TaskID id, long startTime, TaskType taskType, string splitLocations
                         )
 {
     datum.taskid         = new Utf8(id.ToString());
     datum.splitLocations = new Utf8(splitLocations);
     datum.startTime      = startTime;
     datum.taskType       = new Utf8(taskType.ToString());
 }
Exemple #22
0
        /// <summary>simple test TaskUpdatedEvent and TaskUpdated</summary>
        /// <exception cref="System.Exception"/>
        public virtual void TestTaskUpdated()
        {
            JobID            jid  = new JobID("001", 1);
            TaskID           tid  = new TaskID(jid, TaskType.Reduce, 2);
            TaskUpdatedEvent test = new TaskUpdatedEvent(tid, 1234L);

            NUnit.Framework.Assert.AreEqual(test.GetTaskId().ToString(), tid.ToString());
            NUnit.Framework.Assert.AreEqual(test.GetFinishTime(), 1234L);
        }
Exemple #23
0
        /// <summary>
        /// Do the lookup!
        /// </summary>
        protected override void ProcessRecord()
        {
            // Setup for verbosity if we need it.
            var listener = new PSListener(this);

            Trace.Listeners.Add(listener);
            try
            {
                PandaTask t            = null;
                bool      needdatasets = OutputContainerNames.IsPresent || InputContainerNames.IsPresent;

                if (ParameterSetName == "TaskID")
                {
                    t = TaskID.FindPandaJobWithTaskName(needdatasets);
                }
                if (ParameterSetName == "TaskObject")
                {
                    t = PandaTaskObject.ID.FindPandaJobWithTaskName(needdatasets);
                }
                if (ParameterSetName == "TaskName")
                {
                    t = TaskName.FindPandaJobWithTaskName(needdatasets);
                }
                if (ParameterSetName == "DatasetGRIDJob")
                {
                    // Get the job and resulting dataset name.
                    var job = JobParser.FindJob(JobName, JobVersion);
                    var ds  = job.ResultingDataSetName(DatasetName.Trim(), JobIteration);

                    // Now, look up the job itself.
                    t = (ds + "/").FindPandaJobWithTaskName();
                }

                // We really can't deal with a bad task below. The returned objects are sufficiently complex.
                if (t == null)
                {
                    throw new ArgumentException("Unable to find the task in panda: was it ever submitted?");
                }

                // Dump the info to the output pipeline as requested.
                if (JobStatus.IsPresent)
                {
                    WriteObject(t.status);
                }
                if (InputContainerNames.IsPresent)
                {
                    WriteObject(t.DataSetNamesIN());
                }
                if (OutputContainerNames.IsPresent)
                {
                    WriteObject(t.DataSetNamesOUT());
                }
            } finally
            {
                Trace.Listeners.Remove(listener);
            }
        }
        public override bool IsActionExecuter(TaskID tid, ClassPointer root)
        {
            HandlerMethodID hid = tid as HandlerMethodID;

            if (hid != null)
            {
                return(hid.ActionId == this.MethodId);
            }
            return(false);
        }
 public override string ToString()
 {
     return(string.Format("{0:S}[{1:S}, TaskID={2:S}, ScheduleID={3:S}, Priority={4:S}, InsertDate={5:S}]",
                          this.GetType().FullName,
                          base.ToString(),
                          TaskID.ToString(),
                          ScheduleID.HasValue ? ScheduleID.Value.ToString() : "<null>",
                          Priority.ToString(),
                          Inserted.ToString(LOG_TIME_FORMAT)));
 }
Exemple #26
0
 /// <summary>Create an event to record the successful completion of a task</summary>
 /// <param name="id">Task ID</param>
 /// <param name="attemptId">Task Attempt ID of the successful attempt for this task</param>
 /// <param name="finishTime">Finish time of the task</param>
 /// <param name="taskType">Type of the task</param>
 /// <param name="status">Status string</param>
 /// <param name="counters">Counters for the task</param>
 public TaskFinishedEvent(TaskID id, TaskAttemptID attemptId, long finishTime, TaskType
                          taskType, string status, Counters counters)
 {
     this.taskid = id;
     this.successfulAttemptId = attemptId;
     this.finishTime          = finishTime;
     this.taskType            = taskType;
     this.status   = status;
     this.counters = counters;
 }
Exemple #27
0
 /// <summary>Create an event to record task failure</summary>
 /// <param name="id">Task ID</param>
 /// <param name="finishTime">Finish time of the task</param>
 /// <param name="taskType">Type of the task</param>
 /// <param name="error">Error String</param>
 /// <param name="status">Status</param>
 /// <param name="failedDueToAttempt">The attempt id due to which the task failed</param>
 /// <param name="counters">Counters for the task</param>
 public TaskFailedEvent(TaskID id, long finishTime, TaskType taskType, string error
                        , string status, TaskAttemptID failedDueToAttempt, Counters counters)
 {
     this.id                 = id;
     this.finishTime         = finishTime;
     this.taskType           = taskType;
     this.error              = error;
     this.status             = status;
     this.failedDueToAttempt = failedDueToAttempt;
     this.counters           = counters;
 }
    /// <summary>
    /// 加载异常出现后的处理
    /// 显示NetSlow面板 暂停Loading条
    /// </summary>
    /// <param name="arg1"></param>
    /// <param name="arg2"></param>
    private void TaskErrorCallBack(TaskID arg1, string arg2)
    {
        if (loadingPanel.isOpen)
        {
            loadingPanel.PauseProgress = true;

            loadingPanel.Hide();
        }

        netErrorPanel.ShowWithType(LancherErrorType.NetSlow);
    }
Exemple #29
0
 public override int GetHashCode()
 {
     return
         (BranchID.GetHashCode() ^
          AccountID.GetHashCode() ^
          SubID.GetHashCode() ^
          ProjectID.GetHashCode() ^
          TaskID.GetHashCode() ^
          CostCodeID.GetHashCode() ^
          InventoryID.GetHashCode());
 }
Exemple #30
0
 public virtual void SetDatum(object odatum)
 {
     this.datum              = (TaskFailed)odatum;
     this.id                 = TaskID.ForName(datum.taskid.ToString());
     this.taskType           = TaskType.ValueOf(datum.taskType.ToString());
     this.finishTime         = datum.finishTime;
     this.error              = datum.error.ToString();
     this.failedDueToAttempt = datum.failedDueToAttempt == null ? null : TaskAttemptID
                               .ForName(datum.failedDueToAttempt.ToString());
     this.status   = datum.status.ToString();
     this.counters = EventReader.FromAvro(datum.counters);
 }
Exemple #31
0
        public void ChangeTaskID(int id)
        {
            TaskID.SetValue(id);
            AssetDatabase.RenameAsset(AssetDatabase.GetAssetPath(AcceptDfgObject.Value), string.Format("AcceptDfg_{0}.prefab", id));
            AssetDatabase.RenameAsset(AssetDatabase.GetAssetPath(SubmitDfgObject.Value), string.Format("SubmitDfg_{0}.prefab", id));
            GKToyBaseOverlord acceptOverlord = SubmitDfgObject.Value.GetComponent <GKToyBaseOverlord>();
            GKToyBaseOverlord submitOverlord = AcceptDfgObject.Value.GetComponent <GKToyBaseOverlord>();

            acceptOverlord.internalData.name = string.Format("AcceptDfg_{0}", id);
            submitOverlord.internalData.name = string.Format("SubmitDfg_{0}", id);
            AssetDatabase.RenameAsset(AssetDatabase.GetAssetPath(acceptOverlord.internalData), string.Format("AcceptDfg_{0}.Asset", id));
            AssetDatabase.RenameAsset(AssetDatabase.GetAssetPath(submitOverlord.internalData), string.Format("SubmitDfg_{0}.Asset", id));
            AssetDatabase.Refresh();
        }