public VersaCell() { try { _clsHRecord = new VersaCellHeaderRecord(); _clsPRecord = new VersaCellPatientRecord(); _clsORecord = new VersaCellOrderRecord(); _clsQRecord = new VersaCellQueryRecord(); _clsRRecord = new VersaCellResultRecord(); _clsTRecord = new VersaCellTerminationRecord(); PrvRequestArray = new Queue <List <string> >(); objService = new ExternalDataExchangeService(); InstanceId = Guid.NewGuid(); objWorkFlowRuntime.AddService(objService); objASTM = new ClsAstm(); objService.AddService(objASTM); objASTM.SendACKEvent += objASTM_SendACKEvent; objASTM.SendNAKEvent += objASTM_SendNAKEvent; objASTM.SendENQEvent += objASTM_SendENQEvent; objASTM.SendEOTEvent += objASTM_SendEOTEvent; objWorkFlowInstance = objWorkFlowRuntime.CreateWorkflow(typeof(ASTMWorkflow), null, InstanceId); objWorkFlowInstance.Start(); Console.WriteLine(@"Work flow started"); objDataEventArgs = new ExternalDataEventArgs(InstanceId); objDataEventArgs.WaitForIdle = true; DumpStateMachine(objWorkFlowRuntime, InstanceId); } catch (Exception ex) { Log.FatalException("Fatal Error: ", ex); } }
public ADVIA1650() { try { _clsORecord = new ADVIA1650OrderRecord(); _clsQRecord = new ADVIA1650QueryRecord(); _clsRRecord = new ADVIA1650ResultRecord(); PrvRequestArray = new List <string>(); var objService = new ExternalDataExchangeService(); InstanceId = Guid.NewGuid(); objWorkFlowRuntime.AddService(objService); objASTM = new ClsAstm(); objService.AddService(objASTM); objASTM.SendACKEvent += objASTM_SendACKEvent; objASTM.SendNAKEvent += objASTM_SendNAKEvent; objASTM.SendENQEvent += objASTM_SendENQEvent; objASTM.SendEOTEvent += objASTM_SendEOTEvent; objWorkFlowInstance = objWorkFlowRuntime.CreateWorkflow(typeof(ASTMWorkflow), null, InstanceId); objWorkFlowInstance.Start(); Console.WriteLine("Work flow started"); objDataEventArgs = new ExternalDataEventArgs(InstanceId); objDataEventArgs.WaitForIdle = true; //DumpStateMachine(objWorkFlowRuntime, InstanceId); } catch (Exception ex) { throw ex; } }
public Cobase6000Bi() { try { _clsHRecord = new CobasE6000HeaderRecord(); _clsPRecord = new CobasE6000PatientInformationRecord(); _clsORecord = new CobasE6000TestOrderRecord(); _clsQRecord = new CobasE6000RequestInformationRecord(); _clsRRecord = new CobasE6000ResultRecord(); _clsTRecord = new CobasE6000TerminationRecord(); _prvRequestArray = new Queue <List <string> >(); _objService = new ExternalDataExchangeService(); _failSending = 0; _instanceId = Guid.NewGuid(); _objWorkFlowRuntime.AddService(_objService); _objAstm = new ClsAstm(); _objService.AddService(_objAstm); _objAstm.SendACKEvent += objASTM_SendACKEvent; _objAstm.SendNAKEvent += objASTM_SendNAKEvent; _objAstm.SendENQEvent += objASTM_SendENQEvent; _objAstm.SendEOTEvent += objASTM_SendEOTEvent; //_objAstm.ACKTimeoutEvent += new EventHandler(_objAstm_ACKTimeoutEvent); _objWorkFlowInstance = _objWorkFlowRuntime.CreateWorkflow(typeof(ASTMWorkflow), null, _instanceId); _objWorkFlowInstance.Start(); Console.WriteLine(@"Work flow started"); _objDataEventArgs = new ExternalDataEventArgs(_instanceId) { WaitForIdle = true }; DumpStateMachine(_objWorkFlowRuntime, _instanceId); } catch (Exception ex) { Log.Error("Fatal Error: {0}", ex); } }
public Centaur() { try { _clsHRecord = new CentaurHeaderRecord(); _clsPRecord = new CentaurPatientRecord(); _clsORecord = new CentaurOrderRecord(); _clsQRecord = new CentaurQueryRecord(); _clsRRecord = new CentaurResultRecord(); _clsTRecord = new CentaurTerminationRecord(); PrvRequestArray = new Queue <string>(); _failSending = 0; _timeoutManager = new Timer(30000); _timeoutManager.Elapsed += _timeoutManager_Elapsed; objService = new ExternalDataExchangeService(); InstanceId = Guid.NewGuid(); objWorkFlowRuntime.AddService(objService); objASTM = new ClsAstm(); objService.AddService(objASTM); objASTM.SendACKEvent += objASTM_SendACKEvent; objASTM.SendNAKEvent += objASTM_SendNAKEvent; objASTM.SendENQEvent += objASTM_SendENQEvent; objASTM.SendEOTEvent += objASTM_SendEOTEvent; //objASTM.ACKTimeoutEvent += new EventHandler(objASTM_ACKTimeoutEvent); objWorkFlowInstance = objWorkFlowRuntime.CreateWorkflow(typeof(ASTMWorkflow), null, InstanceId); objWorkFlowInstance.Start(); Console.WriteLine(@"Work flow started"); objDataEventArgs = new ExternalDataEventArgs(InstanceId); objDataEventArgs.WaitForIdle = true; DumpStateMachine(objWorkFlowRuntime, InstanceId); } catch (Exception ex) { Log.FatalException("Fatal Error: ", ex); } }