Skip to content

From Slack -- How to start workflow in a different service than executing the workflow? with or without a different SDK #398

Discussion options

You must be logged in to vote

The current possible approaches:

  1. Let serviceB define the workflow and also exposes an API for serviceA to call, in order to start.
  2. Re-define the workflow in serviceA as declaration. You only need to define the structure — mostly the workflow type, and the starting state’s input type & stateOptions. This is because iwf Client only needs them when starting the workflow. (in fact, it may also need search attribute definition, if it’s being used for initialSearchAttributes). You don’t really need to implement any state. Because start API won’t trigger any implementation.
  3. Use unregisteredClient — this is a rawClient that doesn’t require workflow registry. In fact this is how Client works unde…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by longquanzheng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant