runtimeService.startProcessInstanceById("process:6:55036", 2222, variables) SQL语句

JAVA:

variables:{
user_flow_start_dept : "3333"
}

runtimeService.startProcessInstanceById("process:6:55036", 2222, variables);


SQL:

select * from ACT_RE_PROCDEF where ID_ = "process:6:55036" ;
select * from ACT_RE_DEPLOYMENT where ID_ = "55033";
select * from ACT_GE_BYTEARRAY where DEPLOYMENT_ID_ = "55033" order by NAME_ asc ;
select * from ACT_RE_PROCDEF where DEPLOYMENT_ID_ = "55033" and KEY_ = "process" and TENANT_ID_ = "hrm"

select * from ACT_GE_PROPERTY where NAME_ = "next.dbid";
update ACT_GE_PROPERTY SET REV_ = 54, VALUE_ = "132501" where NAME_ = "next.dbid" and REV_ = 53;

select * from ACT_RU_IDENTITYLINK where PROC_INST_ID_ = "130001";
select distinct T.* from ACT_RU_TASK T where T.EXECUTION_ID_ = "130001";


insert into ACT_HI_VARINST (ID_, PROC_INST_ID_, EXECUTION_ID_, TASK_ID_, NAME_, REV_, VAR_TYPE_,
BYTEARRAY_ID_, DOUBLE_, LONG_ , TEXT_, TEXT2_, CREATE_TIME_, LAST_UPDATED_TIME_)
values ( 130004(String), 130001(String), 130001(String), null, user_flow_start_dept(String), 0(Integer),
string(String), null, null, null, 3333(String), null, 2017-12-17 16:15:55.193(Timestamp), 2017-12-17 16:15:55.193(Timestamp)
);

insert into ACT_HI_TASKINST ( ID_, PROC_DEF_ID_, PROC_INST_ID_, EXECUTION_ID_, NAME_, PARENT_TASK_ID_,
DESCRIPTION_, OWNER_, ASSIGNEE_, START_TIME_, CLAIM_TIME_, END_TIME_, DURATION_, DELETE_REASON_, TASK_DEF_KEY_,
FORM_KEY_, PRIORITY_, DUE_DATE_, CATEGORY_, TENANT_ID_ )
values ( 130006(String), process:6:55036(String), 130001(String), 130001(String), 部门领导审批(String),
null, null, null, null, 2017-12-17 16:15:55.321(Timestamp), null, null, null,
null, sid-1BF4BBC5-DA03-4AB2-9D3E-574B6923CF07(String), null, 50(Integer), null, null, hrm(String));


insert into ACT_HI_PROCINST ( ID_, PROC_INST_ID_, BUSINESS_KEY_, PROC_DEF_ID_, START_TIME_,
END_TIME_, DURATION_, START_USER_ID_, START_ACT_ID_, END_ACT_ID_, SUPER_PROCESS_INSTANCE_ID_,
DELETE_REASON_, TENANT_ID_, NAME_ )
values ( 130001(String), 130001(String), 2222(String), process:6:55036(String), 2017-12-17 16:15:55.192(Timestamp),
null, null, 4444(String),
sid-9715FBF4-497B-4F87-B23B-B81DE01055B8(String), null, null, null, hrm(String), null );


insert into ACT_HI_ACTINST ( ID_, PROC_DEF_ID_, PROC_INST_ID_, EXECUTION_ID_, ACT_ID_, TASK_ID_, CALL_PROC_INST_ID_, ACT_NAME_, ACT_TYPE_,
ASSIGNEE_, START_TIME_, END_TIME_, DURATION_, TENANT_ID_ )
values (130003(String), process:6:55036(String), 130001(String), 130001(String), sid-9715FBF4-497B-4F87-B23B-B81DE01055B8(String),
null, null, 开始(String), startEvent(String), null, 2017-12-17 16:15:55.192(Timestamp), 2017-12-17 16:15:55.28(Timestamp), 88(Long), hrm(String),
) ,
(
130005(String), process:6:55036(String), 130001(String), 130001(String), sid-1BF4BBC5-DA03-4AB2-9D3E-574B6923CF07(String),
130006(String), null, 部门领导审批(String), userTask(String), null, 2017-12-17 16:15:55.281(Timestamp), null, null, hrm(String));


insert into ACT_HI_IDENTITYLINK (ID_, TYPE_, USER_ID_, GROUP_ID_, TASK_ID_, PROC_INST_ID_)
values (130002(String), starter(String), 4444(String), null, null, 130001(String)) ,
(130007(String), candidate(String), null, deptLeader(String), 130006(String), null);


insert into ACT_RU_EXECUTION (ID_, REV_, PROC_INST_ID_, BUSINESS_KEY_, PROC_DEF_ID_,
ACT_ID_, IS_ACTIVE_, IS_CONCURRENT_, IS_SCOPE_,IS_EVENT_SCOPE_, PARENT_ID_, SUPER_EXEC_,
SUSPENSION_STATE_, CACHED_ENT_STATE_, TENANT_ID_, NAME_)
values ( 130001(String), 1, 130001(String), 2222(String), process:6:55036(String), sid-1BF4BBC5-DA03-4AB2-9D3E-574B6923CF07(String),
true(Boolean), false(Boolean), true(Boolean), false(Boolean), null, null, 1(Integer), 2(Integer), hrm(String), null );


insert into ACT_RU_TASK (ID_, REV_, NAME_, PARENT_TASK_ID_, DESCRIPTION_, PRIORITY_, CREATE_TIME_, OWNER_, ASSIGNEE_,
DELEGATION_, EXECUTION_ID_, PROC_INST_ID_, PROC_DEF_ID_, TASK_DEF_KEY_, DUE_DATE_, CATEGORY_, SUSPENSION_STATE_,
TENANT_ID_, FORM_KEY_)
values (130006(String), 1, 部门领导审批(String), null, null, 50(Integer), 2017-12-17 16:15:55.281(Timestamp), null, null, null,
130001(String), 130001(String), process:6:55036(String), sid-1BF4BBC5-DA03-4AB2-9D3E-574B6923CF07(String), null, null,
1(Integer), hrm(String), null );

insert into ACT_RU_IDENTITYLINK (ID_, REV_, TYPE_, USER_ID_, GROUP_ID_, TASK_ID_, PROC_INST_ID_, PROC_DEF_ID_)
values (130002(String), 1, starter(String), 4444(String), null, null, 130001(String), null)
, (130007(String), 1, candidate(String), null, deptLeader(String), 130006(String), null, null) ;


insert into ACT_RU_VARIABLE (ID_, REV_, TYPE_, NAME_, PROC_INST_ID_, EXECUTION_ID_, TASK_ID_,
BYTEARRAY_ID_, DOUBLE_, LONG_ , TEXT_, TEXT2_)
values ( 130004(String), 1, string(String), user_flow_start_dept(String),
130001(String), 130001(String), null, null, null, null, 3333(String), null ) ;

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

导航