Hi!

I was just running into a little problem.  I switched to ubuntu and
needed to reinstall all the ruby and gem stuff to make things run.  I
setup my ruote_rest server and I can post processes, update workitems
and all.

One problem I was having was setting up a post request from my app.
I'm using HTTParty to post to the ruote rest server.

I used the following process definition.

class Test0 < OpenWFE::ProcessDefinition
  sequence do
    concurrence do
      sequence do
        user1 :rif => "!wi.fields['approvers'].include?('user1')"
        _cancel_process :if => "${f:cancel} == true"
        user2 :rif => "!wi.fields['approvers'].include?('user2')"
        _cancel_process :if => "${f:cancel} == true"
      end
      sequence do
        user3 :rif => "!wi.fields['approvers'].include?('user3')"
        _cancel_process :if => "${f:cancel} == true"
        user4 :rif => "!wi.fields['approvers'].include?('user4')"
        _cancel_process :if => "${f:cancel} == true"
      end
      sequence do
        user5 :rif => "!wi.fields['approvers'].include?('user5')"
        _cancel_process :if => "${f:cancel} == true"
      end
      sequence do
        user6 :rif => "!wi.fields['approvers'].include?('user6')"
        _cancel_process :if => "${f:cancel} == true"
      end
      sequence do
        user7 :rif => "!wi.fields['approvers'].include?('user7')"
        _cancel_process :if => "${f:cancel} == true"
      end
    end
  end
end

When I paste this code using the html interface of the ruote rest
server, it was able to create the process. However, using httparty,

HTTParty.post "http://localhost:4567/processes";, :query => {:pdef_url
=> '', :pdef => <string above>, :fields => {'approvers' =>
[]}.to_json}

i get the response,

'failed to parse incoming representation'.

Any ideas? Thanks!
--~--~---------~--~----~------------~-------~--~----~
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to