updated readme.txt
This commit is contained in:
11
applications/cafe-scripted/scripts/python/barista.py
Normal file
11
applications/cafe-scripted/scripts/python/barista.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from org.springframework.integration.samples.cafe import Drink
|
||||
import time
|
||||
|
||||
def prepareDrink(orderItem):
|
||||
print("python: preparing %s for order %s" % (orderItem,orderItem.order.number))
|
||||
time.sleep(eval(timeToPrepare))
|
||||
return Drink(orderItem.getOrder().getNumber(), orderItem.getDrinkType(), orderItem.isIced(),
|
||||
orderItem.getShots())
|
||||
|
||||
drink = prepareDrink(payload)
|
||||
|
||||
Reference in New Issue
Block a user