Nice and simple. Thanks!
On Jun 27, 11:46 am, "John Mettraux" <[EMAIL PROTECTED]> wrote:
> Hi Matt,
>
> On 6/27/07, Matt Zukowski <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi there, could someone post an example of how to load a process
> > definition from XML (rather than using Ruby to define it?) We're a
> > multi-language shop, and for better or for worse, XML is a common
> > language for us.
>
> you can do it in two ways :
>
> ---8<---
>
> require 'openwfe/workitem'
>
> # ...
>
> definition = """
> <process-definition name="x" revision="y">
> <sequence>
> <participant ref="alpha" />
> <participant ref="bravo" />
> </sequence>
> </process-definition>
> """.strip
>
> li = OpenWFE::LaunchItem.new(definition)
>
> engine.launch(li)
>
> --->8---
>
> or
>
> ---8<---
>
> li =
> OpenWFE::LaunchItem.new("http://process.definition.server.com/my/process_definition.xml")
> # the URL can also be the URL of a Ruby process definition
> # the URL can also point to a local file
>
> engine.launch(li)
>
> --->8---
>
> I hope this helps, 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
-~----------~----~----~----~------~----~------~--~---