Skip to content

Commit

Permalink
🔧 Re-add purified conf file
Browse files Browse the repository at this point in the history
  • Loading branch information
ff137 committed Feb 8, 2024
1 parent 7f0477d commit de14330
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main/resources/application.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
purchase-proto {
places = ["start", "shopping-cart", "payment", "delivery", "end"]
transitions = ["order", "checkout", "deliver","done"]

start = { place = "start", weight = 2, initial-params = ["did","location"]}
end = "end"
weights = [
{start = "start", transition = "order", end = "shopping-cart", action = "create-order", action-params = ["order-date", "order-id", "order-name", "order-description", "order-amount"]},
{start = "shopping-cart", transition = "order", end = "shopping-cart", action = "create-order", action-params = ["order-date", "order-id", "order-name", "order-description", "order-amount", "checkout"]},
{start = "shopping-cart", transition = "checkout", end = "payment", action = "pay-order", action-params = ["order-id", "order-description", "order-amount"]},
{start = "payment", transition = "deliver", end = "delivery", action = "receive-order", action-params = ["order-id", "location"]},
{start = "delivery", transition = "done", end = "end", action = "complete-order", action-params = ["order-id", "order-amount"]},
]
}

0 comments on commit de14330

Please sign in to comment.