ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | shark List | September 2004 Index

<--  Date Index  --> <--  Thread Index  -->

Re: [shark] List of all running processe


Hi,
I am doing it the following way:

ExecutionAdministration ea = Shark.getInstance().getAdminInterface()
                                                                              
  .getExecutionAdministration();
        ea.connect(userName, pwd, "", "");

          WfProcessMgr[] a = 
ea.get_iterator_processmgr().get_next_n_sequence(0);

        List processInstances = new ArrayList();

            for (int i = 0; i < a.length; ++i) {
                WfProcessIterator iter = a[i].get_iterator_process();
                iter.set_query_expression("state.equals(\"open.running\")");
                WfProcess[] ps = iter.get_next_n_sequence(0);

                for (int j = 0; j < ps.length; j++)
                    processInstances.add(ps[j]);
                }
        
          ea.disconnect();

        return processInstances;


Regards,
Andreas.

On Thu, 23 Sep 2004 14:30:15 +0200, <bennke@xxxxxxxxxxxxxxxxxxx> wrote:

hello,



we're implementing a jsp based gui and want for the admin the feature to see all processes running at the moment.

I'm sorry but I can't find any hint in the docu how to get this informations from the shark engine. please tell if it ist possible and if yes, how?



thanks a lot.



Niels




--
May God pour sunshine upon your working week! Mondays aren't that bad when you love your job, right?

- kasper



<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.