>
> Then account 2 changes it's data, second observer gots notification,
> and need to send an Intent to Tasker to inform it that Condition 2
> (and not Condition 1 or both of them) occured. What I need to send in
> REQUEST_QUERY Intent to distinct Condition 1 from Condition 2?
You can send whatever you like, it's up to you.
You could add e.g. ID 2 in your REQUEST_QUERY, which will then get
passed back to you when Tasker does QUERY_CONDITION
(TaskerPlugin.retrievePassThroughData()).
>
> Or is REQUEST_QUERY Intent mean "Some of monitored conditions occured,
> lets send QUERY_CONDITION Intent to decide which one exactly"?
Yes, in REQUEST_QUERY there is no information which could tell Tasker
which plugin instance in Tasker the event refers too.
So Tasker will send a QUERY_CONDITION for each plugin instance from your
plugin that the user has setup and will include
the pass-through data from each that you supplied (2 in this case) so
that you can decide how to answer each
QUERY_CONDITION, by comparing the configuration data the user setup with
the data of the event that occurred (which you need
to pass through with the REQUEST_QUERY, either a reference to it, or the
event data itself).
You will then only reply SATISFIED for condition 2.
Pent