@SuratNuJaman
Engines which are separated from each other, but do they have a common electrical supply source?
I'm sure the 787 wiring diagrams are out there if you want to investigate..I dumped the specifics of my types years ago.
What I can say is that generally speaking each engine has it's own main generator which feeds the main multiple, usually split, AC and DC busbars for supply of the whole aircraft and then often tucked away each engine is running one or more secondary or back up generators.
I can't swear to it but I think each FADEC has it's own dedicated generator or taps into one of the secondary gens. Overall all the systems are highly compartmented.
The Air Transat case, though entirely different had a single pump which pumped fuel from one tank to the next. And the computer (this one programmed) there could not make a simple deduction that the rate of fuel loss was so excessive that no more fuel should be allowed to be pumped into the faulty tank.
Err, hang on, no...you are not characterising that at all correctly.
That accident is quite famous in the multi engined flying world because it became a classic "how not to manage a fuel imbalance"..and you can't pin that on computers or AI, it was a pure Human Factors stuff up.
The crew were presented with all the data they needed to handle the imbalance correctly and the system gave them clear warnings, but for some reason they made a decision and took a course of action (without reference to checklists) that led to them continuing to pump fuel into a leaking engine (and so over the side).