From a27c1a2221cafd62994d6571af881a7dce171941 Mon Sep 17 00:00:00 2001 From: sartography-automated-committer Date: Thu, 26 Oct 2023 21:53:00 +0000 Subject: [PATCH] User: dbayless@humanscalebusiness.org added process model file playground/human-scale-business/test-process/Data Modification.bpmn --- .../test-process/Data Modification.bpmn | 131 ++++++++++++++++++ .../test-process/process_model.json | 4 +- 2 files changed, 133 insertions(+), 2 deletions(-) create mode 100644 playground/human-scale-business/test-process/Data Modification.bpmn diff --git a/playground/human-scale-business/test-process/Data Modification.bpmn b/playground/human-scale-business/test-process/Data Modification.bpmn new file mode 100644 index 00000000..4f9d7f6f --- /dev/null +++ b/playground/human-scale-business/test-process/Data Modification.bpmn @@ -0,0 +1,131 @@ + + + + + Flow_1nl5h18 + + + + + + + + + + Flow_1nl5h18 + Flow_1omdz2s + + + + + + + // Test Inputs +{ + "flag_stars": "12", + "longest_river": "nile", + "woman_nobel": "curie" +} + // Test Outputs +{ + "flag_stars": "12", + "longest": "nile", + "num_correct": 3, + "score": 100, + "woman_nobel": "curie" +} + + + + Flow_1omdz2s + Flow_1nzxnal + if flag_stars.lower().strip() == "twelve": + num_correct += 1 +elif int(flag_stars) == 12: + num_correct += 1 + +if "nile" in longest.lower(): + num_correct += 1 + +if "curie" in woman_nobel.lower(): + num_correct += 1 + +score = int(num_correct / 3 * 100) + + + + + # Initialize denominator +k = 1 + +# Initialize sum +s = 0 + +for i in range(1000000): + + # even index elements are positive + if i % 2 == 0: + s += 4/k + else: + + # odd index elements are negative + s -= 4/k + + # denominator is odd + k += 2 + +pi = s +del(k) + + Flow_1nzxnal + Flow_00h8381 + + + Flow_00h8381 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/playground/human-scale-business/test-process/process_model.json b/playground/human-scale-business/test-process/process_model.json index de37750b..6717e2a2 100644 --- a/playground/human-scale-business/test-process/process_model.json +++ b/playground/human-scale-business/test-process/process_model.json @@ -6,6 +6,6 @@ ], "fault_or_suspend_on_exception": "fault", "metadata_extraction_paths": null, - "primary_file_name": null, - "primary_process_id": null + "primary_file_name": "Data Modification.bpmn", + "primary_process_id": "Process_gvu6xe0" } \ No newline at end of file