This is an automated email from the ASF dual-hosted git repository.

fjtiradosarti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-docs.git


The following commit(s) were added to refs/heads/main by this push:
     new d6fa9946e [Fix apache/incubator-kie-kogito-runtimes#4138] Protocol in 
custom rest (#742)
d6fa9946e is described below

commit d6fa9946ee9dbddb0bfce67c7b82e193f4d2f630
Author: Francisco Javier Tirado Sarti 
<[email protected]>
AuthorDate: Fri Dec 12 17:10:49 2025 +0100

    [Fix apache/incubator-kie-kogito-runtimes#4138] Protocol in custom rest 
(#742)
    
    Signed-off-by: fjtirado <[email protected]>
---
 .../modules/ROOT/pages/core/custom-functions-support.adoc              | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/serverlessworkflow/modules/ROOT/pages/core/custom-functions-support.adoc 
b/serverlessworkflow/modules/ROOT/pages/core/custom-functions-support.adoc
index 62bdf7899..6d948cf02 100644
--- a/serverlessworkflow/modules/ROOT/pages/core/custom-functions-support.adoc
+++ b/serverlessworkflow/modules/ROOT/pages/core/custom-functions-support.adoc
@@ -566,7 +566,8 @@ The following example shows the declaration of a `rest` 
function:
 * `post` is the HTTP method. 
 * `/numbers/\{multiplier}/multiplyByAndSum` is the relative endpoint. 
 
-When using the relative endpoints you must specify the host as a property. The 
format of the host property is `kogito.sw.functions.<function_name>.host`. 
Therefore, in this example, `kogito.sw.functions.multiplyAllByAndSum.host` is 
the host property key. You might override the default port (80) if needed by 
specifying `kogito.sw.functions.multiplyAllAndSum.port` property. 
+When using the relative endpoints you must specify the host as a property 
(note that if you specify the full URI as operation, then you do not need to do 
that. But, since  target server host might change between deployments, it is 
better to reuse the same workflow definition and specify the variant data as 
properties). The format of the host property is 
`kogito.sw.functions.<function_name>.host`. Therefore, in this example, 
`kogito.sw.functions.multiplyAllByAndSum.host` is the host prope [...]
+You can also specify the protocol if using something different than the http 
default. For example, if the endpoint use SSL, you must add 
`kogito.sw.functions.multiplyAllAndSum.protocol=https`
 
 This particular endpoint expects as body a JSON object whose field `numbers` 
is an array of integers, multiplies each item in the array by `multiplier` and 
returns the sum of all the multiplied items. Therefore, to invoke it, assuming 
the input array is stored in the workflow model as property `inputNumbers`, you 
should write:
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to