t_node_hi_info, t_proc_info, and ACT_HI_TASKINST — along with explanations and an example showing

🔹 1. ACT_HI_TASKINST (from Activiti)

Meaning: Stores history of user tasks (e.g., approvals, actions) that were already executed in a process.

Key Fields (typical):

FieldDescription
ID_Task instance ID
PROC_INST_ID_Process instance ID
TASK_DEF_KEY_Task definition key from BPMN
ASSIGNEE_User assigned
NAME_Task name
START_TIME_When task started
END_TIME_When task ended
DURATION_Time taken


🔹 2. t_proc_info (custom / business-specific table)

Meaning: Stores business process instance info (e.g., order approval, contract signing). It links the business entity to the process engine instance (like ACT_HI_PROCINST).

Key Fields (typical):

FieldDescription
idPrimary key
biz_idBusiness ID (e.g., order ID)
proc_inst_idLink to Activiti's PROC_INST_ID_
statusCurrent process status
start_userWho started the process


🔹 3. t_node_hi_info (custom / business-specific table)

Meaning: Stores node-level task history in more detail or with custom business data (e.g., opinions, comments, special fields beyond Activiti’s standard ACT_HI_TASKINST).

Key Fields (typical):

FieldDescription
idPrimary key
proc_inst_idProcess instance ID
task_idTask ID (from ACT_HI_TASKINST.ID_)
node_keyTask definition key (TASK_DEF_KEY_)
assigneeUser who handled the task
commentApproval comment
resultPass / Reject, etc.
end_timeTask completion time


🔄 How They Work Together (Example)

Let’s assume someone submits a Leave Application:

Step 1: Start Process

  • A new row is inserted into t_proc_info:

id = 1001, biz_id = 'leave_2024_001', proc_inst_id = 'proc_abc123', status = 'running'

Step 2: Approver1 reviews task

  • Activiti inserts a row into ACT_HI_TASKINST:

ID_ = 'task_xyz111', PROC_INST_ID_ = 'proc_abc123', ASSIGNEE_ = 'manager1', NAME_ = 'Manager Approval'

  • Your system inserts a row into t_node_hi_info:

task_id = 'task_xyz111', proc_inst_id = 'proc_abc123', assignee = 'manager1', comment = 'Looks good', result = 'approved'


🧩 Visualization


[ t_proc_info ] biz_id = leave_2024_001 proc_inst_id = proc_abc123 │

[ ACT_HI_TASKINST ] ID_ = task_xyz111 PROC_INST_ID_ = proc_abc123 ASSIGNEE_ = manager1 │

▼ [ t_node_hi_info ] task_id = task_xyz111 comment = 'Looks good' result = 'approved'


✅ Use Cases

TablePurpose
ACT_HI_TASKINSTTechnical task history (standard BPM data)
t_proc_infoBusiness-level tracking of process instances
t_node_hi_infoDetailed/custom task node information
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值