Hi Gregory,

On 1/10/07, Grégory Joseph <[EMAIL PROTECTED]> wrote:
>
> > > How about the __agent_result__ ? I guess I'd need to implement its
> > > handling if needed in the consume method of my participant ?
> >
> > If your process definition uses the value of that field, then make
> > sure it's set in the embedded participant. You could maybe go for a
> > new field name if that makes things clearer. Don't be afraid to get
> > into control and wipe away old cruft.
>
> Ok, I'll need to check my process definitions. I still need to somehow
> handle exceptions I guess. Is there a general good practice for this?
> I.e what to do with exceptions in agents or embedded participants? Let
> them go up the stack and the engine will handle them gracefully, or
> wrap them in a specific exception, or catch them? What happens with
> uncaught or runtime exceptions ?

Agents should handle any throwable, I usually don't propagate
exceptions to the engine, except via agent_result or another field.


> On a related note, I'd also like to know if I can (how) use the
> decision tables features. I can rather easily configure the decision
> service ( engine.getContext().add(service); ) but how about the
> decision participant? Since it's not an embedded one. I suspect I can
> wrap it or reimplement it against the embedded participant interface
> ... ?

It all boils down to calling one of the apply methods of the
DecisionService instance.

I guess that by imitating DecisionParticipant it would be fairly easy
for you to implement an EmbeddedDecisionParticipant, perhaps less
sophisticated, just as you need it.

Maybe that would make a nice addition to the decision module.


> I was also wondering if the decision tables could be loaded from the
> classpath (Ive seen other things being loadable with a resource:
> prefix in openwfe but didnt see this for the decision tables, at first
> glance)

I'll gladly add that if you want. I've also had a look at the code and
didn't see the use of the "resource:" prefix, it would be a nice
addition, that's true.
Just tell me.


Best regards,

-- 
John Mettraux   -///-   http://jmettraux.openwfe.org

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"OpenWFE users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/openwfe-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to