Thanks for help, HuiSheng, but it still doesn't work:
Execution exe = processInstance.findActiveExecutionIn("subprocess-task");
String subprocessid = ((ExecutionImpl)execution).getSubprocessInstance(); -- fails with
org.hibernate.LazyInitializationException:could not initialize proxy - no Session