Logic Phase:		ROW LOGIC(session=0x1097e4940) (sqlalchemy before_flush)			 - 2022-03-24 18:48:24,373 - logic_logger - INFO
..Order[10643] {Update - client} Id: 10643, CustomerId: ALFKI, EmployeeId: 6, OrderDate: 2013-08-25, RequiredDate: 2013-10-13, ShippedDate:  [None-->] 2013-10-13, ShipVia: 1, Freight: 29.4600000000, ShipName: Alfreds Futterkiste, ShipAddress: Obere Str. 57, ShipCity: Berlin, ShipRegion: Western Europe, ShipPostalCode: 12209, ShipCountry: Germany, AmountTotal: 1086.00, Country: None, City: None, Ready: True, OrderDetailCount: 3  row: 0x1097b35b0  session: 0x1097e4940 - 2022-03-24 18:48:24,374 - logic_logger - INFO
....Customer[ALFKI] {Update - Adjusting Customer: Balance, UnpaidOrderCount} Id: ALFKI, CompanyName: Alfreds Futterkiste, ContactName: Maria Anders, ContactTitle: Sales Representative, Address: Obere Str. 57A, City: Berlin, Region: Western Europe, PostalCode: 12209, Country: Germany, Phone: 030-0074321, Fax: 030-0076545, Balance:  [2102.0000000000-->] 1016.0000000000, CreditLimit: 2300.0000000000, OrderCount: 15, UnpaidOrderCount:  [10-->] 9  row: 0x1093eb8e0  session: 0x1097e4940 - 2022-03-24 18:48:24,375 - logic_logger - INFO
....OrderDetail[1040] {Update - Cascading Order.ShippedDate (,...)} Id: 1040, OrderId: 10643, ProductId: 28, UnitPrice: 45.6000000000, Quantity: 15, Discount: 0.25, Amount: 684.0000000000, ShippedDate: None  row: 0x109834a30  session: 0x1097e4940 - 2022-03-24 18:48:24,377 - logic_logger - INFO
....OrderDetail[1040] {Prune Formula: Amount [['UnitPrice', 'Quantity']]} Id: 1040, OrderId: 10643, ProductId: 28, UnitPrice: 45.6000000000, Quantity: 15, Discount: 0.25, Amount: 684.0000000000, ShippedDate: None  row: 0x109834a30  session: 0x1097e4940 - 2022-03-24 18:48:24,377 - logic_logger - INFO
....OrderDetail[1040] {Formula ShippedDate} Id: 1040, OrderId: 10643, ProductId: 28, UnitPrice: 45.6000000000, Quantity: 15, Discount: 0.25, Amount: 684.0000000000, ShippedDate:  [None-->] 2013-10-13  row: 0x109834a30  session: 0x1097e4940 - 2022-03-24 18:48:24,378 - logic_logger - INFO
......Product[28] {Update - Adjusting Product: UnitsShipped} Id: 28, ProductName: Rössle Sauerkraut, SupplierId: 12, CategoryId: 7, QuantityPerUnit: 25 - 825 g cans, UnitPrice: 45.6000000000, UnitsInStock: 26, UnitsOnOrder: 0, ReorderLevel: 0, Discontinued: 1, UnitsShipped:  [0-->] -15  row: 0x1097e4850  session: 0x1097e4940 - 2022-03-24 18:48:24,379 - logic_logger - INFO
......Product[28] {Formula UnitsInStock} Id: 28, ProductName: Rössle Sauerkraut, SupplierId: 12, CategoryId: 7, QuantityPerUnit: 25 - 825 g cans, UnitPrice: 45.6000000000, UnitsInStock:  [26-->] 41, UnitsOnOrder: 0, ReorderLevel: 0, Discontinued: 1, UnitsShipped:  [0-->] -15  row: 0x1097e4850  session: 0x1097e4940 - 2022-03-24 18:48:24,379 - logic_logger - INFO
....OrderDetail[1041] {Update - Cascading Order.ShippedDate (,...)} Id: 1041, OrderId: 10643, ProductId: 39, UnitPrice: 18.0000000000, Quantity: 21, Discount: 0.25, Amount: 378.0000000000, ShippedDate: None  row: 0x1098348b0  session: 0x1097e4940 - 2022-03-24 18:48:24,380 - logic_logger - INFO
....OrderDetail[1041] {Prune Formula: Amount [['UnitPrice', 'Quantity']]} Id: 1041, OrderId: 10643, ProductId: 39, UnitPrice: 18.0000000000, Quantity: 21, Discount: 0.25, Amount: 378.0000000000, ShippedDate: None  row: 0x1098348b0  session: 0x1097e4940 - 2022-03-24 18:48:24,380 - logic_logger - INFO
....OrderDetail[1041] {Formula ShippedDate} Id: 1041, OrderId: 10643, ProductId: 39, UnitPrice: 18.0000000000, Quantity: 21, Discount: 0.25, Amount: 378.0000000000, ShippedDate:  [None-->] 2013-10-13  row: 0x1098348b0  session: 0x1097e4940 - 2022-03-24 18:48:24,380 - logic_logger - INFO
......Product[39] {Update - Adjusting Product: UnitsShipped} Id: 39, ProductName: Chartreuse verte, SupplierId: 18, CategoryId: 1, QuantityPerUnit: 750 cc per bottle, UnitPrice: 18.0000000000, UnitsInStock: 69, UnitsOnOrder: 0, ReorderLevel: 5, Discontinued: 0, UnitsShipped:  [0-->] -21  row: 0x1097e4a60  session: 0x1097e4940 - 2022-03-24 18:48:24,381 - logic_logger - INFO
......Product[39] {Formula UnitsInStock} Id: 39, ProductName: Chartreuse verte, SupplierId: 18, CategoryId: 1, QuantityPerUnit: 750 cc per bottle, UnitPrice: 18.0000000000, UnitsInStock:  [69-->] 90, UnitsOnOrder: 0, ReorderLevel: 5, Discontinued: 0, UnitsShipped:  [0-->] -21  row: 0x1097e4a60  session: 0x1097e4940 - 2022-03-24 18:48:24,382 - logic_logger - INFO
....OrderDetail[1042] {Update - Cascading Order.ShippedDate (,...)} Id: 1042, OrderId: 10643, ProductId: 46, UnitPrice: 12.0000000000, Quantity: 2, Discount: 0.25, Amount: 24.0000000000, ShippedDate: None  row: 0x109834400  session: 0x1097e4940 - 2022-03-24 18:48:24,382 - logic_logger - INFO
....OrderDetail[1042] {Prune Formula: Amount [['UnitPrice', 'Quantity']]} Id: 1042, OrderId: 10643, ProductId: 46, UnitPrice: 12.0000000000, Quantity: 2, Discount: 0.25, Amount: 24.0000000000, ShippedDate: None  row: 0x109834400  session: 0x1097e4940 - 2022-03-24 18:48:24,383 - logic_logger - INFO
....OrderDetail[1042] {Formula ShippedDate} Id: 1042, OrderId: 10643, ProductId: 46, UnitPrice: 12.0000000000, Quantity: 2, Discount: 0.25, Amount: 24.0000000000, ShippedDate:  [None-->] 2013-10-13  row: 0x109834400  session: 0x1097e4940 - 2022-03-24 18:48:24,383 - logic_logger - INFO
......Product[46] {Update - Adjusting Product: UnitsShipped} Id: 46, ProductName: Spegesild, SupplierId: 21, CategoryId: 8, QuantityPerUnit: 4 - 450 g glasses, UnitPrice: 12.0000000000, UnitsInStock: 95, UnitsOnOrder: 0, ReorderLevel: 0, Discontinued: 0, UnitsShipped:  [0-->] -2  row: 0x1097e4520  session: 0x1097e4940 - 2022-03-24 18:48:24,384 - logic_logger - INFO
......Product[46] {Formula UnitsInStock} Id: 46, ProductName: Spegesild, SupplierId: 21, CategoryId: 8, QuantityPerUnit: 4 - 450 g glasses, UnitPrice: 12.0000000000, UnitsInStock:  [95-->] 97, UnitsOnOrder: 0, ReorderLevel: 0, Discontinued: 0, UnitsShipped:  [0-->] -2  row: 0x1097e4520  session: 0x1097e4940 - 2022-03-24 18:48:24,384 - logic_logger - INFO
Logic Phase:		COMMIT(session=0x1097e4940)   										 - 2022-03-24 18:48:24,385 - logic_logger - INFO
..Order[10643] {Commit Event} Id: 10643, CustomerId: ALFKI, EmployeeId: 6, OrderDate: 2013-08-25, RequiredDate: 2013-10-13, ShippedDate:  [None-->] 2013-10-13, ShipVia: 1, Freight: 29.4600000000, ShipName: Alfreds Futterkiste, ShipAddress: Obere Str. 57, ShipCity: Berlin, ShipRegion: Western Europe, ShipPostalCode: 12209, ShipCountry: Germany, AmountTotal: 1086.00, Country: None, City: None, Ready: True, OrderDetailCount: 3  row: 0x1097b35b0  session: 0x1097e4940 - 2022-03-24 18:48:24,386 - logic_logger - INFO

