global variables persistance
Is is possible to set global variables that persist during the session and workflows within the session recognize those variables. Say in a startup script, I set a global variable for myname="jeff" I would want to access that variable in other workflows during that session.
J
-
Hi Jeff,
Workflows are executed on the server, and REST technology says servers should be stateless (no session data stored on server). This allows many users to access the server simultaneously without fighting for access to "myname".
Session data should be stored in the client, and in order to do, you would need some sort of a custom module. If you do this, you have two ways to pass the data into a workflow. You could run workflows in the custom module where you pass values in as arguments. Alternatively, you can build a "GetMyName" activity handler in a custom module that returns session data. Then you can use a workflow DynamicExternal activity to retrieve this data as necessary.
0 -
Hi Paul,
Can u please send me documentation, tutorial or example of how I can using this way in my workflow ?
Thanks,
Regards.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare