Page 2 of 2
Re: Enabled flows list
Posted: 26 Apr 2020 09:09
by Yam
I hope this is right Desmanto.
From the looks of it, emojis and flows that start with "." Are a bit inconsistant.
http://automagic4android.com/flow.php?i ... 5f77fb813d
Re: Enabled flows list
Posted: 27 Apr 2020 18:31
by Desmanto
@Rafi4 : Me too. Just double check the flow list and compare if you miss any.
@Yam : You miss one space a the findex.
Code: Select all
findex = indexOf(stdout, " <flow type="); ftext = substring(stdout, findex); //your script miss one space
findex = indexOf(stdout, " <flow type="); ftext = substring(stdout, findex); //this is the correct one
It is not the "." or emoji that is missing, it is the first flow in the list. When you give .flowname, this flow will be at the first when saved alphabetically. While your findex now start at the second space, it won't catch the regex for the first flow.
Re: Enabled flows list
Posted: 27 Apr 2020 21:54
by Yam
Wow, that fixed it...
Cheers
that's amazing!
Re: Enabled flows list
Posted: 23 Jun 2020 21:58
by Rafi4
Hi Desmanto
In this below script i am getting all flow names. You can edit your script to get all values.
Code: Select all
findex = indexOf(stdout, " <flow type=");
ftext = substring(stdout, findex);
//the long regex for flow
find = findAll(ftext, '<name>(.*)</name>\\r\\n', true);
From record4
Re: Enabled flows list
Posted: 24 Jun 2020 06:20
by Rafi4
Hi all
I have got the accurate solution as below.
Rename the group which was Ungrouped. Under Ungrouped flows ignored. I think that this is perfect
Code: Select all
findex = indexOf(stdout, " <flow type=");
ftext = substring(stdout, findex);
//the long regex for flow
names = findAll(ftext, '<name>(.*)</name>\\r\\n', true);
groups = findAll(ftext, trim ('<group>(.*)</group>'), true);
flow_status = findAll(ftext, '<enabled>(true|false)</enabled>', true);
From record4