org.activiti.engine.impl
类 TaskServiceImpl

java.lang.Object
  继承者 org.activiti.engine.impl.ServiceImpl
      继承者 org.activiti.engine.impl.TaskServiceImpl
所有已实现的接口:
TaskService

public class TaskServiceImpl
extends ServiceImpl
implements TaskService

作者:
Tom Baeyens, Joram Barrez

字段摘要
 
从类 org.activiti.engine.impl.ServiceImpl 继承的字段
commandExecutor
 
构造方法摘要
TaskServiceImpl()
           
 
方法摘要
 void addCandidateGroup(String taskId, String groupId)
          Convenience shorthand for TaskService.addGroupIdentityLink(String, String, String); with type IdentityLinkType.CANDIDATE
 void addCandidateUser(String taskId, String userId)
          Convenience shorthand for TaskService.addUserIdentityLink(String, String, String); with type IdentityLinkType.CANDIDATE
 Comment addComment(String taskId, String processInstance, String message)
          Add a comment to a task and/or process instance.
 Comment addComment(String taskId, String processInstance, String type, String message)
          Add a comment to a task and/or process instance with a custom type.
 void addGroupIdentityLink(String taskId, String groupId, String identityLinkType)
          Involves a group with a task.
 void addUserIdentityLink(String taskId, String userId, String identityLinkType)
          Involves a user with a task.
 void claim(String taskId, String userId)
          Claim responsibility for a task: the given user is made assignee for the task.
 void complete(String taskId)
          Called when the task is successfully executed.
 void complete(String taskId, Map<String,Object> variables)
          Called when the task is successfully executed, and the required task parameters are given by the end-user.
 Attachment createAttachment(String attachmentType, String taskId, String processInstanceId, String attachmentName, String attachmentDescription, InputStream content)
          Add a new attachment to a task and/or a process instance and use an input stream to provide the content
 Attachment createAttachment(String attachmentType, String taskId, String processInstanceId, String attachmentName, String attachmentDescription, String url)
          Add a new attachment to a task and/or a process instance and use an url as the content
 NativeTaskQuery createNativeTaskQuery()
          Returns a new NativeQuery for tasks.
 TaskQuery createTaskQuery()
          Returns a new TaskQuery that can be used to dynamically query tasks.
 void delegateTask(String taskId, String userId)
          Delegates the task to another user.
 void deleteAttachment(String attachmentId)
          Delete an attachment
 void deleteCandidateGroup(String taskId, String groupId)
          Convenience shorthand for TaskService.deleteGroupIdentityLink(String, String, String); with type IdentityLinkType.CANDIDATE
 void deleteCandidateUser(String taskId, String userId)
          Convenience shorthand for TaskService.deleteUserIdentityLink(String, String, String); with type IdentityLinkType.CANDIDATE
 void deleteComment(String commentId)
          Removes an individual comment with the given id.
 void deleteComments(String taskId, String processInstanceId)
          Removes all comments from the provided task and/or process instance
 void deleteGroupIdentityLink(String taskId, String groupId, String identityLinkType)
          Removes the association between a group and a task for the given identityLinkType.
 void deleteTask(String taskId)
          Deletes the given task, not deleting historic information that is related to this task.
 void deleteTask(String taskId, boolean cascade)
          Deletes the given task.
 void deleteTask(String taskId, String deleteReason)
          Deletes the given task, not deleting historic information that is related to this task..
 void deleteTasks(Collection<String> taskIds)
          Deletes all tasks of the given collection, not deleting historic information that is related to these tasks.
 void deleteTasks(Collection<String> taskIds, boolean cascade)
          Deletes all tasks of the given collection.
 void deleteTasks(Collection<String> taskIds, String deleteReason)
          Deletes all tasks of the given collection, not deleting historic information that is related to these tasks.
 void deleteUserIdentityLink(String taskId, String userId, String identityLinkType)
          Removes the association between a user and a task for the given identityLinkType.
 Attachment getAttachment(String attachmentId)
          Retrieve a particular attachment
 InputStream getAttachmentContent(String attachmentId)
          Retrieve stream content of a particular attachment
 Comment getComment(String commentId)
          Returns an individual comment with the given id.
 List<Comment> getCommentsByType(String type)
          All comments of a given type.
 Event getEvent(String eventId)
          Returns an individual event with the given id.
 List<IdentityLink> getIdentityLinksForTask(String taskId)
          Retrieves the IdentityLinks associated with the given task.
 List<Attachment> getProcessInstanceAttachments(String processInstanceId)
          The list of attachments associated to a process instance
 List<Comment> getProcessInstanceComments(String processInstanceId)
          The comments related to the given process instance.
 List<Task> getSubTasks(String parentTaskId)
          The list of subtasks for this parent task
 List<Attachment> getTaskAttachments(String taskId)
          The list of attachments associated to a task
 List<Comment> getTaskComments(String taskId)
          The comments related to the given task.
 List<Comment> getTaskComments(String taskId, String type)
          The comments related to the given task of the given type.
 List<Event> getTaskEvents(String taskId)
          The all events related to the given task.
 Object getVariable(String executionId, String variableName)
          get a variables and search in the task scope and if available also the execution scopes.
 Object getVariableLocal(String executionId, String variableName)
          checks whether or not the task has a variable defined with the given name.
 Map<String,Object> getVariables(String executionId)
          get all variables and search in the task scope and if available also the execution scopes.
 Map<String,Object> getVariables(String executionId, Collection<String> variableNames)
          get values for all given variableNames and search only in the task scope.
 Map<String,Object> getVariablesLocal(String executionId)
          get all variables and search only in the task scope.
 Map<String,Object> getVariablesLocal(String executionId, Collection<String> variableNames)
          get a variable on a task
 boolean hasVariable(String taskId, String variableName)
          checks whether or not the task has a variable defined with the given name, in the task scope and if available also the execution scopes.
 boolean hasVariableLocal(String taskId, String variableName)
          checks whether or not the task has a variable defined with the given name, local task scope only.
 Task newTask()
          Creates a new task that is not related to any process instance.
 Task newTask(String taskId)
          create a new task with a user defined task id
 void removeVariable(String taskId, String variableName)
          Removes the variable from the task.
 void removeVariableLocal(String taskId, String variableName)
          Removes the variable from the task (not considering parent scopes).
 void removeVariables(String taskId, Collection<String> variableNames)
          Removes all variables in the given collection from the task.
 void removeVariablesLocal(String taskId, Collection<String> variableNames)
          Removes all variables in the given collection from the task (not considering parent scopes).
 void resolveTask(String taskId)
          Marks that the assignee is done with this task and that it can be send back to the owner.
 void resolveTask(String taskId, Map<String,Object> variables)
          Marks that the assignee is done with this task providing the required variables and that it can be sent back to the owner.
 void saveAttachment(Attachment attachment)
          Update the name and decription of an attachment
 void saveTask(Task task)
          Saves the given task to the persistent data store.
 void setAssignee(String taskId, String userId)
          Changes the assignee of the given task to the given userId.
 void setDueDate(String taskId, Date dueDate)
          Changes the due date of the task
 void setOwner(String taskId, String userId)
          Transfers ownership of this task to another user.
 void setPriority(String taskId, int priority)
          Changes the priority of the task.
 void setVariable(String executionId, String variableName, Object value)
          set variable on a task.
 void setVariableLocal(String executionId, String variableName, Object value)
          set variable on a task.
 void setVariables(String executionId, Map<String,? extends Object> variables)
          set variables on a task.
 void setVariablesLocal(String executionId, Map<String,? extends Object> variables)
          set variables on a task.
 void unclaim(String taskId)
          A shortcut to TaskService.claim(java.lang.String, java.lang.String) with null user in order to unclaim the task
 
