Replies: 1 comment
-
|
Short answer: In the current code:
Relevant source:
So if the child was only added via
Practical options:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been trying to get this working for a few days now, but can't find a solution in the examples or the code.
I have a very similar setup to the
MainWorkflow/SubroutineWorkflowfrom theExecuteWorkflowsTestsexample. I'm trying to execute the child workflow through the
ExecuteWorkflowactivity, but I keep getting the error: "No published version of workflow definition with ID found".Looking at the
ExecuteWorkflowandDispatchWorkflowcode, the child workflow needs to be published for it to be found. Tracing through the example, it seems theSubroutineWorkflowmight be published through theAddWorkflowsFromcall in theWorkflowServer.I am using the
TestApplicationBuilderand have a similarAddWorkflowcall that registers the child workflow. Still I get the "no published version found" message.I've tried to get the child workflow published at the start of the test by getting an
IWorkflowDefinitionPublisherand callingPublishAsyncwith the DefinitionId of the child workflow. That call also fails with the message "Workflow definition not found".I must be missing something here, but currently I'm spinning my wheels so some guidance would be helpful.
If this is not the right way to go, would I need to create a custom activity that runs the workflow, since executing a workflow through
IWorkflowRunner::RunAsyncseems to work.Beta Was this translation helpful? Give feedback.
All reactions