Rules Fired:		## - 2022-03-24 18:48:24,386 - logic_logger - INFO
  Customer		## - 2022-03-24 18:48:24,387 - logic_logger - INFO
    1. Derive Customer.UnpaidOrderCount as Count(<class 'database.models.Order'> Where <function declare_logic.<locals>.<lambda> at 0x1090b09d0>)		## - 2022-03-24 18:48:24,387 - logic_logger - INFO
    2. Derive Customer.OrderCount as Count(<class 'database.models.Order'> Where None)		## - 2022-03-24 18:48:24,387 - logic_logger - INFO
    3. Derive Customer.Balance as Sum(Order.AmountTotal Where <function declare_logic.<locals>.<lambda> at 0x1090a8c10>)		## - 2022-03-24 18:48:24,387 - logic_logger - INFO
  Order		## - 2022-03-24 18:48:24,387 - logic_logger - INFO
    4. Derive Order.AmountTotal as Sum(OrderDetail.Amount Where None)		## - 2022-03-24 18:48:24,387 - logic_logger - INFO
    5. Derive Order.OrderDetailCount as Count(<class 'database.models.OrderDetail'> Where None)		## - 2022-03-24 18:48:24,387 - logic_logger - INFO
    6. RowEvent Order.congratulate_sales_rep() 		## - 2022-03-24 18:48:24,387 - logic_logger - INFO
  OrderDetail		## - 2022-03-24 18:48:24,387 - logic_logger - INFO
    7. Derive OrderDetail.ShippedDate as Formula (2): row.Order.ShippedDate		## - 2022-03-24 18:48:24,387 - logic_logger - INFO
  Product		## - 2022-03-24 18:48:24,387 - logic_logger - INFO
    8. Derive Product.UnitsInStock as Formula (1): <function>		## - 2022-03-24 18:48:24,387 - logic_logger - INFO
    9. Derive Product.UnitsShipped as Sum(OrderDetail.Quantity Where <function declare_logic.<locals>.<lambda> at 0x1090b0790>)		## - 2022-03-24 18:48:24,387 - logic_logger - INFO

 - 2022-03-24 18:48:24,387 - logic_logger - INFO