从类 org.activiti.engine.impl.ServiceImpl 继承的方法
getCommandExecutor, setCommandExecutor
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

TaskServiceImpl

public TaskServiceImpl()
方法详细信息

newTask

public Task newTask()
从接口 TaskService 复制的描述
Creates a new task that is not related to any process instance. The returned task is transient and must be saved with TaskService.saveTask(Task) 'manually'.

指定者:
接口 TaskService 中的 newTask

newTask

public Task newTask(String taskId)
从接口 TaskService 复制的描述
create a new task with a user defined task id

指定者:
接口 TaskService 中的 newTask

saveTask

public void saveTask(Task task)
从接口 TaskService 复制的描述
Saves the given task to the persistent data store. If the task is already present in the persistent store, it is updated. After a new task has been saved, the task instance passed into this method is updated with the id of the newly created task.

指定者:
接口 TaskService 中的 saveTask
参数:
task - the task, cannot be null.

deleteTask

public void deleteTask(String taskId)
从接口 TaskService 复制的描述
Deletes the given task, not deleting historic information that is related to this task.

指定者:
接口 TaskService 中的 deleteTask
参数:
taskId - The id of the task that will be deleted, cannot be null. If no task exists with the given taskId, the operation is ignored.

deleteTasks

public void deleteTasks(Collection<String> taskIds)
从接口 TaskService 复制的描述
Deletes all tasks of the given collection, not deleting historic information that is related to these tasks.

