Reading set of variables from external file

Use this forum to request features. Maybe you'll get lucky!
Post Reply
User avatar
kibi
Posts: 106
Joined: Mon Feb 29, 2016 12:57 pm
Contact:

Reading set of variables from external file

Post 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?
Alexander Sorkin
admin
Site Admin
Posts: 1669
Joined: Sat Feb 08, 2014 10:39 pm

Re: Reading set of variables from external file

Post 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
User avatar
kibi
Posts: 106
Joined: Mon Feb 29, 2016 12:57 pm
Contact:

Re: Reading set of variables from external file

Post by kibi »

I'll try to bypass it using newly added API - since the API supports tasks creation among with setting user parameters.
Alexander Sorkin
Post Reply