I am trying to do 2 actions at a time:
How can I do this in one click?
I believe the way to do this is to author a function that does both. The resulting function to do the calculations needed and save the results in memory. Then by calling ontology-edits api, you can choose to propagate those results and be saved to whatever object is within context.