指定者:
接口 TaskService 中的 deleteTasks
参数:
taskIds - The id's of the tasks that will be deleted, cannot be null. All id's in the list that don't have an existing task will be ignored.

deleteTask

public void deleteTask(String taskId,
                       boolean cascade)
从接口 TaskService 复制的描述
Deletes the given task.

指定者:
接口 TaskService 中的 deleteTask
参数:
taskId - The id of the task that will be deleted, cannot be null. If no task exists with the given taskId, the operation is ignored.
cascade - If cascade is true, also the historic information related to this task is deleted.

deleteTasks

public void deleteTasks(Collection<String> taskIds,
                        boolean cascade)
从接口 TaskService 复制的描述
Deletes all tasks of the given collection.

指定者:
接口 TaskService 中的 deleteTasks
参数:
taskIds - The id's of the tasks that will be deleted, cannot be null. All id's in the list that don't have an existing task will be ignored.
cascade - If cascade is true, also the historic information related to this task is deleted.

deleteTask

public void deleteTask(String taskId,
                       String deleteReason)
从接口 TaskService 复制的描述
Deletes the given task, not deleting historic information that is related to this task..

指定者:
接口 TaskService 中的 deleteTask
参数:
taskId - The id of the task that will be deleted, cannot be null. If no task exists with the given taskId, the operation is ignored.
deleteReason - reason the task is deleted. Is recorded in history, if enabled.

deleteTasks

public void deleteTasks(Collection<String> taskIds,
                        String deleteReason)
从接口 TaskService 复制的描述
Deletes all tasks of the given collection, not deleting historic information that is related to these tasks.

指定者:
接口 TaskService 中的 deleteTasks
参数:
taskIds - The id's of the tasks that will be deleted, cannot be null. All id's in the list that don't have an existing task will be ignored.
deleteReason - reason the task is deleted. Is recorded in history, if enabled.

setAssignee

public void setAssignee(String taskId,
                        String userId)
从接口 TaskService 复制的描述
Changes the assignee of the given task to the given userId. No check is done whether the user is known by the identity component.

指定者:
接口 TaskService 中的 setAssignee
参数:
taskId - id of the task, cannot be null.
userId - id of the user to use as assignee.

setOwner

public void setOwner(String taskId,
                     String userId)
从接口 TaskService 复制的描述
Transfers ownership of this task to another user. No check is done whether the user is known by the identity component.

指定者:
接口 TaskService 中的 setOwner
参数:
taskId - id of the task, cannot be null.
userId - of the person that is receiving ownership.

addCandidateUser

public void addCandidateUser(String taskId,
                             String userId)
从接口 TaskService 复制的描述
Convenience shorthand for TaskService.addUserIdentityLink(String, String, String); with type IdentityLinkType.CANDIDATE

