You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>While you don't have to use type annotations, it is highly recommended because it enables autocomplete in your IDE and helps you spot mistakes faster.
696
-
For our example we only need the DocumentReleaseEvent. It contains a list of documents that were released. Typically this will only be a single document, however it is best practices to iterate over all of the documents.</p>
696
+
For our example we only need the <ahref="../reference/events/#documentreleaseevent">DocumentReleaseEvent</a>. It contains a list of documents that were released. Typically this will only be a single document, however it is best practices to iterate over all of the documents.</p>
<aid="__codelineno-3-18" name="__codelineno-3-18" href="#__codelineno-3-18"></a><spanclass="k">return</span><spanclass="ne">ValueError</span><spanclass="p">(</span><spanclass="sa">f</span><spanclass="s2">"Failed to upload document to ERP. Got response code </span><spanclass="si">{</span><spanclass="n">res</span><spanclass="o">.</span><spanclass="n">status_code</span><spanclass="si">}</span><spanclass="s2">"</span><spanclass="p">)</span>
715
715
</code></pre></div>
716
+
<p>Here we send a payload, containing a few attributes from the released document, to <ahref="https://example.com">example.com</a>. This is just for illustration purposes!
717
+
Please refer to the documentation of your ERP system on how the request needs to be formatted and which endpoint and credentials to use.</p>
716
718
<h3id="register-the-function">Register the Function</h3>
717
719
<p>The Function needs to be registered in the <code>environment.yaml</code>:</p>
Copy file name to clipboardExpand all lines: reference/runtime/index.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -565,7 +565,7 @@
565
565
<h1>Python runtime</h1>
566
566
567
567
<p>This section is aimed at developers that want to build their own Functions-SDK.
568
-
If are building Functions with <strong>csfunctions</strong> you can skip this part.</p>
568
+
If you are building Functions with <strong>csfunctions</strong> you can skip this part.</p>
569
569
<h2id="architecture">Architecture</h2>
570
570
<p>Function environment are docker containers that run in AWS-lambda. The Python runtime utilizes awslambdaric to handle the requests. The Python runtime is part of the CIM Database Cloud Functions infrastructure and currently cannot be customized.</p>
571
571
<h2id="lambda-execute-function-request">Lambda "execute" Function request</h2>
@@ -592,7 +592,7 @@ <h2 id="lambda-execute-function-request">Lambda "execute" Function request</h2>
592
592
</code></pre></div></p>
593
593
<p>The return value of the execute method is the json encoded response payload.</p>
594
594
<h2id="payloads">Payloads</h2>
595
-
<p>The Request and response payloads are described in the CIM Database Cloud documentation. The functions-sdk-python GitHub repository also contains the complete JSON-schema files.</p>
595
+
<p>The Request and response payloads are described in the CIM Database Cloud documentation. The <ahref="https://github.com/cslab/functions-sdk-python">functions-sdk-python</a> GitHub repository also contains the complete <ahref="https://github.com/cslab/functions-sdk-python/tree/main/json_schemas">JSON-schema files</a>.</p>
0 commit comments