Record Class HistoryRecord
java.lang.Object
java.lang.Record
cloud.opencode.base.flow.model.HistoryRecord
- Record Components:
id- history record id — 记录 IDinstanceId- owning instance id — 所属实例 IDtaskId- related task id (may benullfor START/COMPLETE) — 关联任务 ID(START/COMPLETE 时可为null)stepId- step id — 节点 IDaction- action type — 动作类型operatorId- operator user id — 操作人comment- human comment — 文本意见extraJson- action-specific extra JSON payload — 动作专属 JSONcreatedAt- creation timestamp — 创建时间
public record HistoryRecord(String id, String instanceId, String taskId, String stepId, Action action, String operatorId, String comment, String extraJson, Instant createdAt)
extends Record
Single immutable history entry (mirrors
flow_history row).
单条历史记录(对应 flow_history 表行)。- Since:
- JDK 25, opencode-base-flow V1.0.5
- Author:
- Leon Soo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.comment()Returns the value of thecommentrecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theextraJsonrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theinstanceIdrecord component.Returns the value of theoperatorIdrecord component.stepId()Returns the value of thestepIdrecord component.taskId()Returns the value of thetaskIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HistoryRecord
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
-
instanceId
Returns the value of theinstanceIdrecord component.- Returns:
- the value of the
instanceIdrecord component
-
taskId
-
stepId
-
action
-
operatorId
Returns the value of theoperatorIdrecord component.- Returns:
- the value of the
operatorIdrecord component
-
comment
-
extraJson
-
createdAt
-