|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectorg.activiti.engine.impl.persistence.entity.VariableScopeImpl
org.activiti.engine.impl.persistence.entity.TaskEntity
public class TaskEntity
字段摘要 | |
---|---|
protected String |
assignee
|
protected Date |
createTime
|
protected DelegationState |
delegationState
|
static String |
DELETE_REASON_COMPLETED
|
static String |
DELETE_REASON_DELETED
|
protected String |
description
|
protected Date |
dueDate
|
protected String |
eventName
|
protected ExecutionEntity |
execution
|
protected String |
executionId
|
protected boolean |
isDeleted
|
protected boolean |
isIdentityLinksInitialized
|
protected String |
name
|
protected String |
owner
|
protected String |
parentTaskId
|
protected int |
priority
|
protected String |
processDefinitionId
|
protected ExecutionEntity |
processInstance
|
protected String |
processInstanceId
|
protected List<VariableInstanceEntity> |
queryVariables
|
protected int |
revision
|
protected int |
suspensionState
|
protected TaskDefinition |
taskDefinition
|
protected String |
taskDefinitionKey
|
protected List<IdentityLinkEntity> |
taskIdentityLinkEntities
|
从类 org.activiti.engine.impl.persistence.entity.VariableScopeImpl 继承的字段 |
---|
cachedElContext, id, variableInstances |
从接口 org.activiti.engine.task.Task 继承的字段 |
---|
DEFAULT_PRIORITY |
构造方法摘要 | |
---|---|
TaskEntity()
|
|
TaskEntity(String taskId)
|
方法摘要 | |
---|---|
void |
addCandidateGroup(String groupId)
Adds the given group as candidate group to this task |
void |
addCandidateGroups(Collection<String> candidateGroups)
Adds multiple groups as candidate group to this task. |
void |
addCandidateUser(String userId)
Adds the given user as a candidate user to this task. |
void |
addCandidateUsers(Collection<String> candidateUsers)
Adds multiple users as candidate user to this task. |
void |
addGroupIdentityLink(String groupId,
String identityLinkType)
Involves a group with group task. |
IdentityLinkEntity |
addIdentityLink(String userId,
String groupId,
String type)
|
void |
addUserIdentityLink(String userId,
String identityLinkType)
Involves a user with a task. |
void |
complete()
|
static TaskEntity |
create()
Creates a new task. |
static TaskEntity |
createAndInsert(ActivityExecution execution)
creates and initializes a new persistent task. |
void |
delegate(String userId)
delegates this task to the given user and sets the delegationState to DelegationState.PENDING . |
void |
deleteCandidateGroup(String groupId)
Convenience shorthand for #deleteGroupIdentityLink(String, String, String) ; with type IdentityLinkType.CANDIDATE |
void |
deleteCandidateUser(String userId)
Convenience shorthand for DelegateTask.deleteUserIdentityLink(String, String) ; with type IdentityLinkType.CANDIDATE |
void |
deleteGroupIdentityLink(String groupId,
String identityLinkType)
Removes the association between a group and a task for the given identityLinkType. |
void |
deleteIdentityLink(String userId,
String groupId,
String type)
|
void |
deleteUserIdentityLink(String userId,
String identityLinkType)
Removes the association between a user and a task for the given identityLinkType. |
void |
fireEvent(String taskEventName)
|
Map<String,Object> |
getActivityInstanceVariables()
|
String |
getAssignee()
The userId of the person to which this task is delegated. |
Set<IdentityLink> |
getCandidates()
Retrieves the candidate users and groups associated with the task. |
Date |
getCreateTime()
The date/time when this task was created |
DelegationState |
getDelegationState()
The current DelegationState for this task. |
String |
getDelegationStateString()
|
String |
getDescription()
Free text description of the task. |
Date |
getDueDate()
Due date of the task. |
String |
getEventName()
Returns the event name which triggered the task listener to fire for this task. |
ExecutionEntity |
getExecution()
Returns the execution currently at the task. |
String |
getExecutionId()
Reference to the path of execution or null if it is not related to a process instance. |
List<IdentityLinkEntity> |
getIdentityLinks()
|
String |
getName()
Name or title of the task. |
String |
getOwner()
The userId of the person that is responsible for this task. |
String |
getParentTaskId()
the parent task for which this task is a subtask |
protected VariableScopeImpl |
getParentVariableScope()
|
Object |
getPersistentState()
Returns a representation of the object, as would be stored in the database. |
int |
getPriority()
Indication of how important/urgent this task is |
String |
getProcessDefinitionId()
Reference to the process definition or null if it is not related to a process. |
ExecutionEntity |
getProcessInstance()
|
String |
getProcessInstanceId()
Reference to the process instance or null if it is not related to a process instance. |
Map<String,Object> |
getProcessVariables()
Returns the process variables if requested in the task query |
List<VariableInstanceEntity> |
getQueryVariables()
|
int |
getRevision()
|
int |
getRevisionNext()
|
int |
getSuspensionState()
|
TaskDefinition |
getTaskDefinition()
|
String |
getTaskDefinitionKey()
The id of the activity in the process defining this task or null if this is not related to a process |
Map<String,Object> |
getTaskLocalVariables()
Returns the local task variables if requested in the task query |
Map<String,VariableInstanceEntity> |
getVariableInstances()
|
protected void |
initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance)
|
void |
insert(ExecutionEntity execution)
|
protected boolean |
isActivityIdUsedForDetails()
Execution variable updates have activity instance ids, but historic task variable updates don't. |
boolean |
isDeleted()
|
boolean |
isSuspended()
Indicated whether this task is suspended or not. |
protected List<VariableInstanceEntity> |
loadVariableInstances()
|
void |
resolve()
|
void |
setAssignee(String assignee)
The userId of the person to which this task is delegated. |
void |
setAssigneeWithoutCascade(String assignee)
|
void |
setCreateTime(Date createTime)
|
void |
setDelegationState(DelegationState delegationState)
The current DelegationState for this task. |
void |
setDelegationStateString(String delegationStateString)
|
void |
setDeleted(boolean isDeleted)
|
void |
setDescription(String description)
Change the description of the task |
void |
setDescriptionWithoutCascade(String description)
|
void |
setDueDate(Date dueDate)
Change due date of the task. |
void |
setDueDateWithoutCascade(Date dueDate)
|
void |
setEventName(String eventName)
|
void |
setExecution(DelegateExecution execution)
|
void |
setExecution(ExecutionEntity execution)
|
void |
setExecutionId(String executionId)
|
void |
setExecutionVariables(Map<String,Object> parameters)
|
void |
setName(String taskName)
Name or title of the task. |
void |
setNameWithoutCascade(String taskName)
|
void |
setOwner(String owner)
The userId of the person that is responsible for this task. |
void |
setOwnerWithoutCascade(String owner)
|
void |
setParentTaskId(String parentTaskId)
the parent task for which this task is a subtask |
void |
setParentTaskIdWithoutCascade(String parentTaskId)
|
void |
setPriority(int priority)
Sets the indication of how important/urgent this task is |
void |
setPriorityWithoutCascade(int priority)
|
void |
setProcessDefinitionId(String processDefinitionId)
|
void |
setProcessInstance(ExecutionEntity processInstance)
|
void |
setProcessInstanceId(String processInstanceId)
|
void |
setQueryVariables(List<VariableInstanceEntity> queryVariables)
|
void |
setRevision(int revision)
|
void |
setSuspensionState(int suspensionState)
|
void |
setTaskDefinition(TaskDefinition taskDefinition)
|
void |
setTaskDefinitionKey(String taskDefinitionKey)
|
void |
setTaskDefinitionKeyWithoutCascade(String taskDefinitionKey)
|
String |
toString()
|
void |
update()
|
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
从接口 org.activiti.engine.task.Task 继承的方法 |
---|
getId |
从接口 org.activiti.engine.delegate.DelegateTask 继承的方法 |
---|
getId |
从接口 org.activiti.engine.impl.db.PersistentObject 继承的方法 |
---|
getId, setId |
字段详细信息 |
---|
public static final String DELETE_REASON_COMPLETED
public static final String DELETE_REASON_DELETED
protected int revision
protected String owner
protected String assignee
protected DelegationState delegationState
protected String parentTaskId
protected String name
protected String description
protected int priority
protected Date createTime
protected Date dueDate
protected int suspensionState
protected boolean isIdentityLinksInitialized
protected List<IdentityLinkEntity> taskIdentityLinkEntities
protected String executionId
protected ExecutionEntity execution
protected String processInstanceId
protected ExecutionEntity processInstance
protected String processDefinitionId
protected TaskDefinition taskDefinition
protected String taskDefinitionKey
protected boolean isDeleted
protected String eventName
protected List<VariableInstanceEntity> queryVariables
构造方法详细信息 |
---|
public TaskEntity()
public TaskEntity(String taskId)
方法详细信息 |
---|
public static TaskEntity createAndInsert(ActivityExecution execution)
public void insert(ExecutionEntity execution)
public void update()
public static TaskEntity create()
insert(ExecutionEntity)
.
public void complete()
public void delegate(String userId)
Task
复制的描述delegationState
to DelegationState.PENDING
.
If no owner is set on the task, the owner is set to the current assignee of the task.
Task
中的 delegate
public void resolve()
public Object getPersistentState()
PersistentObject
复制的描述
PersistentObject
中的 getPersistentState
public int getRevisionNext()
HasRevision
中的 getRevisionNext
protected VariableScopeImpl getParentVariableScope()
VariableScopeImpl
中的 getParentVariableScope
protected void initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance)
VariableScopeImpl
中的 initializeVariableInstanceBackPointer
protected List<VariableInstanceEntity> loadVariableInstances()
VariableScopeImpl
中的 loadVariableInstances
public ExecutionEntity getExecution()
DelegateTask
复制的描述
DelegateTask
中的 getExecution
public void setExecution(DelegateExecution execution)
public IdentityLinkEntity addIdentityLink(String userId, String groupId, String type)
public void deleteIdentityLink(String userId, String groupId, String type)
public Set<IdentityLink> getCandidates()
DelegateTask
复制的描述
DelegateTask
中的 getCandidates
IdentityLink
s of type IdentityLinkType.CANDIDATE
.public void addCandidateUser(String userId)
DelegateTask
复制的描述
DelegateTask
中的 addCandidateUser
public void addCandidateUsers(Collection<String> candidateUsers)
DelegateTask
复制的描述
DelegateTask
中的 addCandidateUsers
public void addCandidateGroup(String groupId)
DelegateTask
复制的描述
DelegateTask
中的 addCandidateGroup
public void addCandidateGroups(Collection<String> candidateGroups)
DelegateTask
复制的描述
DelegateTask
中的 addCandidateGroups
public void addGroupIdentityLink(String groupId, String identityLinkType)
DelegateTask
复制的描述
DelegateTask
中的 addGroupIdentityLink
groupId
- id of the group to involve, cannot be null.identityLinkType
- type of identity, cannot be null (@see IdentityLinkType
).public void addUserIdentityLink(String userId, String identityLinkType)
DelegateTask
复制的描述
DelegateTask
中的 addUserIdentityLink
userId
- id of the user involve, cannot be null.identityLinkType
- type of identityLink, cannot be null (@see IdentityLinkType
).public void deleteCandidateGroup(String groupId)
DelegateTask
复制的描述#deleteGroupIdentityLink(String, String, String)
; with type IdentityLinkType.CANDIDATE
DelegateTask
中的 deleteCandidateGroup
groupId
- id of the group to use as candidate, cannot be null.public void deleteCandidateUser(String userId)
DelegateTask
复制的描述DelegateTask.deleteUserIdentityLink(String, String)
; with type IdentityLinkType.CANDIDATE
DelegateTask
中的 deleteCandidateUser
userId
- id of the user to use as candidate, cannot be null.public void deleteGroupIdentityLink(String groupId, String identityLinkType)
DelegateTask
复制的描述
DelegateTask
中的 deleteGroupIdentityLink
groupId
- id of the group to involve, cannot be null.identityLinkType
- type of identity, cannot be null (@see IdentityLinkType
).public void deleteUserIdentityLink(String userId, String identityLinkType)
DelegateTask
复制的描述
DelegateTask
中的 deleteUserIdentityLink
userId
- id of the user involve, cannot be null.identityLinkType
- type of identityLink, cannot be null (@see IdentityLinkType
).public List<IdentityLinkEntity> getIdentityLinks()
public Map<String,Object> getActivityInstanceVariables()
public void setExecutionVariables(Map<String,Object> parameters)
public String toString()
Object
中的 toString
public void setName(String taskName)
Task
复制的描述
DelegateTask
中的 setName
Task
中的 setName
public void setNameWithoutCascade(String taskName)
public void setDescription(String description)
Task
复制的描述
DelegateTask
中的 setDescription
Task
中的 setDescription
public void setDescriptionWithoutCascade(String description)
public void setAssignee(String assignee)
Task
复制的描述userId
of the person to which this task is delegated.
DelegateTask
中的 setAssignee
Task
中的 setAssignee
public void setAssigneeWithoutCascade(String assignee)
public void setOwner(String owner)
Task
复制的描述userId
of the person that is responsible for this task.
DelegateTask
中的 setOwner
Task
中的 setOwner
public void setOwnerWithoutCascade(String owner)
public void setDueDate(Date dueDate)
Task
复制的描述
DelegateTask
中的 setDueDate
Task
中的 setDueDate
public void setDueDateWithoutCascade(Date dueDate)
public void setPriority(int priority)
Task
复制的描述
DelegateTask
中的 setPriority
Task
中的 setPriority
public void setPriorityWithoutCascade(int priority)
public void setParentTaskId(String parentTaskId)
Task
复制的描述
Task
中的 setParentTaskId
public void setParentTaskIdWithoutCascade(String parentTaskId)
public void setTaskDefinitionKeyWithoutCascade(String taskDefinitionKey)
public void fireEvent(String taskEventName)
protected boolean isActivityIdUsedForDetails()
VariableScopeImpl
复制的描述
VariableScopeImpl
中的 isActivityIdUsedForDetails
public void setTaskDefinition(TaskDefinition taskDefinition)
public TaskDefinition getTaskDefinition()
public int getRevision()
HasRevision
中的 getRevision
public void setRevision(int revision)
HasRevision
中的 setRevision
public String getName()
Task
复制的描述
DelegateTask
中的 getName
Task
中的 getName
public String getDescription()
Task
复制的描述
DelegateTask
中的 getDescription
Task
中的 getDescription
public Date getDueDate()
Task
复制的描述
DelegateTask
中的 getDueDate
Task
中的 getDueDate
public int getPriority()
Task
复制的描述
DelegateTask
中的 getPriority
Task
中的 getPriority
public Date getCreateTime()
Task
复制的描述
DelegateTask
中的 getCreateTime
Task
中的 getCreateTime
public void setCreateTime(Date createTime)
public String getExecutionId()
Task
复制的描述
DelegateTask
中的 getExecutionId
Task
中的 getExecutionId
public String getProcessInstanceId()
Task
复制的描述
DelegateTask
中的 getProcessInstanceId
Task
中的 getProcessInstanceId
public String getProcessDefinitionId()
Task
复制的描述
DelegateTask
中的 getProcessDefinitionId
Task
中的 getProcessDefinitionId
public void setProcessDefinitionId(String processDefinitionId)
public String getAssignee()
Task
复制的描述userId
of the person to which this task is delegated.
DelegateTask
中的 getAssignee
Task
中的 getAssignee
public String getTaskDefinitionKey()
Task
复制的描述
DelegateTask
中的 getTaskDefinitionKey
Task
中的 getTaskDefinitionKey
public void setTaskDefinitionKey(String taskDefinitionKey)
public String getEventName()
DelegateTask
复制的描述
DelegateTask
中的 getEventName
public void setEventName(String eventName)
public void setExecutionId(String executionId)
public ExecutionEntity getProcessInstance()
public void setProcessInstance(ExecutionEntity processInstance)
public void setExecution(ExecutionEntity execution)
public void setProcessInstanceId(String processInstanceId)
public String getOwner()
Task
复制的描述userId
of the person that is responsible for this task.
DelegateTask
中的 getOwner
Task
中的 getOwner
public DelegationState getDelegationState()
Task
复制的描述DelegationState
for this task.
Task
中的 getDelegationState
public void setDelegationState(DelegationState delegationState)
Task
复制的描述DelegationState
for this task.
Task
中的 setDelegationState
public String getDelegationStateString()
public void setDelegationStateString(String delegationStateString)
public boolean isDeleted()
public void setDeleted(boolean isDeleted)
public String getParentTaskId()
Task
复制的描述
Task
中的 getParentTaskId
public Map<String,VariableInstanceEntity> getVariableInstances()
public int getSuspensionState()
public void setSuspensionState(int suspensionState)
public boolean isSuspended()
Task
复制的描述
Task
中的 isSuspended
public Map<String,Object> getTaskLocalVariables()
Task
复制的描述
Task
中的 getTaskLocalVariables
public Map<String,Object> getProcessVariables()
Task
复制的描述
Task
中的 getProcessVariables
public List<VariableInstanceEntity> getQueryVariables()
public void setQueryVariables(List<VariableInstanceEntity> queryVariables)
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |