Processing one node workflow after another

Hi all,
I was looking for a way to run a workflow in a script after another one is executed. I stumbled upon some previous discussions and applied some workarounds.


But it seems to be not working in my case where I have two separate inputs in my nodes.

I want to first Apply View Templates to viewports on the sheets and then align those viewports on the sheet corresponding to a template sheet.

For me, the second node is not working (it works fine separately). Perhaps because they are getting processed at the same time.
Please suggest.

try transaction.end node