Topic Options
#56432 - 10/24/18 09:36 AM Global variables
Wladson Offline
OL Newbie

Registered: 01/16/18
Posts: 21
Hi,

I'd like know how to set global variables in the workflow ? I know to exist the "set jobs and variables" component, but I have the "Run Script" for read database (select * from...) and populate variables.

Now, I use Watch.SetVariable for set lovalVar and after, I use "set jobs and variables" for set gloval var


Edited by Wladson (10/24/18 09:39 AM)

Top
#56433 - 10/24/18 09:44 AM Re: Global variables [Re: Wladson]
Jean-Cédric Offline
OL Expert

Registered: 10/03/16
Posts: 571
Loc: Québec, Canada
You can refer yourself to the Watch Object.

There, you will look at Watch.GetVariable and Watch.SetVariable.

That should get you started.

If you wish to add global variables, look in the three list of the Configuration Components under the folder Global variables.

Hope that help.

Top
#56434 - 10/24/18 09:55 AM Re: Global variables [Re: Wladson]
Wladson Offline
OL Newbie

Registered: 01/16/18
Posts: 21
This !, exactly , I had tried Watch.setvariable "%{global.GlobalVar}", "Hello World!", but thank to you, I see the correct syntax Watch.setvariable "global.GlobalVar", "Hello World!"

Thank you !

Top