Hi,

> I would directly paste the agent's code within the consume method of
> the embedded participant, it makes things way easier, less code.

Sure, especially in this case, but in general, I'm trying to make a
little change as possible as a first step. When I see everything works
as expected, I can start cutting the flesh and making stuff cleaner.

> > Is there any side-effect (wanted or unwanted) in using the same name
> > for the participant and the agent ?
>
> Forget the agent, you've got an embedded participant now.

See above.

> > 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 ?

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
... ?
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)

Cheers and thanks again for any tip/info ;)

greg

--~--~---------~--~----~------------~-------~--~----~
 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