Namdak Tonpa 5 лет назад
Родитель
Сommit
27bfb233fb
2 измененных файлов с 29 добавлено и 1 удалено
  1. 28 1
      index.html
  2. 1 0
      rebar.config

+ 28 - 1
index.html

@@ -156,7 +156,7 @@
  "Payment","docs":[],"time":{"time":"{{2019,10,5},{21,21,51}}"}}]}
         </code></figure>
 
-        <p>Retrieve Step 2 from Process 288117946539000:</p>
+        <p>Retrieve Step 2 from process 288117946539000:</p>
         <figure><code>
  curl -X GET localhost:8005/rest/kvs/1/step,0,288117946539000/bpe/hist/288117946539000
  {"id":{"id":2,"proc":"288117946539000"},"container":"feed","feed_id":[],
@@ -164,6 +164,33 @@
  {"time":"{{2019,10,5},{21,21,51}}"}}
         </code></figure>
 
+        <p>Retrieve all processes:</p>
+        <figure><code>
+ $ curl -X GET http://localhost:8005/rest/kvs/0/bpe/proc
+ {"\/bpe\/proc":[{"id":"288117946539000","container":"feed","feed_id":[],
+ "prev":[],"next":[],"name":"IBAN Account","feeds":[],"roles":[],"tasks":
+ [{"name":"Created","module":"bpe_account","prompt":[],"etc":[]},{"name":
+ "Init","module":"bpe_account","prompt":[],"roles":[],"etc":[]},{"name":
+ "Upload","module":"bpe_account","prompt":[],"roles":[],"etc":[]},{"name":
+ "Signatory","module":"bpe_account","prompt":[],"roles":[],"etc":[]},{"name":
+ "Payment","module":"bpe_account","prompt":[],"roles":[],"etc":[]},{"name":
+ "Process","module":"bpe_account","prompt":[],"roles":[],"etc":[]},{"name":
+ "Final","module":"bpe_account","prompt":[],"etc":[]}],"events":[{"name":
+ "PaymentReceived","module":[],"prompt":[],"etc":[],"payload":[],"timeout":[]},
+ {"name":"*","module":[],"prompt":[],"etc":[],"payload":[],"timeout":
+ {"spec":"{0,{10,0,10}}"},"timeDate":[],"timeDuration":[],"timeCycle":[]}],
+ "hist":[],"flows":[{"name":[],"condition":[],"source":"Created","target":
+ "Init"},{"name":[],"condition":[],"source":"Init","target":"Upload"},
+ {"name":[],"condition":[],"source":"Upload","target":"Payment"},
+ {"name":[],"condition":[],"source":"Payment","target":["Signatory",
+ "Process"]},{"name":[],"condition":[],"source":"Process","target":
+ ["Process","Final"]},{"name":[],"condition":[],"source":"Signatory",
+ "target":["Process","Final"]}],"rules":[],"docs":[],"options":[],
+ "task":"Created","timer":[],"notifications":"undefined","result":[],
+ "started":{"time":"{{2019,10,5},{22,5,20}}"},"beginEvent":"Created",
+ "endEvent":"Final"}]}
+        </code></figure>
+
     </section>
     <section>
         <h3>MODULES</h3>

+ 1 - 0
rebar.config

@@ -4,6 +4,7 @@
 {deps, [{n2o, ".*", {git, "git://github.com/synrc/n2o", {tag,"master"}}},
         {kvs, ".*", {git, "git://github.com/synrc/kvs", {tag,"master"}}},
         {dec, ".*", {git, "git://github.com/erpuno/dec", {tag,"master"}}},
+        {bpe, ".*", {git, "git://github.com/erpuno/erp", {tag,"master"}}},
         {erp, ".*", {git, "git://github.com/erpuno/erp", {tag,"master"}}},
         {jsone, ".*", {git, "git://github.com/sile/jsone", {tag,"master"}}},
         {syn, ".*", {git, "git://github.com/ostinelli/syn", {tag,"master"}}},