ExecutionAdministration ea = Shark.getInstance () getAdminInterface () getExecutionAdministration ();.. Ea.connect (userName, password, engineName, null); // parentProcId parent process number, and parentActivityId is the creation of a child's activity numbers WfActivity wfa = ea.getActivity (parentProcId, parentActivityId); WfProcess [] performers = wfa.get_sequence_performer (0); if (! performers = null && performers.length> 0) {// subProcId subprocesses ID subProcId = performers [0] .key ();