public static Process GetOneProcessGuiForETL(Guid gui, Services.DistributedService.RequestorInfo requestorInf)
        {
            Process tempProcess = new Process();

            using (GridProteinFoldingEntities ctx = new GridProteinFoldingEntities())
            {
                tempProcess = ctx.Process.Include("DataToProcess").Include("DataToResult").Include("Model").Include("ConfigApp").Include("Output").FirstOrDefault(p => p.guid == gui);

                try
                {
                    if (tempProcess != null)
                    {
                        //TRATATIVA de INTEGRIDADE dos DADOS
                        ParseIntegration(ref tempProcess);
                        GICO.WriteLine(gui, String.Format("{0} {1} @ {2}({3})", DateTime.Now, "Processing ETL", requestorInf.macAddr, requestorInf.machineName));
                    }
                    return(tempProcess);
                }
                catch (Exception ex)
                {
                    GICO.WriteLine(String.Format("{0} {1} ({2} {3})", tempProcess.guid.ToString(), DateTime.Now, "Exception:", ex.Message.ToString()));

                    BasicEnums.State newstatus = BasicEnums.State.ETLError;
                    SetOneProcess(tempProcess.guid, newstatus, requestorInf);

                    return(null);
                }
            }
        }
        public ParamWcf GetOneProcess(Services.DistributedService.RequestorInfo requestorInf)
        {
            Process process = Services.DistributedService.Service.GetOneProcess(requestorInf);

            return(MakeParams(process));
        }
        public ParamWcf GetOneProcessGuiForETL(Guid guid, Services.DistributedService.RequestorInfo requestorInf)
        {
            Process process = Services.DistributedService.Service.GetOneProcessGuiForETL(guid, requestorInf);

            return(MakeParams(process));
        }
 public bool Autentication(Services.DistributedService.RequestorInfo requestorInfo, ref string message)
 {
     return(Services.DistributedService.Service.Autentication(requestorInfo, ref message));
 }
 public byte SetOneProcess(Param param, BasicEnums.State state, Services.DistributedService.RequestorInfo requestorInf)
 {
     return(Services.DistributedService.Service.SetOneProcess(param, state, requestorInf));
 }
 public byte SetOneProcessByGuid(Guid guid, BasicEnums.State state, Services.DistributedService.RequestorInfo requestorInf)
 {
     return(Services.DistributedService.Service.SetOneProcess(guid, state, requestorInf));
 }