commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: Workflow
Date Sun, 18 Nov 2001 22:01:00 GMT
Thanks Colin, I just applied this patch.  Your JMS integration project
sounds pretty interesting, and would make (at least) a good demo of the
capabilities of Workflow.

Craig


On Tue, 13 Nov 2001, *Colin Sharples wrote:

> Date: Tue, 13 Nov 2001 10:20:01 +1300
> From: *Colin Sharples <Colin.Sharples@hbl.co.nz>
> Reply-To: Jakarta Commons Developers List <commons-dev@jakarta.apache.org>
> To: "Jakarta Commons Developers List (E-mail)"
>     <commons-dev@jakarta.apache.org>
> Subject: Workflow
>
> Craig,
>
> I think there's a bug in BaseDescriptor. The doc for BaseDescriptor.get()
> says:
> "Return the value specified by this Descriptor from the specified Context.
> If there is no such value, return null."
> However, JXPath (or at least the version which I have) has two modes for
> getting values, strict and lenient. In strict mode (the default), if you
> have a path such as "foo/bar/quux", and the bar property is null,
> JXPathContext.getValue() will throw a runtime exception rather than return
> null. I think the latter behaviour is what BaseDescriptor is expecting, so
> in BaseDescriptor.get() you need to change
>
>             JXPathContext jpc = context.getJXPathContext();
>             return (jpc.getValue("local/" + xpath));
>
> to
>
>             JXPathContext jpc = context.getJXPathContext();
>             jpc.setLenient(true);
>             return (jpc.getValue("local/" + xpath));
>
> BTW, I've been working on an implementation of the workflow system, which
> definitely rocks. I've created an execution environment based on JMS -
> activities are triggered by messages arriving on queues. I'm not sure what
> the attitude of the client I'm working for is, but I may be able to submit
> the generic JMS stuff I've been working on when I'm finished (mid-December).
>
> Colin Sharples
> IBM Global Services New Zealand.
>



--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message