Fire an event from a service
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Fire an event from a service
Hi!
How can i fire the event from inside the service code?
As an example: if validation fails inside the service i would like to fire an ValidationFails event.
Is this possible?
Thanks
Solved! Go to Solution.
- Labels:
-
Design
-
Mashup-Widget
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
About the Log, if you want to record debug type logs, you should activate Debug Log level:
Composer > Monitoring > Script
On the Log View Mashup
Logs > Settings ( tab )
Inside settings tab:
Script Log --> New Settings = Debug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
me.name_of_the_event(params);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Carles!
I have this in my code
(Test is an event)
Code of my test service:
var params = {
Message: "Hello" /* STRING */,
};
me.Test(params);
And i have a subscription to this event (enabled). In the subscription i have this:
logger.debug(eventData.Message);
But "Hello" is still not showing in the script log.
What is missing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
About the Log, if you want to record debug type logs, you should activate Debug Log level:
Composer > Monitoring > Script
On the Log View Mashup
Logs > Settings ( tab )
Inside settings tab:
Script Log --> New Settings = Debug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
That was the missing tile in the puzzle.
Thanks
