根据流程实例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_ =132501AND RES.SUSPENSION_STATE_ = 1
ORDER BY
    RES.ID_ ASC
LIMIT 2147483647 OFFSET 0

 

posted on 2017-12-17 18:29  近博  阅读(11754)  评论(0编辑  收藏  举报

导航