指定者:
接口 TaskService 中的 addCandidateUser
参数:
taskId - id of the task, cannot be null.
userId - id of the user to use as candidate, cannot be null.

addCandidateGroup

public void addCandidateGroup(String taskId,
                              String groupId)
从接口 TaskService 复制的描述
Convenience shorthand for TaskService.addGroupIdentityLink(String, String, String); with type IdentityLinkType.CANDIDATE

指定者:
接口 TaskService 中的 addCandidateGroup
参数:
taskId - id of the task, cannot be null.
groupId - id of the group to use as candidate, cannot be null.

addUserIdentityLink

public void addUserIdentityLink(String taskId,
                                String userId,
                                String identityLinkType)
从接口 TaskService 复制的描述
Involves a user with a task. The type of identity link is defined by the given identityLinkType.

指定者:
接口 TaskService 中的 addUserIdentityLink
参数:
taskId - id of the task, cannot be null.
userId - id of the user involve, cannot be null.
identityLinkType - type of identityLink, cannot be null (@see IdentityLinkType).

addGroupIdentityLink

public void addGroupIdentityLink(String taskId,
                                 String groupId,
                                 String identityLinkType)
从接口 TaskService 复制的描述
Involves a group with a task. The type of identityLink is defined by the given identityLink.

指定者:
接口 TaskService 中的 addGroupIdentityLink
参数:
taskId - id of the task, cannot be null.
groupId - id of the group to involve, cannot be null.
identityLinkType - type of identity, cannot be null (@see IdentityLinkType).

deleteCandidateGroup

public void deleteCandidateGroup(String taskId,
                                 String groupId)
从接口 TaskService 复制的描述
Convenience shorthand for TaskService.deleteGroupIdentityLink(String, String, String); with type IdentityLinkType.CANDIDATE

指定者:
接口 TaskService 中的 deleteCandidateGroup
参数:
taskId - id of the task, cannot be null.
groupId - id of the group to use as candidate, cannot be null.

deleteCandidateUser

public void deleteCandidateUser(String taskId,
                                String userId)
从接口 TaskService 复制的描述
Convenience shorthand for TaskService.deleteUserIdentityLink(String, String, String); with type IdentityLinkType.CANDIDATE

指定者:
接口 TaskService 中的 deleteCandidateUser
参数:
taskId - id of the task, cannot be null.
userId - id of the user to use as candidate, cannot be null.

deleteGroupIdentityLink

public void deleteGroupIdentityLink(String taskId,
                                    String groupId,
                                    String identityLinkType)
从接口 TaskService 复制的描述
Removes the association between a group and a task for the given identityLinkType.

指定者:
接口 TaskService 中的 deleteGroupIdentityLink
参数:
taskId - id of the task, cannot be null.
groupId - id of the group to involve, cannot be null.
identityLinkType - type of identity, cannot be null (@see IdentityLinkType).

deleteUserIdentityLink

public void deleteUserIdentityLink(String taskId,
                                   String userId,
                                   String identityLinkType)
从接口 TaskService 复制的描述
Removes the association between a user and a task for the given identityLinkType.

指定者:
接口 TaskService 中的 deleteUserIdentityLink
参数:
taskId - id of the task, cannot be null.
userId - id of the user involve, cannot be null.
identityLinkType - type of identityLink, cannot be null (@see IdentityLinkType).

getIdentityLinksForTask

public List<IdentityLink> getIdentityLinksForTask(String taskId)
从接口 TaskService 复制的描述
Retrieves the IdentityLinks associated with the given task. Such an IdentityLink informs how a certain identity (eg. group or user) is associated with a certain task (eg. as candidate, assignee, etc.)

指定者:
接口 TaskService 中的 getIdentityLinksForTask

claim

public void claim(String taskId,
                  String userId)
从接口 TaskService 复制的描述
Claim responsibility for a task: the given user is made assignee for the task. The difference with TaskService.setAssignee(String, String) is that here a check is done if the task already has a user assigned to it. No check is done whether the user is known by the identity component.

