<!--
 ⚠️  AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
 This file is automatically generated by scripts/docs-generator.js
 To make changes, edit the source TypeScript files or update the generator script
-->

[playground](../../) / [Exports](../modules) / WorkflowSubscriberEventService

# Class: WorkflowSubscriberEventService

WorkflowSubscriberEventService

Bridges `EventService.emit(...)` to `WorkflowEventSubscriber.processEvent(...)`.

Design notes:

- Serializes processing to preserve emission order (no timers, no retries).
- Forwards the provided EventContext by attaching it to the event payload.
- Does not interpret or hardcode event names (domain-neutral).

## Implements

- `IEventService`

## Table of contents

### Constructors

- [constructor](WorkflowSubscriberEventService#constructor)

### Methods

- [emit](WorkflowSubscriberEventService#emit)

## Constructors

### constructor

• **new WorkflowSubscriberEventService**(`subscriber`, `logger?`): [`WorkflowSubscriberEventService`](WorkflowSubscriberEventService)

#### Parameters

| Name         | Type                      | Default value  |
| :----------- | :------------------------ | :------------- |
| `subscriber` | `WorkflowEventSubscriber` | `undefined`    |
| `logger`     | `AbstractLogger`          | `SilentLogger` |

#### Returns

[`WorkflowSubscriberEventService`](WorkflowSubscriberEventService)

#### Defined in

[playground/src/lib/playground/workflow-subscriber-event-service.ts:18](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/playground/src/lib/playground/workflow-subscriber-event-service.ts#L18)

## Methods

### emit

▸ **emit**(`eventType`, `data`, `context?`): `void`

#### Parameters

| Name        | Type             |
| :---------- | :--------------- |
| `eventType` | `string`         |
| `data`      | `IBaseEventData` |
| `context?`  | `IEventContext`  |

#### Returns

`void`

#### Implementation of

IEventService.emit

#### Defined in

[playground/src/lib/playground/workflow-subscriber-event-service.ts:23](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/playground/src/lib/playground/workflow-subscriber-event-service.ts#L23)
