Programmatically block instance execution before activity

Hi,

For an external application I am building, is there a way to programmatically instruct the engine to suspend/block the execution of a process instance before a given activity and then resume it without specifying boundary events in the XML file?

If not, how should I approach this?

You can suspend and activate a process instance via the the suspend rest api.