Page 1 of 1

Reading set of variables from external file

Posted: Tue Feb 20, 2018 1:59 pm
by kibi
Hi, Steipal!

Thank's a lot for 0.9.0 coming in time!

I see you have implemented bunch of functions including $read(), to set any user variable in a workflow's context.
It will be great if there is a special processor to read set of variables from a config file at once. It could parse INI, JSON or XML format.

The main difference from "Populate Variables" processor is that the list of variables to be initialized depends on the content of config file, not the processor settings. I think, it's possible to combine $read() and $regexp() invokes to make parsing of config file, but eventually it will set up only variables predefined in the processor.

May be I miss something and it's already implemented?

Re: Reading set of variables from external file

Posted: Tue Feb 20, 2018 8:08 pm
by admin
The $read() function was implemented long time ago and is not new in 0.9.0. But yes, I know that a dedicated parser could be handy and it's on the drawing board but I can't tell when (or if) it's implemented.

-steinar

Re: Reading set of variables from external file

Posted: Mon Feb 26, 2018 3:06 pm
by kibi
I'll try to bypass it using newly added API - since the API supports tasks creation among with setting user parameters.