WMSessionHandle sessionHandle = sc.getSessionHandle();
WMEntity ent = admin.getActivityDefinitionInfo(sessionHandle, process.key(), activity.key());
ass.setActivityDefId(ent.getId());
ass.setProcessRequesterId(getUserByProcessIdAndActivityDefId(ass.getProcessDefId(), ass.getProcessId(), WorkflowUtil.ACTIVITY_DEF_ID_RUN_PROCESS));
WfRequester requester = process.requester();
if (requester != null) {
boolean isSubflow = (requester instanceof WfActivity);
if (isSubflow) {
WfActivity act = (WfActivity) requester;
ass.setSubflow(true);