sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Allow an integration to provide a step context initialization function

Open aiwilliams opened this issue 4 years ago • 0 comments

I'd like the steps to receive an integration-specific sub-type of the IntegrationStepExectionContext, which has integration-specific properties on it used across the steps. This should happen once before the steps are called, and the executionHandler should be typed to receive the integration-specific context.

A concrete use case: initializing a single provider API client object. Without this mechanism, each integration has to invent a way to share a single instance of an API client across the steps.

aiwilliams avatar May 14 '20 20:05 aiwilliams