Get the list of processes started by a specific user

Jffdsaklj dsjk <[email protected]>
Newsgroups gmane.comp.java.enhydra.shark
Message-ID <[email protected]>
I want to get the list of processes started by a specific user
(requester). This is the code:

String login = "admin";
WfProcessMgr processMgr;
...
WfProcessIterator iter = processMgr.get_iterator_process();
iter.set_query_expression("requesterId.equals(\"" + login + "\")");
WfProcess[] processes = iter.get_next_n_sequence(0);

The last instruction rises an exception:

2005-06-21 08:55:08,640: BshEvaluator -> The result of expression
requesterId.equals("admin") can't be evaluated - error message=Sourced
file: <Inline eval of:requesterId.equals("admin"); > : Null Pointer in
Method Invocation

On the other hand, if I remove the "set_query_expression" instruction,
there's no exception. Even, if I change the query expression:
"state.equals(...)" there's no exception.

I'm using the last version of engine and API: shark1.1.

What's the problem?
message.footer (text/plain, 271 B)
--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.