diff --git a/durable_rules_manual.html b/durable_rules_manual.html deleted file mode 100644 index 88ff393..0000000 --- a/durable_rules_manual.html +++ /dev/null @@ -1,9318 +0,0 @@ - - - - - -durable_rules_manual - - - - - - - - - - - - -
-
- -
-
- -
-
- -
-
- -
-
- -
- -
-
- -
- -
- - -
-
- -
- -
- - -
-
- -
- -
- - -
-
- -
- - -
-
- -
-
- -
-
- -
- -
- - -
-
- -
- -
- - -
- - -
- - -
- - -
-
- -
-
- -
-
- -
- - -
-
- -
- - -
-
- -
- - -
-
- -
- - -
-
- -
- - -
-
- -
- -
-
- -
-
- -
- - -
-
- -
- - -
-
- -
- - -
-
- -
- - -
-
- -
-
- -
- - -
-
- -
-
- -
- - -
-
- -
-
- -
- - -
-
- -
- - -
-
- -
- -
-
- -
- -
-
- - diff --git a/durable_rules_manual.ipynb b/durable_rules_manual.ipynb index 37427d8..21525c4 100644 --- a/durable_rules_manual.ipynb +++ b/durable_rules_manual.ipynb @@ -818,24 +818,9 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "ename": "Exception", - "evalue": "Ruleset with name risk already registered", - "output_type": "error", - "traceback": [ - "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m", - "\u001b[1;31mException\u001b[0m Traceback (most recent call last)", - "\u001b[1;32mc:\\Users\\hykim\\Desktop\\04_durable_rules\\durable_rules_manual.ipynb Cell 42\u001b[0m line \u001b[0;36m1\n\u001b[0;32m 14\u001b[0m \u001b[39mprint\u001b[39m(\u001b[39m'\u001b[39m\u001b[39mfraud detected ->\u001b[39m\u001b[39m{0}\u001b[39;00m\u001b[39m'\u001b[39m\u001b[39m.\u001b[39mformat(c\u001b[39m.\u001b[39msecond\u001b[39m.\u001b[39mamount))\n\u001b[0;32m 16\u001b[0m \u001b[39m# post('risk', { 'debit': 220, 'credit': 100 })\u001b[39;00m\n\u001b[0;32m 17\u001b[0m \u001b[39m# post('risk', { 'debit': 150, 'credit': 100 })\u001b[39;00m\n\u001b[1;32m---> 18\u001b[0m post(\u001b[39m'\u001b[39;49m\u001b[39mrisk\u001b[39;49m\u001b[39m'\u001b[39;49m, { \u001b[39m'\u001b[39;49m\u001b[39mamount\u001b[39;49m\u001b[39m'\u001b[39;49m: \u001b[39m200\u001b[39;49m })\n\u001b[0;32m 19\u001b[0m post(\u001b[39m'\u001b[39m\u001b[39mrisk\u001b[39m\u001b[39m'\u001b[39m, { \u001b[39m'\u001b[39m\u001b[39mamount\u001b[39m\u001b[39m'\u001b[39m: \u001b[39m500\u001b[39m })\n", - "File \u001b[1;32m~\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python310\\site-packages\\durable\\lang.py:670\u001b[0m, in \u001b[0;36mpost\u001b[1;34m(ruleset_name, message, complete)\u001b[0m\n\u001b[0;32m 669\u001b[0m \u001b[39mdef\u001b[39;00m \u001b[39mpost\u001b[39m(ruleset_name, message, complete \u001b[39m=\u001b[39m \u001b[39mNone\u001b[39;00m):\n\u001b[1;32m--> 670\u001b[0m \u001b[39mreturn\u001b[39;00m get_host()\u001b[39m.\u001b[39mpost(ruleset_name, message, complete)\n", - "File \u001b[1;32m~\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python310\\site-packages\\durable\\lang.py:663\u001b[0m, in \u001b[0;36mget_host\u001b[1;34m()\u001b[0m\n\u001b[0;32m 660\u001b[0m full_name, ruleset_definition \u001b[39m=\u001b[39m rset\u001b[39m.\u001b[39mdefine()\n\u001b[0;32m 661\u001b[0m ruleset_definitions[full_name] \u001b[39m=\u001b[39m ruleset_definition\n\u001b[1;32m--> 663\u001b[0m _main_host\u001b[39m.\u001b[39;49mregister_rulesets(ruleset_definitions)\n\u001b[0;32m 664\u001b[0m \u001b[39mfinally\u001b[39;00m:\n\u001b[0;32m 665\u001b[0m _rulesets \u001b[39m=\u001b[39m {}\n", - "File \u001b[1;32m~\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python310\\site-packages\\durable\\engine.py:890\u001b[0m, in \u001b[0;36mHost.register_rulesets\u001b[1;34m(self, ruleset_definitions)\u001b[0m\n\u001b[0;32m 888\u001b[0m \u001b[39mfor\u001b[39;00m ruleset_name, ruleset \u001b[39min\u001b[39;00m rulesets\u001b[39m.\u001b[39mitems():\n\u001b[0;32m 889\u001b[0m \u001b[39mif\u001b[39;00m ruleset_name \u001b[39min\u001b[39;00m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_ruleset_directory:\n\u001b[1;32m--> 890\u001b[0m \u001b[39mraise\u001b[39;00m \u001b[39mException\u001b[39;00m(\u001b[39m'\u001b[39m\u001b[39mRuleset with name \u001b[39m\u001b[39m{0}\u001b[39;00m\u001b[39m already registered\u001b[39m\u001b[39m'\u001b[39m\u001b[39m.\u001b[39mformat(ruleset_name))\n\u001b[0;32m 891\u001b[0m \u001b[39melse\u001b[39;00m: \n\u001b[0;32m 892\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_ruleset_directory[ruleset_name] \u001b[39m=\u001b[39m ruleset\n", - "\u001b[1;31mException\u001b[0m: Ruleset with name risk already registered" - ] - } - ], + "outputs": [], "source": [ "from durable.lang import *\n", "\n",