lib/openwfe/rest/worklistclient.rb in openwferu-0.9.3 vs lib/openwfe/rest/worklistclient.rb in openwferu-0.9.4

- old
+ new

@@ -35,13 +35,13 @@ # # "hecho en Costa Rica" # -require 'definitions' -require 'restclient' -require 'xmlcodec' +require 'openwfe/rest/xmlcodec' +require 'openwfe/rest/definitions' +require 'openwfe/rest/restclient' module OpenWFE # @@ -66,15 +66,13 @@ r = self.get('listStores', nil, nil) return decode(r) end # - # A synonym for listStores() + # An alias for list_stores() # - def get_store_names () - return listStores() - end + alias :get_store_names :list_stores # # Returns the headers of a given store. # def get_headers (storeName, limit=1000) @@ -159,10 +157,10 @@ break if not ok end #puts " .id is #{h.flowExpressionId}" - return get_and_lock_workitem(storeName, h.flowExpressionId) \ + return get_and_lock_workitem(storeName, h.flow_expression_id) \ if ok end return nil end