Create Event to trigger workflow - not working

Ed1
Kilo Contributor

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:

find_real_file.png

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

 

1 ACCEPTED SOLUTION

Oh ok,

You can take a look at following link:

 

Script with flows

So, instead add an event to trigger the flow, you can execute the flow with script using the flow API

Hope it helps,

Thanks

View solution in original post

11 REPLIES 11

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

Antonio39
Tera Contributor

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