Logic Phase:		FLUSH(session=0x1097e4940)   (sqlalchemy flush processing)       	 - 2022-03-24 18:48:24,387 - logic_logger - INFO
Logic Phase:		ROW LOGIC(session=0x109820820) (sqlalchemy before_flush)			 - 2022-03-24 18:48:24,418 - logic_logger - INFO
..Order[10643] {Update - client} Id: 10643, CustomerId: ALFKI, EmployeeId: 6, OrderDate: 2013-08-25, RequiredDate: 2013-10-13, ShippedDate:  [2013-10-13-->] None, ShipVia: 1, Freight: 29.4600000000, ShipName: Alfreds Futterkiste, ShipAddress: Obere Str. 57, ShipCity: Berlin, ShipRegion: Western Europe, ShipPostalCode: 12209, ShipCountry: Germany, AmountTotal: 1086.00, Country: None, City: None, Ready: True, OrderDetailCount: 3  row: 0x1098274c0  session: 0x109820820 - 2022-03-24 18:48:24,419 - logic_logger - INFO
....Customer[ALFKI] {Update - Adjusting Customer: Balance, UnpaidOrderCount} Id: ALFKI, CompanyName: Alfreds Futterkiste, ContactName: Maria Anders, ContactTitle: Sales Representative, Address: Obere Str. 57A, City: Berlin, Region: Western Europe, PostalCode: 12209, Country: Germany, Phone: 030-0074321, Fax: 030-0076545, Balance:  [1016.0000000000-->] 2102.0000000000, CreditLimit: 2300.0000000000, OrderCount: 15, UnpaidOrderCount:  [9-->] 10  row: 0x109827700  session: 0x109820820 - 2022-03-24 18:48:24,420 - logic_logger - INFO
....OrderDetail[1040] {Update - Cascading Order.ShippedDate (,...)} Id: 1040, OrderId: 10643, ProductId: 28, UnitPrice: 45.6000000000, Quantity: 15, Discount: 0.25, Amount: 684.0000000000, ShippedDate: 2013-10-13  row: 0x109834370  session: 0x109820820 - 2022-03-24 18:48:24,422 - logic_logger - INFO
....OrderDetail[1040] {Prune Formula: Amount [['UnitPrice', 'Quantity']]} Id: 1040, OrderId: 10643, ProductId: 28, UnitPrice: 45.6000000000, Quantity: 15, Discount: 0.25, Amount: 684.0000000000, ShippedDate: 2013-10-13  row: 0x109834370  session: 0x109820820 - 2022-03-24 18:48:24,422 - logic_logger - INFO
....OrderDetail[1040] {Formula ShippedDate} Id: 1040, OrderId: 10643, ProductId: 28, UnitPrice: 45.6000000000, Quantity: 15, Discount: 0.25, Amount: 684.0000000000, ShippedDate:  [2013-10-13-->] None  row: 0x109834370  session: 0x109820820 - 2022-03-24 18:48:24,423 - logic_logger - INFO
......Product[28] {Update - Adjusting Product: UnitsShipped} Id: 28, ProductName: Rössle Sauerkraut, SupplierId: 12, CategoryId: 7, QuantityPerUnit: 25 - 825 g cans, UnitPrice: 45.6000000000, UnitsInStock: 41, UnitsOnOrder: 0, ReorderLevel: 0, Discontinued: 1, UnitsShipped:  [-15-->] 0  row: 0x109827e20  session: 0x109820820 - 2022-03-24 18:48:24,424 - logic_logger - INFO
......Product[28] {Formula UnitsInStock} Id: 28, ProductName: Rössle Sauerkraut, SupplierId: 12, CategoryId: 7, QuantityPerUnit: 25 - 825 g cans, UnitPrice: 45.6000000000, UnitsInStock:  [41-->] 26, UnitsOnOrder: 0, ReorderLevel: 0, Discontinued: 1, UnitsShipped:  [-15-->] 0  row: 0x109827e20  session: 0x109820820 - 2022-03-24 18:48:24,424 - logic_logger - INFO
....OrderDetail[1041] {Update - Cascading Order.ShippedDate (,...)} Id: 1041, OrderId: 10643, ProductId: 39, UnitPrice: 18.0000000000, Quantity: 21, Discount: 0.25, Amount: 378.0000000000, ShippedDate: 2013-10-13  row: 0x109834700  session: 0x109820820 - 2022-03-24 18:48:24,425 - logic_logger - INFO
....OrderDetail[1041] {Prune Formula: Amount [['UnitPrice', 'Quantity']]} Id: 1041, OrderId: 10643, ProductId: 39, UnitPrice: 18.0000000000, Quantity: 21, Discount: 0.25, Amount: 378.0000000000, ShippedDate: 2013-10-13  row: 0x109834700  session: 0x109820820 - 2022-03-24 18:48:24,425 - logic_logger - INFO
....OrderDetail[1041] {Formula ShippedDate} Id: 1041, OrderId: 10643, ProductId: 39, UnitPrice: 18.0000000000, Quantity: 21, Discount: 0.25, Amount: 378.0000000000, ShippedDate:  [2013-10-13-->] None  row: 0x109834700  session: 0x109820820 - 2022-03-24 18:48:24,425 - logic_logger - INFO
......Product[39] {Update - Adjusting Product: UnitsShipped} Id: 39, ProductName: Chartreuse verte, SupplierId: 18, CategoryId: 1, QuantityPerUnit: 750 cc per bottle, UnitPrice: 18.0000000000, UnitsInStock: 90, UnitsOnOrder: 0, ReorderLevel: 5, Discontinued: 0, UnitsShipped:  [-21-->] 0  row: 0x1097ff8b0  session: 0x109820820 - 2022-03-24 18:48:24,426 - logic_logger - INFO
......Product[39] {Formula UnitsInStock} Id: 39, ProductName: Chartreuse verte, SupplierId: 18, CategoryId: 1, QuantityPerUnit: 750 cc per bottle, UnitPrice: 18.0000000000, UnitsInStock:  [90-->] 69, UnitsOnOrder: 0, ReorderLevel: 5, Discontinued: 0, UnitsShipped:  [-21-->] 0  row: 0x1097ff8b0  session: 0x109820820 - 2022-03-24 18:48:24,427 - logic_logger - INFO
....OrderDetail[1042] {Update - Cascading Order.ShippedDate (,...)} Id: 1042, OrderId: 10643, ProductId: 46, UnitPrice: 12.0000000000, Quantity: 2, Discount: 0.25, Amount: 24.0000000000, ShippedDate: 2013-10-13  row: 0x109834820  session: 0x109820820 - 2022-03-24 18:48:24,427 - logic_logger - INFO
....OrderDetail[1042] {Prune Formula: Amount [['UnitPrice', 'Quantity']]} Id: 1042, OrderId: 10643, ProductId: 46, UnitPrice: 12.0000000000, Quantity: 2, Discount: 0.25, Amount: 24.0000000000, ShippedDate: 2013-10-13  row: 0x109834820  session: 0x109820820 - 2022-03-24 18:48:24,428 - logic_logger - INFO
....OrderDetail[1042] {Formula ShippedDate} Id: 1042, OrderId: 10643, ProductId: 46, UnitPrice: 12.0000000000, Quantity: 2, Discount: 0.25, Amount: 24.0000000000, ShippedDate:  [2013-10-13-->] None  row: 0x109834820  session: 0x109820820 - 2022-03-24 18:48:24,428 - logic_logger - INFO
......Product[46] {Update - Adjusting Product: UnitsShipped} Id: 46, ProductName: Spegesild, SupplierId: 21, CategoryId: 8, QuantityPerUnit: 4 - 450 g glasses, UnitPrice: 12.0000000000, UnitsInStock: 97, UnitsOnOrder: 0, ReorderLevel: 0, Discontinued: 0, UnitsShipped:  [-2-->] 0  row: 0x1097ffe50  session: 0x109820820 - 2022-03-24 18:48:24,429 - logic_logger - INFO
......Product[46] {Formula UnitsInStock} Id: 46, ProductName: Spegesild, SupplierId: 21, CategoryId: 8, QuantityPerUnit: 4 - 450 g glasses, UnitPrice: 12.0000000000, UnitsInStock:  [97-->] 95, UnitsOnOrder: 0, ReorderLevel: 0, Discontinued: 0, UnitsShipped:  [-2-->] 0  row: 0x1097ffe50  session: 0x109820820 - 2022-03-24 18:48:24,429 - logic_logger - INFO
Logic Phase:		COMMIT(session=0x109820820)   										 - 2022-03-24 18:48:24,430 - logic_logger - INFO
..Order[10643] {Commit Event} Id: 10643, CustomerId: ALFKI, EmployeeId: 6, OrderDate: 2013-08-25, RequiredDate: 2013-10-13, ShippedDate:  [2013-10-13-->] None, ShipVia: 1, Freight: 29.4600000000, ShipName: Alfreds Futterkiste, ShipAddress: Obere Str. 57, ShipCity: Berlin, ShipRegion: Western Europe, ShipPostalCode: 12209, ShipCountry: Germany, AmountTotal: 1086.00, Country: None, City: None, Ready: True, OrderDetailCount: 3  row: 0x1098274c0  session: 0x109820820 - 2022-03-24 18:48:24,430 - logic_logger - INFO

