On 10/2/07, cappelaere <[EMAIL PROTECTED]> wrote:
>
> John,
>
> Can I create a new workitem field by using XPath somehow?
>
> This example is ugly but here is what I mean:
>
> <set field="gmlid" value="REXML::XPath.match(workitem, '//ServiceURL')
> [1].text.split('=')[2]" />

Hi Pat,

you can write things like

    <set field="gmlid" value="${r:some_ruby_code_here}" />

    <set field="gmlid">
        <reval>
            # some ruby code here
        </reval>
    </set>

The ruby code is run a safe level 3 (it can't read files for example).

http://openwferu.rubyforge.org/expressions.html#exp_set
http://openwferu.rubyforge.org/expressions.html#exp_reval


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