Skip to content

Commit 48b74bf

Browse files
Merge pull request #283 from code0-tech/274-sub-flow-execution
implemented sub flow execution
2 parents 374da2e + dff684d commit 48b74bf

13 files changed

Lines changed: 2041 additions & 67 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/taurus-core/src/fixtures.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,20 @@ pub struct Case {
3131
pub struct RemoteFixture {
3232
pub target_service: String,
3333
pub function_identifier: String,
34-
pub result_parameter: String,
34+
/// Only meaningful when `sub_flow_calls` is empty: the literal-valued
35+
/// parameter to echo straight back as this remote call's own result
36+
/// (see `0012_remote_function_subflow.json`).
37+
#[serde(default)]
38+
pub result_parameter: Option<String>,
39+
/// Positional values to drive one `ExecutionEngine::execute_sub_flow`
40+
/// call per entry against this request's `SubFlow`-valued parameter, in
41+
/// order -- simulates an action invoking a minted sub-flow reference
42+
/// the same number of times a real action would (e.g. once per element
43+
/// for a remotely-dispatched `for_each`'s consumer callback). When
44+
/// non-empty, the remote call itself resolves to `null` once every call
45+
/// has run, mirroring a `void`-signature remote function.
46+
#[serde(default)]
47+
pub sub_flow_calls: Vec<serde_json::Value>,
3548
}
3649

3750
#[derive(Clone, Deserialize)]

0 commit comments

Comments
 (0)