Files
2022B2-REB/Assignment-3/shipper.ol
NikolajDanger 0844b209b1
2023-01-13 14:30:29 +01:00

29 lines
666 B
Plaintext

from SellerShipperServiceInterfaceModule import ShipperInterface
from BuyerServiceInterfaceModule import BuyerShipperInterface
include "console.iol"
service ShipperService {
execution { concurrent }
outputPort Buyer {
location: "socket://localhost:9003"
protocol: http { format = "json" }
interfaces: BuyerShipperInterface
}
inputPort SellerShipper {
Location: "socket://localhost:9006"
Protocol: http { format = "json" }
Interfaces: ShipperInterface
}
main {
[order(product)] {
println@Console( "Order placed" )()
details@Buyer("Invoice for '" + product + "'")
}
}
}