API user_variables hard to create and not visible in API while XML export shows them!
Posted: Thu Dec 20, 2018 12:20 pm
Hi again
For the webinterface, i need to provide a manual on how to create user_variables but it looks like this part is somehow buggy. Maybe there are workarounds already known?
What i do when creating a new variable is to open the variables editor on a random node, e.g. populate varaibles. In the "Select variable:" window, i select the "User" tab (if any) and thne rigthclick - New. After that, the corresponding variable does not exist in the workflow export xml, nor in the API
http://localhost:65445/api/json/v1/work ... 1220091541
What i could already figure out is, that the created user_variable from above will exist in the exported workflow xml as soon as i started some job after registering the new variable.
But i did not yet manage to get out what is needed to get the variable visible in the API calls. I know it is possible because i already had some variables in the API calls but i don't know how to get there intentionally.
By the way, i did not yet manage to get ANY user_variables in the details call, even when the above one already shows the variable. I would love to use the details call, as the other one contains a lot less information. But currently i need to utilize both calls to get out all details
http://localhost:65445/api/json/v1/workflows/details
Cheers!
emcodem
For the webinterface, i need to provide a manual on how to create user_variables but it looks like this part is somehow buggy. Maybe there are workarounds already known?
What i do when creating a new variable is to open the variables editor on a random node, e.g. populate varaibles. In the "Select variable:" window, i select the "User" tab (if any) and thne rigthclick - New. After that, the corresponding variable does not exist in the workflow export xml, nor in the API
http://localhost:65445/api/json/v1/work ... 1220091541
What i could already figure out is, that the created user_variable from above will exist in the exported workflow xml as soon as i started some job after registering the new variable.
But i did not yet manage to get out what is needed to get the variable visible in the API calls. I know it is possible because i already had some variables in the API calls but i don't know how to get there intentionally.
By the way, i did not yet manage to get ANY user_variables in the details call, even when the above one already shows the variable. I would love to use the details call, as the other one contains a lot less information. But currently i need to utilize both calls to get out all details
http://localhost:65445/api/json/v1/workflows/details
Cheers!
emcodem