convert subflow env vars to dict

This commit is contained in:
Hiroyasu Nishiyama
2019-02-02 08:34:33 +09:00
parent ce507b3b52
commit e843f192ec
2 changed files with 26 additions and 54 deletions

View File

@@ -567,17 +567,19 @@ describe('Subflow', function() {
});
describe("#env var", function() {
// should be changed according to internal env var representation
function setEnv(node, key, val) {
var flow = node._flow;
if (flow) {
var sfi = flow.subflowInstance;
sfi.env = [
{
var env = flow.env;
if (!env) {
env = flow.env = {};
}
env[key] = {
name: key,
type: "str",
value: val
}
];
};
}
}