指定者:
接口 TaskService 中的 claim
参数:
taskId - task to claim, cannot be null.
userId - user that claims the task. When userId is null the task is unclaimed, assigned to no one.

unclaim

public void unclaim(String taskId)
从接口 TaskService 复制的描述
A shortcut to TaskService.claim(java.lang.String, java.lang.String) with null user in order to unclaim the task

指定者:
接口 TaskService 中的 unclaim
参数:
taskId - task to unclaim, cannot be null.

complete

public void complete(String taskId)
从接口 TaskService 复制的描述
Called when the task is successfully executed.

指定者:
接口 TaskService 中的 complete
参数:
taskId - the id of the task to complete, cannot be null.

complete

public void complete(String taskId,
                     Map<String,Object> variables)
从接口 TaskService 复制的描述
Called when the task is successfully executed, and the required task parameters are given by the end-user.

指定者:
接口 TaskService 中的 complete
参数:
taskId - the id of the task to complete, cannot be null.
variables - task parameters. May be null or empty.

delegateTask

public void delegateTask(String taskId,
                         String userId)
从接口 TaskService 复制的描述
Delegates the task to another user. This means that the assignee is set and the delegation state is set to DelegationState.PENDING. If no owner is set on the task, the owner is set to the current assignee of the task.

指定者:
接口 TaskService 中的 delegateTask
参数:
taskId - The id of the task that will be delegated.
userId - The id of the user that will be set as assignee.

resolveTask

public void resolveTask(String taskId)
从接口 TaskService 复制的描述
Marks that the assignee is done with this task and that it can be send back to the owner. Can only be called when this task is DelegationState.PENDING delegation. After this method returns, the delegationState is set to DelegationState.RESOLVED.

指定者:
接口 TaskService 中的 resolveTask
参数:
taskId - the id of the task to resolve, cannot be null.

resolveTask

public void resolveTask(String taskId,
                        Map<String,Object> variables)
从接口 TaskService 复制的描述
Marks that the assignee is done with this task providing the required variables and that it can be sent back to the owner. Can only be called when this task is DelegationState.PENDING delegation. After this method returns, the delegationState is set to DelegationState.RESOLVED.

指定者:
接口 TaskService 中的 resolveTask

setPriority

public void setPriority(String taskId,
                        int priority)
从接口 TaskService 复制的描述
Changes the priority of the task. Authorization: actual owner / business admin

指定者:
接口 TaskService 中的 setPriority
参数:
taskId - id of the task, cannot be null.
priority - the new priority for the task.

setDueDate

public void setDueDate(String taskId,
                       Date dueDate)
从接口 TaskService 复制的描述
Changes the due date of the task

指定者:
接口 TaskService 中的 setDueDate
参数:
taskId - id of the task, cannot be null.
dueDate - the new due date for the task

createTaskQuery

public TaskQuery createTaskQuery()
从接口 TaskService 复制的描述
Returns a new TaskQuery that can be used to dynamically query tasks.

指定者:
接口 TaskService 中的 createTaskQuery

createNativeTaskQuery

public NativeTaskQuery createNativeTaskQuery()
从接口 TaskService 复制的描述
Returns a new NativeQuery for tasks.

指定者:
接口 TaskService 中的 createNativeTaskQuery

getVariables

public Map<String,Object> getVariables(String executionId)
从接口 TaskService 复制的描述
get all variables and search in the task scope and if available also the execution scopes. If you have many variables and you only need a few, consider using TaskService.getVariables(String, Collection) for better performance.

指定者:
接口 TaskService 中的 getVariables

getVariablesLocal

public Map<String,Object> getVariablesLocal(String executionId)
从接口 TaskService 复制的描述
get all variables and search only in the task scope. If you have many task local variables and you only need a few, consider using TaskService.getVariablesLocal(String, Collection) for better performance.

指定者:
接口 TaskService 中的 getVariablesLocal

getVariables

public Map<String,Object> getVariables(String executionId,
                                       Collection<String> variableNames)
