On Mon, Feb 23, 2009 at 2:02 PM, kiko <[email protected]> wrote:
>
>
>
>
>
>
>
> require 'rest_client'
> def ruote_exec(payload, name, url)
> url = property('ruote.url') unless url
>
> instance = ruote_post(payload, url)
> end
>
> def ruote_post(payload, url)
> p payload.to_s + ":" + url.to_s
> site = RestClient::Resource.new(url)
> res = site['processes'].post payload, :content_type => "form-cli"
> doc = Document.new res
> doc.root.elements["workflow_instance_id"][0]
> end
What is the value of the property ruote.url ?
What is the content_type "form-cli" ? (I haven't implemented that)
You can write
url ||= property('ruote.url')
instead of
url = property('ruote.url') unless url
Best regards,
--
John Mettraux - http://jmettraux.wordpress.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruote (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
-~----------~----~----~----~------~----~------~--~---