---找到流程实例id---
select * from ACT_HI_PROCINST t where t.proc_inst_id_ in (select distinct t.proc_inst_id_ from ACT_HI_VARINST t where t.text_='402880e8641c8f260164491e12e800f0')
--第二步
select t.*, t.rowid from ACT_RU_EXECUTION t where t.proc_inst_id_='991303';
select t.*, t.rowid from ACT_RU_TASK t where t.proc_inst_id_='991303';
--取ACT_RU_TASK中的id_值给ACT_RU_IDENTITYLINK
select t.*, t.rowid from ACT_RU_IDENTITYLINK t where t.TASK_ID_='1010214';
--第三步从后往前删除1条记录