从接口 TaskService 复制的描述
get values for all given variableNames and search only in the task scope.

指定者:
接口 TaskService 中的 getVariables

getVariablesLocal

public Map<String,Object> getVariablesLocal(String executionId,
                                            Collection<String> variableNames)
从接口 TaskService 复制的描述
get a variable on a task

指定者:
接口 TaskService 中的 getVariablesLocal

getVariable

public Object getVariable(String executionId,
                          String variableName)
从接口 TaskService 复制的描述
get a variables and search in the task scope and if available also the execution scopes.

指定者:
接口 TaskService 中的 getVariable

hasVariable

public boolean hasVariable(String taskId,
                           String variableName)
从接口 TaskService 复制的描述
checks whether or not the task has a variable defined with the given name, in the task scope and if available also the execution scopes.

指定者:
接口 TaskService 中的 hasVariable

getVariableLocal

public Object getVariableLocal(String executionId,
                               String variableName)
从接口 TaskService 复制的描述
checks whether or not the task has a variable defined with the given name.

指定者:
接口 TaskService 中的 getVariableLocal

hasVariableLocal

public boolean hasVariableLocal(String taskId,
                                String variableName)
从接口 TaskService 复制的描述
checks whether or not the task has a variable defined with the given name, local task scope only.

指定者:
接口 TaskService 中的 hasVariableLocal

setVariable

public void setVariable(String executionId,
                        String variableName,
                        Object value)
从接口 TaskService 复制的描述
set variable on a task. If the variable is not already existing, it will be created in the most outer scope. This means the process instance in case this task is related to an execution.

指定者:
接口 TaskService 中的 setVariable

setVariableLocal

public void setVariableLocal(String executionId,
                             String variableName,
                             Object value)
从接口 TaskService 复制的描述
set variable on a task. If the variable is not already existing, it will be created in the task.

指定者:
接口 TaskService 中的 setVariableLocal

setVariables

public void setVariables(String executionId,
                         Map<String,? extends Object> variables)
从接口 TaskService 复制的描述
set variables on a task. If the variable is not already existing, it will be created in the most outer scope. This means the process instance in case this task is related to an execution.

指定者:
接口 TaskService 中的 setVariables

setVariablesLocal

public void setVariablesLocal(String executionId,
                              Map<String,? extends Object> variables)
从接口 TaskService 复制的描述
set variables on a task. If the variable is not already existing, it will be created in the task.

指定者:
接口 TaskService 中的 setVariablesLocal

removeVariable

public void removeVariable(String taskId,
                           String variableName)
从接口 TaskService 复制的描述
Removes the variable from the task. When the variable does not exist, nothing happens.

指定者:
接口 TaskService 中的 removeVariable

removeVariableLocal

public void removeVariableLocal(String taskId,
                                String variableName)
从接口 TaskService 复制的描述
Removes the variable from the task (not considering parent scopes). When the variable does not exist, nothing happens.

指定者:
接口 TaskService 中的 removeVariableLocal

removeVariables

public void removeVariables(String taskId,
                            Collection<String> variableNames)
从接口 TaskService 复制的描述
Removes all variables in the given collection from the task. Non existing variable names are simply ignored.

指定者:
接口 TaskService 中的 removeVariables

removeVariablesLocal

public void removeVariablesLocal(String taskId,
                                 Collection<String> variableNames)
从接口 TaskService 复制的描述
Removes all variables in the given collection from the task (not considering parent scopes). Non existing variable names are simply ignored.

指定者:
接口 TaskService 中的 removeVariablesLocal

addComment

public Comment addComment(String taskId,
                          String processInstance,
                          String message)
从接口 TaskService 复制的描述
Add a comment to a task and/or process instance.

指定者:
接口 TaskService 中的 addComment

addComment

public Comment addComment(String taskId,
                          String processInstance,
                          String type,
                          String message)
从接口 TaskService 复制的描述
Add a comment to a task and/or process instance with a custom type.

指定者:
接口 TaskService 中的 addComment

getComment

