On Mon, Mar 10, 2008 at 7:17 PM, harshal <[EMAIL PROTECTED]> wrote:
>
>  Dear John,
>
>  Is it possible to invoke XML and Ruby scripts in *almost same* ways?
>  Can you please provide some examples by which XML scripts can be
>  executed from Rufus?

Hi Harshal,

yes, it is possible.

----8<---
require 'openwfe/engine'
require 'openwfe/def'

Test0 = <<-EOS
<process-definition name="test" revision="0">
    <print>hello from test 0</print>
</process-definition>
    EOS

class Test1 < OpenWFE::ProcessDefinition
    _print "hello from test 1"
end

engine = OpenWFE::Engine.new

fei0 = engine.launch Test0
fei1 = engine.launch Test1

engine.wait_for fei1
--->8---

will print

hello from test 0
hello from test 1


Best regards,

John

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