Method: Manywho::Engine#get_FlowResponse
- Defined in:
- lib/manywho.rb
#get_FlowResponse(flowId) ⇒ Object
Gets a FlowResponse object from the server for the provided ID
81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/manywho.rb', line 81 def get_FlowResponse(flowId) if ( is_valid_id(flowId, "FlowId") ) resp, data = HTTP.get("/api/run/1/flow/" + flowId, { "ManyWhoTenant" => @TenantUID , "content-type" => "application/json"} ) # If everything went well, return a new FlowResponse from the JSON object retrieved if ( is_ok(resp, "/api/run/1/flow/" + flowId) ) parsedJSON = JSON.parse(resp.body) return FlowResponse.new(parsedJSON) end end return false end |