- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2020 11:42 AM
Hello,
i am testing on a dev environment.
I have added in Map Transform a onComplete script to send an Event:
i tested these 2 methods:
var e = new GlideEvent("my_import_servers_1", "", "", "");
e.insert();
and tested also:
gs.eventQueue('my_import_servers_1', "", "", "");
In SystemLogs/Events i well see my Event after the transform so it seems to work.
In The Flow designer i have added a trigger on this type of Event:
But this is never triggered. But if i enter the event and update it of click on reprocess Event, the flow is well triggered.
Am i missing something when i create the Event in javascript in onComplete?
Thank you for your help
Solved! Go to Solution.
- Labels:
-
flow designer
-
Notifications
-
Workflow

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2020 01:28 PM
Oh ok,
You can take a look at following link:
So, instead add an event to trigger the flow, you can execute the flow with script using the flow API
Hope it helps,
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2020 02:39 PM
You mean doing the validation in the onComplete with javascript code?
I saw the reply of Alejandro above that proposed to call the flow directly from there so by not passing through the event.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2020 12:44 AM
Hi,
I have the same issue, but it happens after the upgrade from NY to Paris, before the upgrade i had an ui action who triggers an event, who triggers a flow with the same you condition.
I've tried with FlowAPI and seems to work, but i need to feed the flow and dunno how through API.
So, the strange thing is that in myDev (which is Paris) all this thing works.
Now, thinking to open a ticket in HIPortal