Skip to content

Commit 62e06d3

Browse files
Merge pull request #100 from kaldesai/SRVLOGIC-83-master
PR for SRVLOGIC-83: [DOC] Remove "Kogito" name from Serverless Logic documents
2 parents 4aad433 + 94929e4 commit 62e06d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/serverless-logic/pages/core/custom-functions-support.adoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,13 @@ If your method returns a primitive type or their corresponding wrapper object (i
162162

163163
If your method returns Java collections, it is converted to a JSON array and added to the workflow model with the name `response` (you can change that name using an action data filter).
164164

165-
=== Function accessing Kogito context
165+
=== Function accessing contextual data
166166

167167
If you need access to process contextual information (for example, Kogito process instance ID) inside your Java service, you can add a `KogitoProcessContext` parameter as the last one in the method signature.
168168

169169
Therefore, if you need to do so, you can update the signature of methods from previous sections.
170170

171-
.Example of a function accessing Kogito context
171+
.Example of a function accessing contextual data
172172
[source,java]
173173
----
174174
public class MyInterfaceOrClass {
@@ -181,7 +181,7 @@ public JsonNode myMethod(JsonNode workflowData, KogitoProcessContext context ) {
181181
}
182182
----
183183

184-
.Example of a function accessing Kogito context
184+
.Example of a function accessing contextual data
185185
[source,java]
186186
----
187187
public class MyInterfaceOrClass {
@@ -574,7 +574,7 @@ It must contain a Java class that inherits from `WorkItemTypeHandler`. Its respo
574574
+
575575
The runtime project consists of a `WorkflowWorkItemHandler` implementation, which name must match with the one provided to `WorkItemNodeFactory` during the deployment phase, and a `WorkItemHandlerConfig` bean that registers that handler with that name.
576576
+
577-
When a Serverless Workflow function is called, Kogito identifies the proper `WorkflowWorkItemHandler` instance to be used for that function type (using the handler name associated with that type by the deployment project) and then invokes the `internalExecute` method. The `Map` parameter contains the function arguments defined in the workflow, and the `WorkItem` parameter contains the metadata information added to the handler by the deployment project. Hence, the `executeWorkItem` implementation has an access to all the information needed to perform the computational logic intended for that custom type.
577+
When a Serverless Workflow function is called, {product_name} identifies the proper `WorkflowWorkItemHandler` instance to be used for that function type (using the handler name associated with that type by the deployment project) and then invokes the `internalExecute` method. The `Map` parameter contains the function arguments defined in the workflow, and the `WorkItem` parameter contains the metadata information added to the handler by the deployment project. Hence, the `executeWorkItem` implementation has an access to all the information needed to perform the computational logic intended for that custom type.
578578

579579
=== Custom function type example
580580

0 commit comments

Comments
 (0)