public Comment getComment(String commentId)
从接口 TaskService 复制的描述
Returns an individual comment with the given id. Returns null if no comment exists with the given id.

指定者:
接口 TaskService 中的 getComment

getEvent

public Event getEvent(String eventId)
从接口 TaskService 复制的描述
Returns an individual event with the given id. Returns null if no event exists with the given id.

指定者:
接口 TaskService 中的 getEvent

getTaskComments

public List<Comment> getTaskComments(String taskId)
从接口 TaskService 复制的描述
The comments related to the given task.

指定者:
接口 TaskService 中的 getTaskComments

getTaskComments

public List<Comment> getTaskComments(String taskId,
                                     String type)
从接口 TaskService 复制的描述
The comments related to the given task of the given type.

指定者:
接口 TaskService 中的 getTaskComments

getCommentsByType

public List<Comment> getCommentsByType(String type)
从接口 TaskService 复制的描述
All comments of a given type.

指定者:
接口 TaskService 中的 getCommentsByType

getTaskEvents

public List<Event> getTaskEvents(String taskId)
从接口 TaskService 复制的描述
The all events related to the given task.

指定者:
接口 TaskService 中的 getTaskEvents

getProcessInstanceComments

public List<Comment> getProcessInstanceComments(String processInstanceId)
从接口 TaskService 复制的描述
The comments related to the given process instance.

指定者:
接口 TaskService 中的 getProcessInstanceComments

createAttachment

public Attachment createAttachment(String attachmentType,
                                   String taskId,
                                   String processInstanceId,
                                   String attachmentName,
                                   String attachmentDescription,
                                   InputStream content)
从接口 TaskService 复制的描述
Add a new attachment to a task and/or a process instance and use an input stream to provide the content

指定者:
接口 TaskService 中的 createAttachment

createAttachment

public Attachment createAttachment(String attachmentType,
                                   String taskId,
                                   String processInstanceId,
                                   String attachmentName,
                                   String attachmentDescription,
                                   String url)
从接口 TaskService 复制的描述
Add a new attachment to a task and/or a process instance and use an url as the content

指定者:
接口 TaskService 中的 createAttachment

getAttachmentContent

public InputStream getAttachmentContent(String attachmentId)
从接口 TaskService 复制的描述
Retrieve stream content of a particular attachment

指定者:
接口 TaskService 中的 getAttachmentContent

deleteAttachment

public void deleteAttachment(String attachmentId)
从接口 TaskService 复制的描述
Delete an attachment

指定者:
接口 TaskService 中的 deleteAttachment

deleteComments

public void deleteComments(String taskId,
                           String processInstanceId)
从接口 TaskService 复制的描述
Removes all comments from the provided task and/or process instance

指定者:
接口 TaskService 中的 deleteComments

deleteComment

public void deleteComment(String commentId)
从接口 TaskService 复制的描述
Removes an individual comment with the given id.

指定者:
接口 TaskService 中的 deleteComment

getAttachment

public Attachment getAttachment(String attachmentId)
从接口 TaskService 复制的描述
Retrieve a particular attachment

指定者:
接口 TaskService 中的 getAttachment

getTaskAttachments

public List<Attachment> getTaskAttachments(String taskId)
从接口 TaskService 复制的描述
The list of attachments associated to a task

指定者:
接口 TaskService 中的 getTaskAttachments

getProcessInstanceAttachments

public List<Attachment> getProcessInstanceAttachments(String processInstanceId)
从接口 TaskService 复制的描述
The list of attachments associated to a process instance

指定者:
接口 TaskService 中的 getProcessInstanceAttachments

saveAttachment

public void saveAttachment(Attachment attachment)
从接口 TaskService 复制的描述
Update the name and decription of an attachment

指定者:
接口 TaskService 中的 saveAttachment

getSubTasks

public List<Task> getSubTasks(String parentTaskId)
从接口 TaskService 复制的描述
The list of subtasks for this parent task

指定者:
接口 TaskService 中的 getSubTasks


Copyright © 2013 Alfresco. All rights reserved.