in src/history/SubOrchestrationInstanceCompletedEvent.ts [10:30]
constructor(options: HistoryEventOptions) {
super(
HistoryEventType.SubOrchestrationInstanceCompleted,
options.eventId,
options.isPlayed,
options.timestamp
);
if (options.taskScheduledId === undefined) {
throw new Error(
"SubOrchestrationInstanceCompletedEvent needs a task scheduled id provided."
);
}
if (options.result === undefined) {
throw new Error("SubOrchestrationInstanceCompletedEvent needs an result provided.");
}
this.TaskScheduledId = options.taskScheduledId;
this.Result = options.result;
}