- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2022 11:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2022 11:50 PM
var stuffYouNeedToPass = 'stuff';
var stuffYouNeedToPass2 = 'stuff2';
//You call the event like this and then add current as the current object, and then you add the parameters the following.
gs.eventQueue('your_event_name', current, stuffYouNeedToPass, stuffYouNeedToPass2); //Call from your ui action, After business rule or whatever. stuffYourNeedToPass will be parm1 and stuffYouNeedToPass2 will be parm2.
Best regards,
Sebastian Laursen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2022 11:42 PM - edited 11-14-2022 11:45 PM
Hello,
You can just use event.parm1 and event.parm2 to retrieve the event parameters. Same with "current"
gs.log(event.parm1); //Logs event parameter 1 If you need to pass variables from e.g. business rule
gs.log(event.parm2); //Logs event parameter 2
gs.log(current); //Logs event current
Best regards,
Sebastian Laursen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2022 11:46 PM
Hi Sebastian,
How we will pass the parameter from business rule to script action and access in event parameter script action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2022 11:50 PM
var stuffYouNeedToPass = 'stuff';
var stuffYouNeedToPass2 = 'stuff2';
//You call the event like this and then add current as the current object, and then you add the parameters the following.
gs.eventQueue('your_event_name', current, stuffYouNeedToPass, stuffYouNeedToPass2); //Call from your ui action, After business rule or whatever. stuffYourNeedToPass will be parm1 and stuffYouNeedToPass2 will be parm2.
Best regards,
Sebastian Laursen