| 380 | ) |
| 381 | }, |
| 382 | resume(this: Workflow<string, AnyStructSchema, Schema.Top, Schema.Top>, executionId: string) { |
| 383 | return Effect.flatMap(EngineTag, (engine) => engine.resume(this, executionId)).pipe( |
| 384 | Effect.withSpan(`${this._tag}.resume`, { attributes: { executionId } }, { captureStackTrace: false }) |
| 385 | ) |
| 386 | }, |
| 387 | toLayer(this: Workflow<string, AnyStructSchema, Schema.Top, Schema.Top>, execute: any) { |
| 388 | return Layer.effectDiscard( |
| 389 | Effect.flatMap(EngineTag, (engine) => engine.register(this, execute)) |