PromiseHandlerWrapper
http://promise.wst.univie.ac.at:9301/timeout
http://promise.wst.univie.ac.at:9301/timeout/1
http://promise.wst.univie.ac.at:9301/timeout/16
http://promise.wst.univie.ac.at:9301/timeout/41
http://promise.wst.univie.ac.at:9301/preminder/1
http://promise.wst.univie.ac.at:9301/preminder/2
http://promise.wst.univie.ac.at:9301/sreminder/1
http://promise.wst.univie.ac.at:9301/sreminder/2
http://promise.wst.univie.ac.at:9301/inkasso
http://promise.wst.univie.ac.at:9301/customer
http://promise.wst.univie.ac.at:9301/credit
http://promise.wst.univie.ac.at:9301/credit/worthy
http://promise.wst.univie.ac.at:9301/activation
http://promise.wst.univie.ac.at:9301/zaehler
http://promise.wst.univie.ac.at:9301/update
http://promise.wst.univie.ac.at:9301/consume
http://promise.wst.univie.ac.at:9301/decide
http://promise.wst.univie.ac.at:9301/credit/consume
http://promise.wst.univie.ac.at:9301/credit/activate
promise
:post
data.knr=result[0].value;data.status="normal";data.zaehlerid=result[1].value
:post
data.knr
:task
'sid-5CD9191C-7233-414F-8EF4-A4E1A8D39E07'
sleep 2
:post
2
:post
data.knr
:task
'sid-8417E18E-016C-4F87-86FC-216475C1C029'
sleep 2
:post
2
:put
data.status
data.status=result[0].value;data.zaehler_status='normal'
:post
:task
'sid-032C8450-4DF9-435B-8105-F0C13734A7A8'
data.knr
:put
data.zaehlerid
data.zaehler_status
data.zaehler_status=result[0].value
:post
data.wartefrist="ok";data.guthaben=result[0].value.to_i
:post
p data.guthaben
:post
data.knr
data.guthaben=data.guthaben-result[0].value.to_i
:post
data.knr
data.wartefrist="verstrichen" if result[0].name == 'wartefrist';data.guthaben=result[0].value.to_i if result[0].name == "balance"
:post
data.knr
data.zaehler_status='off'
:post
data.knr
data.kreditf=result[0].value;data.kredit_wanted="true"
:post
data.knr
:post
knr=data.knr
data.kredit=result[0].value.to_i
:post
knr=data.knr
data.kredit=data.kredit-result[0].value.to_i
:post
:post
ss
CPEE