--根据登陆名找到用户的ID,用OBJCETID字段值就行
select * from oauser where alias='用户名'

--根据当前用户的ID找到所有待办信息
select * from flow_workitem where participant='cd1f4f6f-7aa5-421f-887e-dbc18cf41e64'and state'2'

--根据上述查询的数据找instancename为空的数据,根据这条数据的instanceid去下表查询,对应下表的objectid字段
select * from flow_instancecontext where objectid='e94b1835-d49b-41b8-8145-a2ed47e3c4c3'
--如果上一查询没能查出数据来,说明数据写入错误,执行下面的操作

update flow_workitem set state='2' where objectid='22619d5e-0c6a-481f-8c34-30c2475d44d3'