TC检查对象是否在流程中

TCComponent[] fnd0AllWorkflows = scheduleTask.getRelatedComponents("fnd0AllWorkflows");
  if(null!=fnd0AllWorkflows&&fnd0AllWorkflows.length>0){
    //在流程中      
}
** fnd0AllWorkflows属性,如果流程删除,该流程也会在这个属性中删除!
原文地址:https://www.cnblogs.com/wwssgg/p/15406634.html