From 4f1141822e02423ccdc035510acd8b383d1455b9 Mon Sep 17 00:00:00 2001 From: sartography-automated-committer Date: Wed, 14 Jun 2023 16:51:28 +0000 Subject: [PATCH] User: admin@spiffworkflow.org clicked save for examples/1-basic-concepts/1-4-decisions/decision_example.bpmn --- .../1-4-decisions/decision_example.bpmn | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/1-basic-concepts/1-4-decisions/decision_example.bpmn b/examples/1-basic-concepts/1-4-decisions/decision_example.bpmn index 37d02b69..18721ed0 100644 --- a/examples/1-basic-concepts/1-4-decisions/decision_example.bpmn +++ b/examples/1-basic-concepts/1-4-decisions/decision_example.bpmn @@ -44,16 +44,16 @@ Please get in touch with us! We would love to help you define your business rul ### Order Details -The base price for your {{size}} Pizza is ${{base_price}}. +The base price for your {{size}} Pizza is {{ "${:,.2f}".format(base_price) }}. -Additional toppings for a {{size}} Pizza cost ${{cost_per_topping}}. +Additional toppings for a {{size}} Pizza cost {{ "${:,.2f}".format(cost_per_topping) }}. -The total cost of your pizza is ${{total_cost}}. +The total cost of your pizza is {{ "${:,.2f}".format(total_cost) }}. Thank you for your order! -#### Calcuations -We used a decision table to come up with the total costs. Decision tables, in the simplest form are a series of conditions stated like **IF** this is true **THEN** this is the result. You can open the file up by going to the Model and clicking on the pizza_prizes.dmn table. But here is a sample of what it conatins: +#### Calculations +We used a decision table to come up with the total costs. Decision tables, in the simplest form are a series of conditions stated like **IF** this is true **THEN** this is the result. You can open the file up by going to the Model and clicking on the pizza_prizes.dmn table. But here is a sample of what it contains: | when **Size** | then **base_price** | and **cost_per_topping** | @@ -63,6 +63,7 @@ We used a decision table to come up with the total costs. Decision tables, in t | "Large" | 16.00 | 2.00 | Decision tables are a great way to define a set of business requirements clearly and consistently, and in a way that is super easy to maintain over time. + total_cost = base_price + len(toppings) * cost_per_topping Flow_0e1e8hs Flow_0ynedxh