提交 9e910c93 编写于 作者: J Joram Barrez

ACT-1585: replacing getPersistentState() of IdentityLinkEntity with something that actually works

上级 115e1cc6
......@@ -13,6 +13,8 @@
package org.activiti.engine.impl.persistence.entity;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import org.activiti.engine.ActivitiException;
import org.activiti.engine.impl.context.Context;
......@@ -48,7 +50,31 @@ public class IdentityLinkEntity implements Serializable, IdentityLink, Persisten
protected ProcessDefinitionEntity processDef;
public Object getPersistentState() {
return this.type;
Map<String, Object> persistentState = new HashMap<String, Object>();
persistentState.put("id", this.id);
persistentState.put("type", this.type);
if (this.userId != null) {
persistentState.put("userId", this.userId);
}
if (this.groupId != null) {
persistentState.put("groupId", this.groupId);
}
if (this.taskId != null) {
persistentState.put("taskId", this.taskId);
}
if (this.processInstanceId != null) {
persistentState.put("processInstanceId", this.processInstanceId);
}
if (this.processDefId != null) {
persistentState.put("processDefId", this.processDefId);
}
return persistentState;
}
public static IdentityLinkEntity createAndInsert() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册