On 10/23/07, Maarten <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I have a process definition where some kind of template is defined
> with <set variable="foo">...</set> and later used in several
> expressions where dollar substitution is used to merge the template
> with current workitem attributes.
>
> Therefore I would like to escape the dollar parameters in the template
> variable, to prevent the substitution from taking place in the <set>,
> when the workitem attributes to be merged are not defined yet. Instead
> the substitution should take place in the expressions where the
> template variable is used, just like the template parameter in the
> MailParticipant does.
>
> I thought I could use "\${...}" which would then be unescaped by <set>
> to "${...}" instead of being substituted. That would be perfect for
> me. However, the "\${...}" remains unchanged and prevents the
> substitution in the expression. I also had a look at the code in
> dollar.rb and I couldn't figure out how the unescape is supposed to
> work.

Hi Maarten,

I've been checking the dollar and unescape code, still investigating.
I'm adding more tests.

Would something like

    <set v="mvar" escape="true">this is my ${template}</set>

suit you ?


For now, this escape attribute is only implemented with the <print/> expression.

I'm looking into this, it's something important.


Best regards,

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

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

Reply via email to