On Dec 14, 2007 7:21 PM, Tomaso Tosolini <[EMAIL PROTECTED]> wrote:
>
> Hi John, hi All,
>
> my discussion final objective is to understand if is it possible to enable
> the passing
> of arbitrary object to participants as parameters. Now, i demonstrate it in
> the following
> example, this doesn't happen, but i suggest a mechanism that enables it. The
> problem
> is that a similar change impacts significantly on the behavior of the engine
> and so
> it's not clear to me whether if it is reasonable to introduce it or not

Hi Tomaso,

I think the dollar notation is all about  [easy] string substitution
and it should stay like that. This notation is inspired by various
notations found in shell scripts and templating engines.

Do you really need to pass as parameter something that you already
have in the workitem payload ?


One thing that could be interesting is :

---8<---
<participant ref="P2">
    <param name="x"><reval>workitem.some_field_value</reval></param>
</participant>
--->8---

or some other approaching notation... Maybe there is some inspiration
in this old piece of documentation :
http://www.openwfe.org/manual/ch06s02.html#expression_subprocess


So, I'd like to stick with a dollar notation that deals with strings,
but I am ready to discuss about other ways, but there's got to be a
valid use case.

---

Just for everybody's info :

If you work with Ruby process definitions, you can write something like :

---8<---
    participant "P2", :entering_parameter => [ "a", "Ruby", "Array" ]
--->8---

see 
http://openwferu.rubyforge.org/svn/trunk/openwfe-ruby/test/ft_75_ruby_attributes.rb

but of course, the ruby code is evaluated at instantiation time (or
even at definition time), so no access to the current workitem.


Best regards,

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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenWFEru dev" 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/openwferu-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to