diff --git a/apps/docs/deploying-codemods/workflow-engine.mdx b/apps/docs/deploying-codemods/workflow-engine.mdx index 42279968b..93412cd3d 100644 --- a/apps/docs/deploying-codemods/workflow-engine.mdx +++ b/apps/docs/deploying-codemods/workflow-engine.mdx @@ -18,7 +18,7 @@ Every migration requires ability to work on different levels simultaneously: - files - [iterate](/api-reference/file/files), copy, move, remove - code blocks - [iterate](/api-reference/transformation/astgrep), [change](/api-reference/transformation/astgrep/reference#replace-replacement), [remove](/api-reference/transformation/astgrep/reference#replace-replacement) -You need ability to jump between those levels quickly. Child level should be able to access data from parent level. Core principle in workflow engine is passing context. We are using [Asyncronous Context Tracking](https://nodejs.org/api-reference/async_context.html#class-asynclocalstorage) to able to pass context between function calls. When you run a function within context, it will be propagated down to all other function calls. Similar how React context is getting passed down to all the children components. +You need ability to jump between those levels quickly. Child level should be able to access data from parent level. Core principle in workflow engine is passing context. We are using [Asyncronous Context Tracking](https://nodejs.org/docs/latest/api/async_context.html#asynchronous-context-tracking) to able to pass context between function calls. When you run a function within context, it will be propagated down to all other function calls. Similar how React context is getting passed down to all the children components. Context is getting passed inside function's chain calls and also inside callback. Let's look at simple example: