# FRNodeEventDispatcher

The FRNodeEventDispatcher can be used to call FlowReactor events from a custom node.\
To call an event, make sure your graph has an assigned eventboard with an event.\
Also your custom node needs to have an instance of the FRNodeEventDispatcher module.\
(create manually or with the node wizard)

### Example

In your custom node simply use following code to raise an event.

```csharp
FRNodeEventDispatcher eventDispatcher = new FRNodeEventDispatcher();

// you can also pass parameters to the RaiseEvent method. Make sure that these parameters type do match with the event in the eventboard.
eventDispatcher.RaiseEvent("MyEvent", "myEventStringParameter");
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://giantgrey.gitbook.io/flowreactor/in-depth/node-modules/frnodeeventdispatcher.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
