Name: processfetch/tests/fetchall.rb 
1:
#!/usr/bin/ruby
2:
# encoding: UTF-8
3:
require 'rubygems'
4:
require 'riddl/client'
5:
require 'pp'
6:
 
7:
processes = [
8:
  ['53b6ba67e4b0207100d2262e', 'UVI Translation Test 13'],
9:
  ['53b6b940e4b0207100d2262a', 'UVI Translation Test 12'],
10:
  ['53b6b782e4b0207100d22626', 'UVI Translation Test 11'],
11:
  ['53b6b440e4b0207100d22622', 'UVI Translation Test 10'],
12:
  ['53b6b295e4b0207100d2261e', 'UVI Translation Test 9'],
13:
  ['53b6afc9e4b0207100d2261a', 'UVI Translation Test 8'],
14:
  ['53b6aec5e4b0207100d22616', 'UVI Translation Test 7'],
15:
  ['53b6aa45e4b0207100d22612', 'UVI Translation Test 6'],
16:
  ['53b6a4ebe4b0207100d2260e', 'UVI Translation Test 5'],
17:
  ['53b6a2e1e4b0207100d2260a', 'UVI Translation Test 4'],
18:
  ['53b69e02e4b0207100d22606', 'UVI Translation Test 3'],
19:
  ['53b65bf6e4b0207100d225f8', 'UVI Translation Test 2'],
20:
  ['53b29953e4b0207100d2255d', 'UVI Translation Test 1'],
21:
  ['53e242fce4b0207100d226f0', 'Lean']
22:
]
23:
 
24:
processes.each do |pid,name|
25:
  client = Riddl::Client.new("xmpp://[email protected]", "server.xml", :jid => 'jü[email protected]', :pass => 'mangler')
26:
  status, res = client.get [
27:
    Riddl::Parameter::Complex.new('pid','text/plain',pid)
28:
  ]  
29:
  File.write("#{name}.xml",res.first.value.read)
30:
end