Skip to content

Commit c95f476

Browse files
mcruzdevCopilot
andauthored
Update experimental/fluent/func/src/main/java/io/serverlessworkflow/fluent/func/dsl/EnrichWithModelBiFunction.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b408ab8 commit c95f476

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

experimental/fluent/func/src/main/java/io/serverlessworkflow/fluent/func/dsl/EnrichWithModelBiFunction.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,22 @@
1818
import io.serverlessworkflow.impl.WorkflowModel;
1919

2020
/**
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.
2222
*
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}.
2525
*
26-
* @param <T> The type of the last state
26+
* @param <T> The type of the input value to be enriched
2727
* @param <R> The type of the enriched result
2828
*/
2929
@FunctionalInterface
3030
public interface EnrichWithModelBiFunction<T, R> {
3131
/**
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.
3333
*
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}
3636
* @return the enriched result combining both inputs
3737
*/
38-
R apply(T lastState, WorkflowModel rootInput);
38+
R apply(T value, WorkflowModel rootInput);
3939
}

0 commit comments

Comments
 (0)