notifies and changes the state of the transactions
adds task to notify