Skip to content

Commit fc35eb6

Browse files
committed
fix: transfer resolved inputs to targetWorkflowRef context
1 parent 2015080 commit fc35eb6

File tree

1 file changed

+8
-1
lines changed
  • packages/respect-core/src/modules/flow-runner

1 file changed

+8
-1
lines changed

packages/respect-core/src/modules/flow-runner/run-step.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,17 @@ export async function runStep({
8989
const workflowInputParameters = resolvedParameters
9090
.filter(isParameterWithoutIn)
9191
.reduce((acc, parameter: ParameterWithoutIn) => {
92+
const ctxWithInputs = {
93+
...ctx,
94+
$inputs: {
95+
...(ctx.$inputs || {}),
96+
...(workflowId ? ctx.$workflows[workflowId]?.inputs || {} : {}),
97+
},
98+
};
9299
// Ensure parameter is of type ParameterWithoutIn
93100
acc[parameter.name] = getValueFromContext({
94101
value: parameter.value,
95-
ctx,
102+
ctx: ctxWithInputs,
96103
logger: ctx.options.logger,
97104
});
98105
return acc;

0 commit comments

Comments
 (0)