jbpm 4.4 sql 查询实例

JBPM4.4:
1、根据任务ID找出流程定义ID(jbpm4_deployprop_  stringvar_==ProcessDefinition.getId())
select t.procdefid_ from jbpm4_execution t where t.dbid_=(select  tt.execution_  from jbpm4_task tt where tt.dbid_= 10020)
2、根据任务当前活动名称(task.getName())找出任务中的变量名(==candidate-groups="#{ dep1}")
select t.KEY_ from jbpm4_variable t where t.EXECUTION_ in (select  t.DBID_  from jbpm4_execution t  where t.ACTIVITYNAME_ ='"+ str+"');
3、根据流程实例找出任务信息
ProcessEngine processEngine = Configuration.getProcessEngine();
  RepositoryService repositoryService = processEngine.getRepositoryService();
   pdList = repositoryService.createProcessDefinitionQuery().list();
pdId = pdList.get(0).getId();
ProcessInstance processInstance = executionService.startProcessInstanceById(pdId, map);
 String pid= processInstance.getId();
select t.*, t.rowid from jbpm4_task t where t.execution_id_='FaWenShenPi.390001'
4.用流程实例ID找出任务历史数据:
对流程实例的用户处理信息历史记录
select t.*, t.rowid from jbpm4_hist_task t where t.execution_='FeiYongBaoXiao.370015'
对整个流程实例所以的历史记录包括任务活动名称,带 jbpm4_hist_task 外键
select t.*, t.rowid from jbpm4_hist_actinst t where t.execution_='FeiYongBaoXiao.370015'
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值