Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. private Mogram createExertionJob() throws Exception {
  2. Task coffee = task("coffee", sig("makeCoffee", CoffeeService.class), context(
  3. val("recipe/key", "espresso"),
  4. val("coffee/paid", 120),
  5. val("coffee/change"),
  6. val("recipe", getEspressoContext())));
  7.  
  8. Task delivery = task("delivery", sig("deliver", Delivery.class), context(
  9. val("location", "PJATK"),
  10. val("delivery/paid"),
  11. val("room", "101")));
  12.  
  13. Job drinkCoffee = job(coffee, delivery,
  14. pipe(outPoint(coffee, "coffee/change"), inPoint(delivery, "delivery/paid")));
  15.  
  16. return drinkCoffee;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement