9fc06103-9922-498f-bba4-231738847696 default ss CPEE ready DefaultHandlerWrapper 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 call :a20, :customer, parameters: { :label => "\"Generate Customer\"", :method => :post, :arguments => nil }, finalize: <<-END data.knr=result[0].value;data.status="normal";data.zaehlerid=result[1].value END call :a10, :sreminder1, parameters: { :label => "\"Sendung erste Mahnung\"", :method => :post, :arguments => {:knr => data.knr}, :type => :task, :mid => 'sid-5CD9191C-7233-414F-8EF4-A4E1A8D39E07' } parallel :wait => 1 do parallel_branch do call :a14, :timeout1, parameters: { :label => "\"2-woechige Frist\"", :method => :post, :arguments => {:timeout => 2} } call :a11, :sreminder2, parameters: { :label => "\"Senden zweite Mahnung\"", :method => :post, :arguments => {:knr => data.knr}, :type => :task, :mid => 'sid-8417E18E-016C-4F87-86FC-216475C1C029' } parallel :wait => 1 do parallel_branch do call :a7, :timeout2, parameters: { :label => "\"2-woechige Frist\"", :method => :post, :arguments => {:timeout => 2} } call :a1, :inkasso, parameters: { :label => "\"Registrierung als Inkassokunde\"", :method => :put, :arguments => {:status => data.status} }, finalize: <<-END data.status=result[0].value;data.zaehler_status='normal' END parallel :wait => -1 do parallel_branch do call :a4, :activation, parameters: { :label => "\"Aktivierung Register fuer Guthaben und Anzeige am Display (Prepayment)\"", :method => :post, :type => :task, :mid => 'sid-032C8450-4DF9-435B-8105-F0C13734A7A8', :arguments => {:knr => data.knr} } end parallel_branch do call :a2, :inkasso, parameters: { :label => "\"Umparametrierung des Zaehlers von Normal- auf Inkassobetrieb\"", :method => :put, :arguments => {:zaehlerid => data.zaehlerid, :status => data.zaehler_status} }, finalize: <<-END data.zaehler_status=result[0].value END end end call :a6, :update, parameters: { :label => "\"Aktualisierung Guthaben\"", :method => :post, :arguments => nil }, finalize: <<-END data.wartefrist="ok";data.guthaben=result[0].value.to_i END call :a3, :timeout3, parameters: { :label => "\"Aufladen\"", :method => :post, :arguments => nil }, finalize: <<-END p data.guthaben END loop pre_test{data.wartefrist!='verstrichen'} do loop pre_test{data.guthaben>0} do call :a5, :consume, parameters: { :label => "\"Verbrauchen\"", :method => :post, :arguments => {:knr => data.knr} }, finalize: <<-END data.guthaben=data.guthaben-result[0].value.to_i END end call :a13, :decide, parameters: { :label => "\"Gesetzl. Frist\"", :method => :post, :arguments => {:knr => data.knr} }, finalize: <<-END data.wartefrist="verstrichen" if result[0].name == 'wartefrist';data.guthaben=result[0].value.to_i if result[0].name == "balance" END end call :a17, :timeout, parameters: { :label => "\"Abschaltung\"", :method => :post, :arguments => {:knr => data.knr} }, finalize: <<-END data.zaehler_status='off' END call :a8, :credit_worthy, parameters: { :label => "\"Kreditwuerdig\"", :method => :post, :arguments => {:knr => data.knr} }, finalize: <<-END data.kreditf=result[0].value;data.kredit_wanted="true" END choose :exclusive do alternative "data.kreditf=='true'" do call :a12, :timeout, parameters: { :label => "\"activate parametrizable credit function and credit offer\"", :method => :post, :arguments => {:knr => data.knr} } choose :exclusive do alternative "data.kredit_wanted=='true'" do call :a18, :credit_activate, parameters: { :label => "\"activate meter\"", :method => :post, :arguments => {:knr => knr=data.knr} }, finalize: <<-END data.kredit=result[0].value.to_i END loop pre_test{data.kredit>0} do call :a19, :credit_consume, parameters: { :label => "\"Consume credit\"", :method => :post, :arguments => {:knr => knr=data.knr} }, finalize: <<-END data.kredit=data.kredit-result[0].value.to_i END end end end end end end parallel_branch do call :a9, :preminder2, parameters: { :label => "\"Kunde zahlt\"", :method => :post, :arguments => nil } end end end parallel_branch do call :a15, :preminder1, parameters: { :label => "\"Kunde zahlt\"", :method => :post, :arguments => nil } end end :post data.knr=result[0].value;data.status="normal";data.zaehlerid=result[1].value :post data.knr :task 'sid-5CD9191C-7233-414F-8EF4-A4E1A8D39E07' :post 2 :post data.knr :task 'sid-8417E18E-016C-4F87-86FC-216475C1C029' :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 0 undefined :post data.knr=result[0].value;data.status="normal";data.zaehlerid=result[1].value :post data.knr :task 'sid-5CD9191C-7233-414F-8EF4-A4E1A8D39E07' :post 2 :post data.knr :task 'sid-8417E18E-016C-4F87-86FC-216475C1C029' :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