Enter info here
CPEE
running
DefaultHandlerWrapper
at
notOK
[{"id":"1","name":"P1","price":"1.54"},{"id":"2","name":"P2","price":"2.54"},{"id":"3","name":"P3","price":"3.54"},{"id":"4","name":"P4","price":"4.54"},{"id":"5","name":"P5","price":"5.54"},{"id":"6","name":"P6","price":"6.54"},{"id":"7","name":"P7","price":"7.54"},{"id":"8","name":"P8","price":"8.54"},{"id":"9","name":"P9","price":"9.54"},{"id":"10","name":"P10","price":"10.54"},{"id":"11","name":"P11","price":"11.54"},{"id":"12","name":"P12","price":"12.54"},{"id":"13","name":"P13","price":"13.54"},{"id":"14","name":"P14","price":"14.54"},{"id":"15","name":"P15","price":"15.54"},{"id":"16","name":"P16","price":"16.54"},{"id":"17","name":"P17","price":"17.54"},{"id":"18","name":"P18","price":"18.54"}]
0
ordered
[{"customerID":"1349252","orderID":"100","deliveryDate":"2023-02-20","orderDate":"2024-02-20","status":"0"},{"customerID":"1349252","orderID":"101","deliveryDate":"2023-02-20","orderDate":"2027-02-20","status":"0"},{"customerID":"749454","orderID":"102","deliveryDate":"2010-03-20","orderDate":"2015-03-20","status":"0"},{"customerID":"248291","orderID":"103","deliveryDate":"2009-03-20","orderDate":"2031-03-20","status":"0"},{"customerID":"248291","orderID":"104","deliveryDate":"2023-02-20","orderDate":"2027-02-20","status":"0"},{"customerID":"248291","orderID":"105","deliveryDate":"2023-02-20","orderDate":"2027-02-20","status":"0"},{"customerID":"1334543","orderID":"106","deliveryDate":"2023-02-20","orderDate":"2027-02-20","status":"0"},{"customerID":"1334543","orderID":"107","deliveryDate":"2023-02-20","orderDate":"2027-02-20","status":"0"},{"customerID":"1423525","orderID":"108","deliveryDate":"2023-03-20","orderDate":"2027-04-20","status":"0"},{"customerID":"1423525","orderID":"109","deliveryDate":"2023-04-20","orderDate":"2027-05-20","status":"0"},{"customerID":"1423525","orderID":"110","deliveryDate":"2023-04-20","orderDate":"2027-05-20","status":"0"},{"customerID":"123213213","orderID":"1111","deliveryDate":".2015-12-15.","orderDate":".2015-12-12.","status":"0"}]
[{"orderID":"100","productName":"P1","orderDate":"2024-02-20","status":"0","price":"1.54"},{"orderID":"100","productName":"P4","orderDate":"2024-02-20","status":"0","price":"4.54"},{"orderID":"100","productName":"P5","orderDate":"2024-02-20","status":"0","price":"5.54"},{"orderID":"100","productName":"P18","orderDate":"2024-02-20","status":"0","price":"18.54"},{"orderID":"100","productName":"P17","orderDate":"2024-02-20","status":"0","price":"17.54"}]
[{"orderID":"100","productName":"P1","orderDate":"2024-02-20","status":"0","price":"1.54"},{"orderID":"100","productName":"P4","orderDate":"2024-02-20","status":"0","price":"4.54"},{"orderID":"100","productName":"P5","orderDate":"2024-02-20","status":"0","price":"5.54"},{"orderID":"100","productName":"P18","orderDate":"2024-02-20","status":"0","price":"18.54"},{"orderID":"100","productName":"P17","orderDate":"2024-02-20","status":"0","price":"17.54"}]
http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php
http://wwwlab.cs.univie.ac.at/~a0248291/services/personLoginService.php
http://wwwlab.cs.univie.ac.at/~a0248291/services/createLoginService.php
http://wwwlab.cs.univie.ac.at/~a0248291/services/productlistService.php
http://wwwlab.cs.univie.ac.at/~a0248291/services/getUserDataForLogin.php
http://wwwlab.cs.univie.ac.at/~a0248291/services/createOrderService.php
http://wwwlab.cs.univie.ac.at/~a0248291/services/createProductToOrderService.php
http://wwwlab.cs.univie.ac.at/~a0248291/services/orderlistService.php
http://wwwlab.cs.univie.ac.at/~a0248291/services/getOrderService.php
http://wwwlab.cs.univie.ac.at/~a0248291/worklist/activity.php
call :a1, :loginService, parameters: { :label => "Login", :method => :post, :parameters => {:email => "a0248291@unet.univie.ac.at", :password => "a024829"} }, finalize: <<-END
data.status = result['status']
END
loop post_test{data.status == 'ok'} do
call :a25, :createLoginService, parameters: { :label => "NOT Registired", :method => :post, :parameters => {:email => "meintest@email.com", :password => "meintest", :status => 1, :personID => 123213213, :name => "Name", :personType => "Customer"} }, finalize: <<-END
data.erfolg = result['erfolg']
END
call :a27, :getUserDataForLogin, parameters: { :label => "get data for login", :method => nil, :parameters => {:personID => 1232132} }, finalize: <<-END
data.loginData = result['logindata']
END
end
call :a26, :getallProducts, parameters: { :label => "Select Products", :method => :post, :parameters => nil }, finalize: <<-END
data.products = result['product']
END
call :a32, :createOrderService, parameters: { :label => "Create Order", :method => :post, :parameters => {:orderDate => "2015-12-12", :orderID => 1111, :status => 0, :customerID => 123213213, :deliveryDate => "2015-12-15"} }, finalize: <<-END
data.created = result['created']
END
call :a41, :createProductToOrderService, parameters: { :label => "Add Product to Order", :method => :post, :parameters => {:orderID => 1111, :productID => 10, :amount => 4} }, finalize: <<-END
data.created = result['created']
END
call :a16, :orderlistService, parameters: { :label => "automatic order management system", :method => :post, :parameters => {:orderID => 1111} }, finalize: <<-END
data.orders = result['orders']
END
call :a12, :getOrderService, parameters: { :label => "analyse Order", :method => :post, :parameters => {:orderID => 100} }, finalize: <<-END
data.order = result['order']
END
call :a51, :getOrderService, parameters: { :label => "select product", :method => :post, :parameters => {:orderID => 100} }, finalize: <<-END
data.product = result['order']
END
choose :exclusive do
alternative "data.product != nil" do
call :a10, :activity, parameters: { :label => "check stock", :method => :post, :parameters => {:productID => 1, :amount => 5, :form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_checkstock.html", :role => "Sachbearbeiter"} }, finalize: <<-END
data.available = result['available']
END
loop pre_test{available=='available'} do
call :a14, nil, parameters: { :label => "Add the Product to Order for wholesaler", :method => nil, :type => :serviceTask, :mid => 'sid-6AC4CA98-D1F6-47F0-979F-61CF0662E45B', :parameters => {:form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_createOrderToWholesaler.html", :role => "Sachbearbeiter"} }, finalize: <<-END
data.status = result['status']
END
call :a13, :activity, parameters: { :label => "Order to Wholesaler", :method => nil, :type => :serviceTask, :mid => 'sid-EC19A8E6-8F40-4F7A-AE44-471A775AE5BC', :parameters => {:form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_OrderToWholesaler.html", :role => "Sachbearbeiter"} }, finalize: <<-END
data.status = result['status']
END
call :a22, :activity, parameters: { :label => "automatic order management system", :method => nil, :type => :task, :mid => 'sid-F7E23A29-6BE3-4E19-BD30-CF9E1D67FA9D', :parameters => {:form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_productExist.html", :role => "Sachbearbeiter"} }, finalize: <<-END
data.status = result['status']
END
call :a23, :activity, parameters: { :label => "analyse Order", :method => nil, :type => :serviceTask, :mid => 'sid-BD3670C9-1BF4-4757-9E01-18CB1A266396', :parameters => {:form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_productAnalyse.html", :role => "Sachbearbeiter"} }, finalize: <<-END
data.status = result['status']
END
choose :exclusive do
otherwise do
call :a18, :activity, parameters: { :label => "more than 10 days to arrive", :method => nil, :type => :intermediateCatchEvent, :mid => 'sid-A0777023-6600-411A-9219-1EC8C73AA060', :parameters => {:form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_productMoreTenDays.html", :role => "Sachbearbeiter"} }, finalize: <<-END
data.status = result['status']
END
end
otherwise do
call :a19, nil, parameters: { :label => "pack order", :method => nil, :type => :serviceTask, :mid => 'sid-775863BE-8D29-4E31-B680-0AAF13FF034C', :parameters => {:form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_packorder.html", :role => "Sachbearbeiter"} }, finalize: <<-END
data.status = result['status']
END
end
end
call :a20, :activity, parameters: { :label => "ship order", :method => nil, :type => :serviceTask, :mid => 'sid-D06C4D11-F2BF-4A4B-BEE5-7713B74C14BB', :parameters => {:form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_sendorderToHandel.html", :role => "Sachbearbeiter"} }, finalize: <<-END
data.status = result['status']
END
call :a15, :activity, parameters: { :label => "Product has arrived", :method => nil, :type => :intermediateCatchEvent, :mid => 'sid-AF30D5E7-E6C3-46BB-B5CB-02271161F927', :parameters => {:form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_orderInHandel.html", :role => "Sachbearbeiter"} }, finalize: <<-END
data.status = result['status']
END
end
parallel :wait => -1 do
parallel_branch do
call :a6, :activity, parameters: { :label => "create bill", :method => nil, :type => :sendTask, :mid => 'sid-2D16EA3E-6B40-4A50-9B84-F8F94C412BDA', :parameters => {:form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_createBill.html", :role => "Sachbearbeiter"} }, finalize: <<-END
data.status = result['status']
END
end
parallel_branch do
call :a7, :activity, parameters: { :label => "pack order", :method => nil, :parameters => {:form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_packorder.html", :role => "Assistent"} }, finalize: <<-END
data.status = result['status']
END
end
end
call :a9, :activity, parameters: { :label => "ship order", :method => nil, :parameters => {:form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_shipOrder.html", :role => "Chef"} }, finalize: <<-END
data.status = result['status']
END
call :a30, :timeout, parameters: { :label => "Customer getted order", :method => nil, :parameters => {:timeout => 1} }
end
otherwise do
end
end
:post
"a0248291@unet.univie.ac.at"
"a024829"
data.status = result['status']
:post
"meintest@email.com"
"meintest"
1
123213213
"Name"
"Customer"
data.erfolg = result['erfolg']
1232132
data.loginData = result['logindata']
:post
data.products = result['product']
:post
"2015-12-12"
1111
0
123213213
"2015-12-15"
data.created = result['created']
:post
1111
10
4
data.created = result['created']
:post
1111
data.orders = result['orders']
:post
100
data.order = result['order']
:post
100
data.product = result['order']
:post
1
5
"Sachbearbeiter"
data.available = result['available']
:serviceTask
'sid-6AC4CA98-D1F6-47F0-979F-61CF0662E45B'
"Sachbearbeiter"
data.status = result['status']
:serviceTask
'sid-EC19A8E6-8F40-4F7A-AE44-471A775AE5BC'
"Sachbearbeiter"
data.status = result['status']
:task
'sid-F7E23A29-6BE3-4E19-BD30-CF9E1D67FA9D'
"Sachbearbeiter"
data.status = result['status']
:serviceTask
'sid-BD3670C9-1BF4-4757-9E01-18CB1A266396'
"Sachbearbeiter"
data.status = result['status']
:intermediateCatchEvent
'sid-A0777023-6600-411A-9219-1EC8C73AA060'
"Sachbearbeiter"
data.status = result['status']
:serviceTask
'sid-775863BE-8D29-4E31-B680-0AAF13FF034C'
"Sachbearbeiter"
data.status = result['status']
:serviceTask
'sid-D06C4D11-F2BF-4A4B-BEE5-7713B74C14BB'
"Sachbearbeiter"
data.status = result['status']
:intermediateCatchEvent
'sid-AF30D5E7-E6C3-46BB-B5CB-02271161F927'
"Sachbearbeiter"
data.status = result['status']
:sendTask
'sid-2D16EA3E-6B40-4A50-9B84-F8F94C412BDA'
"Sachbearbeiter"
data.status = result['status']
"Assistent"
data.status = result['status']
"Chef"
data.status = result['status']
1
0
undefined
:post
"a0248291@unet.univie.ac.at"
"a024829"
data.status = result['status']
:post
"meintest@email.com"
"meintest"
1
123213213
"Name"
"Customer"
data.erfolg = result['erfolg']
1232132
data.loginData = result['logindata']
:post
data.products = result['product']
:post
"2015-12-12"
1111
0
123213213
"2015-12-15"
data.created = result['created']
:post
1111
10
4
data.created = result['created']
:post
1111
data.orders = result['orders']
:post
100
data.order = result['order']
:post
100
data.product = result['order']
:post
1
5
"Sachbearbeiter"
data.available = result['available']
:serviceTask
'sid-6AC4CA98-D1F6-47F0-979F-61CF0662E45B'
"Sachbearbeiter"
data.status = result['status']
:serviceTask
'sid-EC19A8E6-8F40-4F7A-AE44-471A775AE5BC'
"Sachbearbeiter"
data.status = result['status']
:task
'sid-F7E23A29-6BE3-4E19-BD30-CF9E1D67FA9D'
"Sachbearbeiter"
data.status = result['status']
:serviceTask
'sid-BD3670C9-1BF4-4757-9E01-18CB1A266396'
"Sachbearbeiter"
data.status = result['status']
:intermediateCatchEvent
'sid-A0777023-6600-411A-9219-1EC8C73AA060'
"Sachbearbeiter"
data.status = result['status']
:serviceTask
'sid-775863BE-8D29-4E31-B680-0AAF13FF034C'
"Sachbearbeiter"
data.status = result['status']
:serviceTask
'sid-D06C4D11-F2BF-4A4B-BEE5-7713B74C14BB'
"Sachbearbeiter"
data.status = result['status']
:intermediateCatchEvent
'sid-AF30D5E7-E6C3-46BB-B5CB-02271161F927'
"Sachbearbeiter"
data.status = result['status']
:sendTask
'sid-2D16EA3E-6B40-4A50-9B84-F8F94C412BDA'
"Sachbearbeiter"
data.status = result['status']
"Assistent"
data.status = result['status']
"Chef"
data.status = result['status']
1