in src/history/SubOrchestrationInstanceCreatedEvent.ts [11:30]
constructor(options: HistoryEventOptions) {
super(
HistoryEventType.SubOrchestrationInstanceCreated,
options.eventId,
options.isPlayed,
options.timestamp
);
if (options.name === undefined) {
throw new Error("SubOrchestrationInstanceCreatedEvent needs a name provided.");
}
if (options.instanceId === undefined) {
throw new Error("SubOrchestrationInstanceCreatedEvent needs an instance id provided.");
}
this.Input = options.input;
this.Name = options.name;
this.InstanceId = options.instanceId;
}