Rules Fired:		## - 2022-03-24 18:48:24,431 - logic_logger - INFO
  Customer		## - 2022-03-24 18:48:24,431 - logic_logger - INFO
    1. Derive Customer.UnpaidOrderCount as Count(<class 'database.models.Order'> Where <function declare_logic.<locals>.<lambda> at 0x1090b09d0>)		## - 2022-03-24 18:48:24,431 - logic_logger - INFO
    2. Derive Customer.OrderCount as Count(<class 'database.models.Order'> Where None)		## - 2022-03-24 18:48:24,431 - logic_logger - INFO
    3. Derive Customer.Balance as Sum(Order.AmountTotal Where <function declare_logic.<locals>.<lambda> at 0x1090a8c10>)		## - 2022-03-24 18:48:24,431 - logic_logger - INFO
  Order		## - 2022-03-24 18:48:24,431 - logic_logger - INFO
    4. Derive Order.AmountTotal as Sum(OrderDetail.Amount Where None)		## - 2022-03-24 18:48:24,431 - logic_logger - INFO
    5. Derive Order.OrderDetailCount as Count(<class 'database.models.OrderDetail'> Where None)		## - 2022-03-24 18:48:24,432 - logic_logger - INFO
    6. RowEvent Order.congratulate_sales_rep() 		## - 2022-03-24 18:48:24,432 - logic_logger - INFO
  OrderDetail		## - 2022-03-24 18:48:24,432 - logic_logger - INFO
    7. Derive OrderDetail.ShippedDate as Formula (2): row.Order.ShippedDate		## - 2022-03-24 18:48:24,432 - logic_logger - INFO
  Product		## - 2022-03-24 18:48:24,432 - logic_logger - INFO
    8. Derive Product.UnitsInStock as Formula (1): <function>		## - 2022-03-24 18:48:24,432 - logic_logger - INFO
    9. Derive Product.UnitsShipped as Sum(OrderDetail.Quantity Where <function declare_logic.<locals>.<lambda> at 0x1090b0790>)		## - 2022-03-24 18:48:24,432 - logic_logger - INFO

 - 2022-03-24 18:48:24,432 - logic_logger - INFO
Logic Phase:		FLUSH(session=0x109820820)   (sqlalchemy flush processing)       	 - 2022-03-24 18:48:24,432 - logic_logger - INFO
