Ejemplo n.º 1
0
        public ArrayList GetAllIntegrationServicesPerRepository()
        {
            ArrayList tmpReturn = new ArrayList();

            // create bogus void request variable
            InfaWSHMetaData.VoidRequest voidReq
                = new InfaWSHMetaData.VoidRequest();

            // Hit WSH to pull down the int svc servers
            InfaWSHMetaData.DIServerInfo[] servers
                = MWSProxy.getAllDIServers(voidReq);

            // print names of DI servers
            if (servers != null)
            {
                int i = 0;
                for (i = 0; i < servers.Length; i++)
                {
                    tmpReturn.Add(servers[i].Name);
                }
                numOfIntSvcAttachedToRepository = i;
            }
            else
            {
                tmpReturn.Add("No Integration Services Registered with this Repository.");
            }

            return(tmpReturn);
        }
Ejemplo n.º 2
0
        public ArrayList GetAllFoldersInRepository()
        {
            ArrayList tmpReturn = new ArrayList();

            // create bogus void request variable
            InfaWSHMetaData.VoidRequest voidReq
                = new InfaWSHMetaData.VoidRequest();

            // Hit WSH to pull down the rep folders
            InfaWSHMetaData.FolderInfo[] folders
                = MWSProxy.getAllFolders(voidReq);

            // print name of repositories availabe
            if (folders != null)
            {
                int i = 0;
                for (i = 0; i < folders.Length; i++)
                {
                    tmpReturn.Add(folders[i].Name);
                }

                numOfFoldersInRepository = i;
            }
            else
            {
                tmpReturn.Add("No Folders are Present in this Repository.");
            }

            return(tmpReturn);
        }
Ejemplo n.º 3
0
        public ArrayList GetAllRepositoriesAvailableInWSH()
        {
            ArrayList tmpReturn = new ArrayList();

            // create bogus void request variable
            InfaWSHMetaData.VoidRequest voidReq
                = new InfaWSHMetaData.VoidRequest();

            // Hit WSH to pull down the int svc servers
            InfaWSHMetaData.RepositoryInfo[] repInfo
                = MWSProxy.getAllRepositories(voidReq);

            // print name of repositories availabe
            if (repInfo != null)
            {
                int i = 0;
                for (i = 0; i < repInfo.Length; i++)
                {
                    tmpReturn.Add(repInfo[i].Name);
                }
                numOfRepositoriesAvailableinWSH = i;
            }
            else
            {
                tmpReturn.Add("No Repositories Configured in Web Service Hub.");
            }

            return(tmpReturn);
        }
Ejemplo n.º 4
0
        public int GetNumberOfWorkflowsInFolder(string folderName, out int invalidCount)
        {
            int tmpReturn = 0;

            // create bogus void request variable
            InfaWSHMetaData.VoidRequest voidReq
                = new InfaWSHMetaData.VoidRequest();

            // Hit WSH to pull down the int svc servers
            InfaWSHMetaData.FolderInfo oFI = new InfaBGInfo_Console.InfaWSHMetaData.FolderInfo();
            oFI.Name = folderName;

            try
            {
                // we will choose first workflow and folder pair that we find
                // one can similary browse repository for any condition
                InfaWSHMetaData.WorkflowInfo[] wfArr
                    = MWSProxy.getAllWorkflows(oFI);


                // assign a value to the output parameter
                invalidCount = 0;


                // print name of repositories availabe
                if (wfArr != null)
                {
                    for (int i = 0; i < wfArr.Length; i++)
                    {
                        tmpReturn++;

                        if (!wfArr[i].IsValid)
                        {
                            invalidCount++;
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(tmpReturn);
        }
Ejemplo n.º 5
0
        public ArrayList GetWorkflowsInFolder(string folderName, out int invalidCount)
        {
            ArrayList tmpReturn = new ArrayList();

            // create bogus void request variable
            InfaWSHMetaData.VoidRequest voidReq
                = new InfaWSHMetaData.VoidRequest();

            // Hit WSH to pull down the int svc servers
            InfaWSHMetaData.FolderInfo oFI = new InfaBGInfo.InfaWSHMetaData.FolderInfo();
            oFI.Name = folderName;

            // we will choose first workflow and folder pair that we find
            // one can similary browse repository for any condition
            InfaWSHMetaData.WorkflowInfo[] wfArr
                = MWSProxy.getAllWorkflows(oFI);


            // assign a value to the output parameter
            invalidCount = 0;


            // print name of repositories availabe
            if (wfArr != null)
            {
                for (int i = 0; i < wfArr.Length; i++)
                {
                    tmpReturn.Add(wfArr[i].Name);

                    if (!wfArr[i].IsValid)
                    {
                        invalidCount++;
                    }
                }
            }
            else
            {
                tmpReturn.Add("No Workflows in folder " + folderName + ".");
            }

            return(tmpReturn);
        }