TCComponent[] fnd0AllWorkflows = scheduleTask.getRelatedComponents("fnd0AllWorkflows"); if(null!=fnd0AllWorkflows&&fnd0AllWorkflows.length>0){ //在流程中 }
** fnd0AllWorkflows属性,如果流程删除,该流程也会在这个属性中删除!