strICT.InFlow.WFM.Utilities.InFlowWFM.addCompanyScope C# (CSharp) Method

addCompanyScope() public method

Create a new company-scope (supporting external input-pools)
public addCompanyScope ( string companyScopeName, string workflow_TaskTier_Path, string workflow_SBMessageTier_Path ) : string
companyScopeName string name of the new company-scope
workflow_TaskTier_Path string filepath of the task-handler workflow
workflow_SBMessageTier_Path string filepath of the SBMessage-handler workflow
return string
        public string addCompanyScope(string companyScopeName, string workflow_TaskTier_Path, string workflow_SBMessageTier_Path)
        {
            string output = addCompanyScope(companyScopeName, workflow_TaskTier_Path);

            WorkflowManagementClient client = new WorkflowManagementClient(new Uri(cfgWFMBaseAddress + companyScopeName + "/" + managementScopeName + "/"), credentials);
            client.PublishWorkflow(workflow_SBMessageTier_Name, workflow_SBMessageTier_Path);

            string guid = client.Workflows.Start(workflow_SBMessageTier_Name);

            return guid;

        }

Same methods

InFlowWFM::addCompanyScope ( string companyScopeName, string workflow_TaskTier_Path ) : string

Usage Example

Esempio n. 1
0
        static void setUpScope()
        {
            InFlowWFM wfm = new InFlowWFM(cfgWFMBaseAddress, cfgWFMUsername, cfgWFMPassword, cfgSQLConnectionString_InFlow);

       
                 Console.WriteLine("Create Company-Scope InFlow");

                 DConsole.Print(wfm.addCompanyScope(ScopeName, workflow_TaskHandler_Path) + "\n");

                 DConsole.PrintDone(); Console.WriteLine();
        }