ProcessManager Name

Information and discussion regarding the ACE PackXpert software

ProcessManager Name

Postby tiziano.ferrini » Mon Mar 01, 2010 12:48 am

Hi all,

exists a method that returns the PM name actually running in a application?

Posts: 9
Joined: Fri Mar 27, 2009 1:53 pm

Re: ProcessManager Name

Postby TravisA » Mon Mar 01, 2010 11:22 am

I think i understand what you are asking for, and i think the answer is no. There is no workspace property for "the currently executing process manager" because there could be more than one ProcessManager executing in a workspace (only one per controller, but you could have multiple controllers).
You would need to get a list of all the ProcessManager objects in the workspace and check to see if they are executing

here's an example of finding all the ProcessManager objects and seeing if they are executing:

Code: Select all
         IList<AceObject> objs = ace.Root.Filter(new Ace.Util.TypeFilter(typeof(ProcessManager)), true);
         foreach(AceObject obj in objs){
            ProcessManager pmgr = obj as ProcessManager;
            if (pmgr != null){
               if (pmgr.RuntimeHandler.IsExecuting){
                  ace.AppendToLog(pmgr.FullPath + " is executing");

Return to ACE PackXpert

Who is online

Users browsing this forum: No registered users and 2 guests