On Wed, Jun 8, 2011 at 3:53 AM, John Mettraux <[email protected]> wrote:

> So I am wrong, the duration of a workitem for you is "from the workitem
> consumption to its proceeding" (the two operations being in the same
> participant).


Yes, exactly.

 I always trusted people to clean temp values when they needed it (they know
> better than I do).


You're right, but if we have several different participants (some of them
can be stored participants, other can be block participants and so on) it
becomes quite complex (or I would say not-dry) to clone the same clean logic
everywhere.

I wouldn't use ${t:tmpvalue} because there is already ${field}, ${f:field},
> ${v:variable} and ${r:rubycode} and your temporary fields are clearly
> "fields".
>
> I'd propose leveraging nested fields (already present in ruote) and do
>
>  ${t.alpha}
>  ${f:t.alpha}
>
> or
>
>  ${tmp.alpha}
>  ${f:tmp.alpha}
>

Yes, that was my initial concern. Of course, these values are "fields" but I
found the t: additional syntax to be more clear and to leave doors open for
further or future enhancements because you are loosely coupling the syntax
with the implementation.

I would really love to use t:, but I can live without it since it is just a
bit of syntactic sugar.


> Then we could make sure that the participant expression clears the 't' or
> 'tmp' fields right before any #consume.


That's amazing.

So 't' or 'tmp' ?


If you're talking about the feature, I would use *tmp* over t or temp.
The tmp prefix seems to be more widely used to indicate a temporary
directory or file.
http://www.ruby-doc.org/stdlib/libdoc/tempfile/rdoc/classes/Tempfile.html

Other good examples are the unix /tmp directory and the Rails /tmp
directory.

't' could stand for 'temporary' or 'trailing' or 'tail'...


Agreed, but if you decide to implement the ability to access the fields
using a custom notation (instead of nested fields), then I would suggest to
use $t as you did with $f -> fields and $v -> variables.

Thank you very much for your reply.
I'm very glad you liked the idea.

-- Simone


-- 
Simone Carletti
Application Developer

Site & Blog: http://www.simonecarletti.com
Email: [email protected]
LinkedIn: http://linkedin.com/in/weppos
Skype: weppos

-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en

Reply via email to