Interface for components that can be asynchronously notified. The notification may include optional argument that describe the occured event.
Notifier
IExecutable
class MyComponent implements INotifable { ... public notify(correlationId: string, args: Parameters): void { console.log("Occured event " + args.getAsString("event")); } } let myComponent = new MyComponent(); myComponent.notify("123", Parameters.fromTuples("event", "Test Event"));
Notifies the component about occured event.
(optional) transaction id to trace execution through call chain.
notification arguments.
Generated using TypeDoc
Interface for components that can be asynchronously notified. The notification may include optional argument that describe the occured event.
Notifier
IExecutable
Example
class MyComponent implements INotifable { ... public notify(correlationId: string, args: Parameters): void { console.log("Occured event " + args.getAsString("event")); } } let myComponent = new MyComponent(); myComponent.notify("123", Parameters.fromTuples("event", "Test Event"));