String apprTitle = "";
try {
Activity act = instance.getProcessDefinition().getActivity(tracingTag);
if (act instanceof FormApprovalActivity) {
FormApprovalActivity formApprovalActivity=(FormApprovalActivity) instance.getProcessDefinition().getActivity(tracingTag);
if(FormApprovalActivity.SIGN_DRAFT.equals("SIGN_"+apprStat.toUpperCase())){
apprTitle = loggedRoleMapping.getResourceName() + " (상신)";
}else{
apprTitle = formApprovalActivity.getName().getText();
}
} else if (act instanceof HumanApprovalActivity) {
HumanApprovalActivity humanApprovalActivity=(HumanApprovalActivity) instance.getProcessDefinition().getActivity(tracingTag);
if(HumanApprovalActivity.SIGN_DRAFT.equals("SIGN_"+apprStat.toUpperCase())){
apprTitle = loggedRoleMapping.getResourceName() + " (상신)";