You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SDK should support orchestration to call sub-orchestration
end-to-end example
it("should be able to use the sub-orchestration",async()=>{letactivityCounter=0;constincrement=(ctx: ActivityContext,_: any)=>{activityCounter++;};constorchestratorChild: TOrchestrator=asyncfunction*(ctx: OrchestrationContext,activityCount: number): any{yieldctx.callActivity(increment);};constorchestratorParent: TOrchestrator=asyncfunction*(ctx: OrchestrationContext,count: number): any{// Call sub-orchestrationyieldctx.callSubOrchestrator(orchestratorChild)};taskHubWorker.addActivity(increment);taskHubWorker.addOrchestrator(orchestratorChild);taskHubWorker.addOrchestrator(orchestratorParent);awaittaskHubWorker.start();constid=awaittaskHubClient.scheduleNewOrchestration(orchestratorParent,10);conststate=awaittaskHubClient.waitForOrchestrationCompletion(id,undefined,30);expect(state);expect(state?.runtimeStatus).toEqual(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED);expect(state?.failureDetails).toBeUndefined();expect(activityCounter).toEqual(1);},31000);
The SDK should support orchestration to call sub-orchestration
end-to-end example
Tested on local, already support.
Reference: #4
The text was updated successfully, but these errors were encountered: