Re: activity query

Ben Anderson <[email protected]>
Newsgroups gmane.comp.java.enhydra.shark
Message-ID <[email protected]>
yes, that works.  I noticed that the output from aieb.toExpression() is

/*used name  used*/
 name.equals("someName")
/*sql  Name  = 'someName'  sql*/

What is the /*used and /*sql?  Is there documentation for this?
Thanks,
Ben

On 7/5/05, Ben Anderson <[email protected]> wrote:
> Thanks for the explanation, Sasa - I'll try that out.
> -Ben
> 
> On 7/4/05, Sasa Bojanic <[email protected]> wrote:
> > Hi,
> >
> > I just checked, and everything works fine.
> > The problem is in your usage of iterators.
> >
> > If you are retrieving iterator through ExecutionAdministration interface, than you need to generate query expression using
> > appropriate expression builder. In your case, it would be:
> >
> >             ...........
> >             WfActivityIterator actIt=ea.get_iterator_activity();
> >             ActivityIteratorExpressionBuilder
> > aieb=Shark.getInstance().getExpressionBuilderManager().getActivityIteratorExpressionBuilder();
> >             aieb.addNameEquals("someName");
> >             ai.set_query_expression(aieb.toExpression());
> >             WfActivity[] aa=ai.get_next_n_sequence(0);
> >             .............
> >
> > NOTE: if you do not set any expression, and you retrieved iterator through ExecutionAdministration interface, you'll get an empty
> > array as a result.
> >
> > If you are retrieving iterator through appropriate object, than you need to set textual expression, i.e.:
> >
> >             ...................
> >             WfActivityIterator ai=proc.get_iterator_step();
> >             ai.set_query_expression("name.equals(\"someName\")");
> >             WfActivity[] aa=ai.get_next_n_sequence(0);
> >             ...................
> >
> > Regards,
> > Sasa.
> >
> > ----- Original Message -----
> > From: "Ben Anderson" <[email protected]>
> > To: <[email protected]>
> > Sent: Friday, July 01, 2005 9:26 PM
> > Subject: [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
> >
> >
> >
> >
> > --------------------------------------------------------------------------------
> >
> >
> > >
> > > --
> > > 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
> > >
> >
> >
> >
> >
> >
> > --
> > 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
> >
> >
> >
>
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.