I am trying to create a suborchestration with our Netherite DTFx and its throwing this exception. Questions:
Are suborchestrations handled like Activites? If that's the case are they handled different to allow them to have activities of their own?
How do I get this version registered? Right now we have set up the .Net app by registering all the orchestrations and their INameVersion* mappings i.e.
_ = services.AddTransient<SubscriptionLifecycleRetryingOrchestration, SubscriptionLifecycleRetryingOrchestration>();
...
services.AddSingleton<INameVersionObjectManager>(serviceProvider => new OrchestrationManager(
new OrchestrationNameVersionTypeMap[]
{
...
new OrchestrationNameVersionTypeMap(typeof(SubscriptionLifecycleUpdateOrchestration).ToString(), "v05-01-2024"),
},
later initiated like this,
result = await context.CreateSubOrchestrationInstance(nameof(SubscriptionLifecycleUpdateOrchestration), "v05-01-2024", context.OrchestrationInstance.InstanceId, input);
Should I register it instead as Activity, assuming (1) is true?
TaskActivityDispatcher-14168daa1d4e4098831e7c80455f15d1-265: Unhandled exception with work item '1056': DurableTask.Core.Exceptions.TypeMissingException: TaskActivity Microsoft.Azure.EdgeProvisioning.EdgeProvisioningService.Orchestrations.SubLifecycleOrchestrations.SubscriptionLifecycleUpdateOrchestration version was not found
at DurableTask.Core.TaskActivityDispatcher.<>c__DisplayClass14_1.<b_2>d.MoveNext() in //src/DurableTask.Core/TaskActivityDispatcher.cs:line 216
--- End of stack trace from previous location ---
at DurableTask.Core.TaskActivityDispatcher.OnProcessWorkItemAsync(TaskActivityWorkItem workItem) in //src/DurableTask.Core/TaskActivityDispatcher.cs:line 289
at DurableTask.Core.TaskActivityDispatcher.OnProcessWorkItemAsync(TaskActivityWorkItem workItem) in //src/DurableTask.Core/TaskActivityDispatcher.cs:line 289
at DurableTask.Core.WorkItemDispatcher`1.ProcessWorkItemAsync(WorkItemDispatcherContext context, Object workItemObj) in /_/src/DurableTask.Core/WorkItemDispatcher.cs:line 459
I am trying to create a suborchestration with our Netherite DTFx and its throwing this exception. Questions:
_ = services.AddTransient<SubscriptionLifecycleRetryingOrchestration, SubscriptionLifecycleRetryingOrchestration>(); ... services.AddSingleton<INameVersionObjectManager>(serviceProvider => new OrchestrationManager(
new OrchestrationNameVersionTypeMap[]
{
...
new OrchestrationNameVersionTypeMap(typeof(SubscriptionLifecycleUpdateOrchestration).ToString(), "v05-01-2024"),
},
later initiated like this,
result = await context.CreateSubOrchestrationInstance(nameof(SubscriptionLifecycleUpdateOrchestration), "v05-01-2024", context.OrchestrationInstance.InstanceId, input);
TaskActivityDispatcher-14168daa1d4e4098831e7c80455f15d1-265: Unhandled exception with work item '1056': DurableTask.Core.Exceptions.TypeMissingException: TaskActivity Microsoft.Azure.EdgeProvisioning.EdgeProvisioningService.Orchestrations.SubLifecycleOrchestrations.SubscriptionLifecycleUpdateOrchestration version was not found at DurableTask.Core.TaskActivityDispatcher.<>c__DisplayClass14_1.<b_2>d.MoveNext() in //src/DurableTask.Core/TaskActivityDispatcher.cs:line 216
--- End of stack trace from previous location ---
at DurableTask.Core.TaskActivityDispatcher.OnProcessWorkItemAsync(TaskActivityWorkItem workItem) in //src/DurableTask.Core/TaskActivityDispatcher.cs:line 289
at DurableTask.Core.TaskActivityDispatcher.OnProcessWorkItemAsync(TaskActivityWorkItem workItem) in //src/DurableTask.Core/TaskActivityDispatcher.cs:line 289
at DurableTask.Core.WorkItemDispatcher`1.ProcessWorkItemAsync(WorkItemDispatcherContext context, Object workItemObj) in /_/src/DurableTask.Core/WorkItemDispatcher.cs:line 459
Backing off for 10 seconds