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
Copy file name to clipboardExpand all lines: experimental/fluent/func/src/main/java/io/serverlessworkflow/fluent/func/dsl/EnrichWithModelBiFunction.java
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -18,22 +18,22 @@
18
18
importio.serverlessworkflow.impl.WorkflowModel;
19
19
20
20
/**
21
-
* A function that enriches the current state by combining it with the root workflow input.
21
+
* A function that enriches a typed value by combining it with the root workflow input.
22
22
*
23
-
* <p>This is useful when you need to merge the last task output with the original workflow input,
24
-
* where the last state is typed and the root input is a WorkflowModel.
23
+
* <p>This is useful when you need to merge a task output or state value with the original
24
+
* workflow input, where the value is typed and the root input is a {@link WorkflowModel}.
25
25
*
26
-
* @param <T> The type of the last state
26
+
* @param <T> The type of the input value to be enriched
27
27
* @param <R> The type of the enriched result
28
28
*/
29
29
@FunctionalInterface
30
30
publicinterfaceEnrichWithModelBiFunction<T, R> {
31
31
/**
32
-
* Applies this function to enrich the last state with the root workflow input.
32
+
* Applies this function to enrich a typed value with the root workflow input.
33
33
*
34
-
* @param lastState the output from the previous task with its actual type
35
-
* @param rootInput the original workflow input as WorkflowModel
34
+
* @param value the typed value to be enriched (for example a task output or state value)
35
+
* @param rootInput the original workflow input as {@link WorkflowModel}
36
36
* @return the enriched result combining both inputs
0 commit comments