def create_integration_id(self, datacollect_id, comments): autoproc_status = edFactoryPlugin.loadPlugin( 'EDPluginISPyBStoreAutoProcStatusv1_4') status_input = XSDataInputStoreAutoProcStatus() status_input.dataCollectionId = datacollect_id status_input.anomalous = True # needed even if we only want to get an integration ID? status_data = AutoProcStatus() status_data.step = "Indexing" status_data.status = "Launched" status_data.comments = comments # Program autoProcProgram = EDHandlerXSDataISPyBv1_4.createAutoProcProgram( programId=None, status="RUNNING", timeStart=self.timeStart, timeEnd=self.timeEnd, processingCommandLine=self.processingCommandLine, processingPrograms=self.processingPrograms) status_input.AutoProcProgram = autoProcProgram status_input.AutoProcStatus = status_data autoproc_status.dataInput = status_input # get our EDNAproc status id autoproc_status.executeSynchronous() return (autoproc_status.dataOutput.autoProcIntegrationId, autoproc_status.dataOutput.autoProcProgramId)
def create_integration_id(datacollect_id): autoproc_status = edFactoryPlugin.loadPlugin('EDPluginISPyBStoreAutoProcStatusv1_4') status_input = XSDataInputStoreAutoProcStatus() status_input.dataCollectionId = datacollect_id # needed even if we only want to get an integration ID? status_data = AutoProcStatus() status_data.step = "Indexing" status_data.status = "Launched" status_data.comments = "Getting integration ID" status_input.AutoProcStatus = status_data autoproc_status.dataInput = status_input # get our autoproc status id autoproc_status.executeSynchronous() return autoproc_status.dataOutput.autoProcIntegrationId
def create_integration_id(datacollect_id): autoproc_status = edFactoryPlugin.loadPlugin( 'EDPluginISPyBStoreAutoProcStatusv1_4') status_input = XSDataInputStoreAutoProcStatus() status_input.dataCollectionId = datacollect_id # needed even if we only want to get an integration ID? status_data = AutoProcStatus() status_data.step = "Indexing" status_data.status = "Launched" status_data.comments = "Getting integration ID" status_input.AutoProcStatus = status_data autoproc_status.dataInput = status_input # get our autoproc status id autoproc_status.executeSynchronous() return autoproc_status.dataOutput.autoProcIntegrationId