根据流程实例ID获取当前任务
JAVA:
Task task = this.processEngine.getTaskService().createTaskQuery().processInstanceId(“132501”).active().singleResult();
SQL:
SELECT DISTINCT RES.* FROM ACT_RU_TASK RES WHERE RES.PROC_INST_ID_ = “132501” AND RES.SUSPENSION_STATE_ = 1 ORDER BY RES.ID_ ASC LIMIT 2147483647 OFFSET 0