示例#1
0
 public void ReportTaskFinished(string correlationId, DataObject updatedTaskData, string userId)
 {
     TaskCompletedNotification tn = new TaskCompletedNotification();
     tn.CompletedBy = userId;
     tn.CorrelationId = correlationId;
     tn.ProcessInstanceId = ProcessInstance.ProcessInstanceIdFromTaskCorrelationId(correlationId);
     tn.TaskData = updatedTaskData;
     MessageBus.Notify("NGEnvironment", "ReportTaskFinished", tn, false);
 }
示例#2
0
 public void ProcessTaskCompleted(TaskCompletionInfo info)
 {
     log.Info("Task completed in process {0}. Id: {1}", info.ProcessInstance, info.CorrelationId);
     TaskCompletedNotification tcn = new TaskCompletedNotification();
     tcn.CorrelationId = info.CorrelationId;
     tcn.ProcessInstanceId = info.ProcessInstance;
     XmlReader xr = XmlReader.Create(new StringReader(info.ResultXml));
     xr.MoveToContent();
     tcn.TaskData = DataObject.ParseXmlElement(xr);
     this.MessageBus.Notify("NGEnvironment", "NGinn.ProcessTaskCompleted", tcn, false);
 }