Re: {Spam?} activity query
| Newsgroups | gmane.comp.java.enhydra.shark |
|---|---|
| Message-ID | <OF9DA7578A.E8012C40-ON85257031.006DC6F1-85257031.006E5123@intellicare.com> |
Ben i tried your code without the call to set the query and got nothing back! i.e.: WfActivityIterator wfai = execAdmin.get_iterator_activity(); WfActivity[] sharkActivities = wfai.get_next_n_sequence(0); SharkActivities above is empty. But when I use: WfProcess sharkProcess = execAdmin.getProcess( processKey ); WfActivityIterator activityIterator = sharkProcess.get_activities_in_state(SharkConstants.STATE_OPEN_NOT_RUNNING_NOT_STARTED); WfActivity[] sharkActivities = activityIterator.get_next_n_sequence( 0 ); SharkActivities above is *not* empty. So i think this may not be a problem restricted to setting the query?? Geeta Ben Anderson <[email protected]> 07/01/2005 03:26 PM Please respond to Ben Anderson <[email protected]> To [email protected] cc Subject {Spam?} [shark] activity query Hi, I'm trying to do an query on activities, but am coming back with no results: ea.connect(this.user, this.password, "", ""); WfActivityIterator actIt = ea.get_iterator_activity(); // I know activities exist with this name because I // see them when I query for processes String query = "name.equals(\"someName\")"; actIt.set_query_expression(query); WfActivity[] wfas = actIt.get_next_n_sequence(0); LOG.debug("wfas.length: "+wfas.length); Am I doing something wrong here? Also, does it matter who I'm logged into the ExecutionAdministration as? I'm just using one user/group at this point. Thanks, Ben -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- 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 CONFIDENTIALITY NOTICE:This email is intended solely for the person or entity to which it is addressed and may contain confidential and/or protected health information. Any duplication, dissemination, action taken in reliance upon, or other use of this information by persons or entities other than the intended recipient is prohibited and may violate applicable laws. If this email has been received in error, please notify the sender and delete the information from your system. The views expressed in this email are those of the sender and may not necessarily represent the views of IntelliCare.