1
0

增加一个额外的字段用于额外的查询条件

This commit is contained in:
2025-01-07 14:31:24 +08:00
parent b56555923a
commit bf0e7e47be
2 changed files with 6 additions and 0 deletions

View File

@@ -52,12 +52,15 @@ public class FlowableInstance {
@LastModifiedDate
private LocalDateTime updatedTime;
private String extra;
@SneakyThrows
public FlowableInstance(com.lanyuanxiaoyao.flowable.core.model.FlowableInstance instance) {
this.instanceId = instance.getInstanceId();
this.metadata = objectToBytes(instance.getMetadata());
this.currentNodeId = instance.getCurrentNodeId();
this.status = instance.getStatus();
this.extra = instance.getExtra();
}
private static byte[] objectToBytes(Object object) throws IOException {
@@ -86,6 +89,7 @@ public class FlowableInstance {
.status(status)
.createdTime(createdTime)
.updatedTime(updatedTime)
.extra(extra)
.build();
}
}