I know this is not a bug but

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
User avatar
Hit
Posts: 91
Joined: 20 Jan 2020 11:31

I know this is not a bug but

Post by Hit » 11 May 2020 09:15

Can Dev add option for the Notification block to run immediately. Thank you!

Image
Last edited by Hit on 12 May 2020 08:04, edited 3 times in total.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: I know this is not a bug but

Post by Desmanto » 11 May 2020 14:48

Automagic execute element per step. So if one of the branches delay the execution (including input dialog type action), all other branches are also halted. Ifyou need the script sleep(5000) execute at the same step as the notification, put another script : Donohting before the script sleep(5000). This makes them the same second steps from the first branching.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
Hit
Posts: 91
Joined: 20 Jan 2020 11:31

Re: I know this is not a bug but

Post by Hit » 12 May 2020 02:29

Thanks for your answer Desmanto!
But what I want is that each branch can run parallel (optional ON/OFF). I'm just curious if it can be achieved, because I'm having some idea to improve my flow. If cannot I will make an another request instead.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: I know this is not a bug but

Post by Desmanto » 12 May 2020 03:10

If in the same flow, no, it still need to follow the step execution. You need to put the elements in different flow and use execute flows from the main flow. You can have many parallel execution regardless the branches. Just make sure one branch is in one flow.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
Hit
Posts: 91
Joined: 20 Jan 2020 11:31

Re: I know this is not a bug but

Post by Hit » 12 May 2020 04:12

Yes, I have think about that before and have to create another flow for just one or two block
And if the two flows run parallel the variable in the second flow (the called flow) won't affect the variable in the first (the main flow) except global_variable

So there are two problems.

If my request can be achieved, I have two Idea for improving the application. Regard.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: I know this is not a bug but

Post by Desmanto » 12 May 2020 17:05

Too bad, but that is the way it works. I don't think Automagic will change this, as it will affect other users. You can create the flow in such a way it can be used by multiple flows, so it won't be a single one-trick pony flow.

To return the variables from the child flow, tick Wait for called flows to finish and return variables. You can call both flows at the same step, so both should have return at the same time. But between the child flow, you can only exchange data using glovar when they are executing. But upon returning, both variables are combined again.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
Hit
Posts: 91
Joined: 20 Jan 2020 11:31

Re: I know this is not a bug but

Post by Hit » 13 May 2020 01:11

I just say I want to add something not about deleting something and it's optional. May be I will make another request!

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: I know this is not a bug but

Post by Desmanto » 13 May 2020 17:42

To clarify, you want that each branches execute immediately after it finish its, regardless of sleep or any dialog box that might appear. Is this correct? If yes, then this change will affect all users who already expect the branches will stop there. I have input dialog/debug dialog coupled with parallel control UI. I expect the Control UI will be stopped by the input dialog.

So if this is going to be implemented, I recommend it has to be per flow option. Maybe we can have something named as "continue branch execution immediately" in the flow option, default to "no". When this option for that flow is turned on/yes, each branch will execute on its own speed, just like a separated flow. I have seen several thread discuss about this, so maybe the addition of this feature can benefit some users.

I am not against any feature request. I just want that the addition of features don't interfere with our current flows. And Martin has limited time to develop new feature, so sometimes it better to look for workaround while waiting for the feature. That's why I usually suggest some alternative solution if it is possible.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Locked