Package org.jbpm.kie.services.impl
Class UserTaskServiceImpl
- java.lang.Object
-
- org.jbpm.kie.services.impl.UserTaskServiceImpl
-
- All Implemented Interfaces:
VariablesAware,UserTaskService
- Direct Known Subclasses:
UserTaskServiceCDIImpl,UserTaskServiceEJBImpl
public class UserTaskServiceImpl extends Object implements UserTaskService, VariablesAware
-
-
Constructor Summary
Constructors Constructor Description UserTaskServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(Long taskId, String userId)Activate the task, i.e. set the task to status Ready.voidactivate(String deploymentId, Long taskId, String userId)Activate the task, i.e. set the task to status Ready.LongaddAttachment(Long taskId, String userId, String name, Object attachment)Add attachment to a taskLongaddAttachment(String deploymentId, Long taskId, String userId, String name, Object attachment)Add attachment to a taskLongaddComment(Long taskId, String text, String addedBy, Date addedOn)Add comment to a taskLongaddComment(String deploymentId, Long taskId, String text, String addedBy, Date addedOn)Add comment to a taskvoidclaim(Long taskId, String userId)Claim responsibility for a task, i.e. set the task to status Reservedvoidclaim(String deploymentId, Long taskId, String userId)Claim responsibility for a task, i.e. set the task to status Reservedvoidclaim(String deploymentId, Collection<Long> taskIds, String userId)Claim responsibility for a list of tasks, i.e. set the tasks to status Reservedvoidcomplete(Long taskId, String userId, Map<String,Object> params)Complete a task with the given datavoidcomplete(String deploymentId, Long taskId, String userId, Map<String,Object> params)Complete a task with the given datavoidcompleteAutoProgress(Long taskId, String userId, Map<String,Object> params)Complete a task with the given data.voidcompleteAutoProgress(String deploymentId, Long taskId, String userId, Map<String,Object> params)Complete a task with the given data.voiddelegate(Long taskId, String userId, String targetUserId)Delegate a task from userId to targetUserIdvoiddelegate(String deploymentId, Long taskId, String userId, String targetUserId)Delegate a task from userId to targetUserIdvoiddeleteAttachment(Long taskId, Long attachmentId)Delete attachment from a taskvoiddeleteAttachment(String deploymentId, Long taskId, Long attachmentId)Delete attachment from a taskvoiddeleteComment(Long taskId, Long commentId)Deletes comment from a taskvoiddeleteComment(String deploymentId, Long taskId, Long commentId)Deletes comment from a taskvoiddeleteContent(Long taskId, Long contentId)Deletes content given bycontentIdfrom given taskvoiddeleteContent(String deploymentId, Long taskId, Long contentId)Deletes content given bycontentIdfrom given taskprotected voiddisposeRuntimeEngine(org.kie.api.runtime.manager.RuntimeManager manager, org.kie.api.runtime.manager.RuntimeEngine engine)<T> Texecute(String deploymentId, org.kie.api.command.Command<T> command)Executes provided command on the underlying command executor<T> Texecute(String deploymentId, org.kie.api.runtime.manager.Context<?> context, org.kie.api.command.Command<T> command)Executes provided command on the underlying command executorvoidexit(Long taskId, String userId)Requesting application is no longer interested in the task outputvoidexit(String deploymentId, Long taskId, String userId)Requesting application is no longer interested in the task outputvoidfail(Long taskId, String userId, Map<String,Object> faultData)Actual owner completes the execution of the task raising a fault.voidfail(String deploymentId, Long taskId, String userId, Map<String,Object> faultData)Actual owner completes the execution of the task raising a fault.voidforward(Long taskId, String userId, String targetEntityId)Forward the task to another organization entity.voidforward(String deploymentId, Long taskId, String userId, String targetEntityId)Forward the task to another organization entity.org.kie.api.task.model.AttachmentgetAttachmentById(Long taskId, Long attachmentId)Get attachment by identifierorg.kie.api.task.model.AttachmentgetAttachmentById(String deploymentId, Long taskId, Long attachmentId)Get attachment by identifierObjectgetAttachmentContentById(Long taskId, Long attachmentId)Get attachment's content by identifierObjectgetAttachmentContentById(String deploymentId, Long taskId, Long attachmentId)Get attachment's content by identifierList<org.kie.api.task.model.Attachment>getAttachmentsByTaskId(Long taskId)Get attachments for a taskList<org.kie.api.task.model.Attachment>getAttachmentsByTaskId(String deploymentId, Long taskId)Get attachments for a taskorg.kie.api.task.model.CommentgetCommentById(Long taskId, Long commentId)Get comment by identifierorg.kie.api.task.model.CommentgetCommentById(String deploymentId, Long taskId, Long commentId)Get comment by identifierList<org.kie.api.task.model.Comment>getCommentsByTaskId(Long taskId)Get comments for a taskList<org.kie.api.task.model.Comment>getCommentsByTaskId(String deploymentId, Long taskId)Get comments for a taskprotected org.kie.internal.task.api.InternalTaskServicegetInternalTaskService()protected org.kie.api.runtime.manager.RuntimeManagergetRuntimeManager(String deploymentId, org.kie.api.command.Command<?> command)protected org.kie.api.runtime.manager.RuntimeManagergetRuntimeManager(UserTaskInstanceDesc task)org.kie.api.task.model.TaskgetTask(Long taskId)Returns task instanceorg.kie.api.task.model.TaskgetTask(String deploymentId, Long taskId)Returns task instanceMap<String,Object>getTaskInputContentByTaskId(Long taskId)Returns task input data of a taskMap<String,Object>getTaskInputContentByTaskId(String deploymentId, Long taskId)Returns task input data of a taskMap<String,Object>getTaskOutputContentByTaskId(Long taskId)Returns task output data currently stored, might be null of no data is storedMap<String,Object>getTaskOutputContentByTaskId(String deploymentId, Long taskId)Returns task output data currently stored, might be null of no data is storedvoidnominate(Long taskId, String userId, List<org.kie.api.task.model.OrganizationalEntity> potentialOwners)Nominate a task to be handled by potentialOwnersvoidnominate(String deploymentId, Long taskId, String userId, List<org.kie.api.task.model.OrganizationalEntity> potentialOwners)Nominate a task to be handled by potentialOwners<T> Tprocess(T variables, ClassLoader cl)Generic processing method that might be simply returning same instance of variables if no processing is required.voidrelease(Long taskId, String userId)Release a previously claimed taskvoidrelease(String deploymentId, Long taskId, String userId)Release a previously claimed taskvoidresume(Long taskId, String userId)Resume a previously suspended taskvoidresume(String deploymentId, Long taskId, String userId)Resume a previously suspended taskLongsaveContent(Long taskId, Map<String,Object> values)Saves gives values as content of a task, applies to task output as input cannot be alteredLongsaveContent(String deploymentId, Long taskId, String userId, Map<String,Object> values)LongsaveContent(String deploymentId, Long taskId, Map<String,Object> values)Saves gives values as content of a task, applies to task output as input cannot be alteredLongsaveContentFromUser(Long taskId, String userId, Map<String,Object> values)Saves gives values as content of a task, applies to task output as input cannot be alteredvoidsetDataService(RuntimeDataService dataService)voidsetDeploymentService(DeploymentService deploymentService)voidsetDescription(Long taskId, String description)Sets description of the taskvoidsetDescription(String deploymentId, Long taskId, String description)Sets description of the taskvoidsetExpirationDate(Long taskId, Date date)Sets expiration date of a task to given valuevoidsetExpirationDate(String deploymentId, Long taskId, Date date)Sets expiration date of a task to given valuevoidsetName(Long taskId, String name)Sets name of the taskvoidsetName(String deploymentId, Long taskId, String name)Sets name of the taskvoidsetNonProcessScopedTaskService(org.kie.internal.task.api.InternalTaskService nonProcessScopedTaskService)voidsetPriority(Long taskId, int priority)Sets priority of a task to given valuevoidsetPriority(String deploymentId, Long taskId, int priority)Sets priority of a task to given valuevoidsetSkipable(Long taskId, boolean skipable)Sets skipable property of a task to given valuevoidsetSkipable(String deploymentId, Long taskId, boolean skipable)Sets skipable property of a task to given valuevoidskip(Long taskId, String userId)Skip a claimed taskvoidskip(String deploymentId, Long taskId, String userId)Skip a claimed taskvoidstart(Long taskId, String userId)Start the execution of the task, i.e. set the task to status InProgress.voidstart(String deploymentId, Long taskId, String userId)Start the execution of the task, i.e. set the task to status InProgress.voidstop(Long taskId, String userId)Cancel/stop the processing of the task.voidstop(String deploymentId, Long taskId, String userId)Cancel/stop the processing of the task.voidsuspend(Long taskId, String userId)Suspend a claimed task.voidsuspend(String deploymentId, Long taskId, String userId)Suspend a claimed task.voidupdateTask(Long taskId, String userId, UserTaskInstanceDesc userTask, Map<String,Object> inputData, Map<String,Object> outputData)Updates user task properties and data inputs and outputs.voidupdateTask(String deploymentId, Long taskId, String userId, UserTaskInstanceDesc userTask, Map<String,Object> inputData, Map<String,Object> outputData)Updates user task properties and data inputs and outputs.protected voidvalidateTask(String deploymentId, Long taskId, UserTaskInstanceDesc task)
-
-
-
Method Detail
-
setDeploymentService
public void setDeploymentService(DeploymentService deploymentService)
-
setDataService
public void setDataService(RuntimeDataService dataService)
-
setNonProcessScopedTaskService
public void setNonProcessScopedTaskService(org.kie.internal.task.api.InternalTaskService nonProcessScopedTaskService)
-
getInternalTaskService
protected org.kie.internal.task.api.InternalTaskService getInternalTaskService()
-
getRuntimeManager
protected org.kie.api.runtime.manager.RuntimeManager getRuntimeManager(UserTaskInstanceDesc task)
-
getRuntimeManager
protected org.kie.api.runtime.manager.RuntimeManager getRuntimeManager(String deploymentId, org.kie.api.command.Command<?> command)
-
validateTask
protected void validateTask(String deploymentId, Long taskId, UserTaskInstanceDesc task)
-
activate
public void activate(Long taskId, String userId)
Description copied from interface:UserTaskServiceActivate the task, i.e. set the task to status Ready.- Specified by:
activatein interfaceUserTaskService
-
activate
public void activate(String deploymentId, Long taskId, String userId)
Description copied from interface:UserTaskServiceActivate the task, i.e. set the task to status Ready.- Specified by:
activatein interfaceUserTaskService
-
claim
public void claim(Long taskId, String userId)
Description copied from interface:UserTaskServiceClaim responsibility for a task, i.e. set the task to status Reserved- Specified by:
claimin interfaceUserTaskService
-
claim
public void claim(String deploymentId, Long taskId, String userId)
Description copied from interface:UserTaskServiceClaim responsibility for a task, i.e. set the task to status Reserved- Specified by:
claimin interfaceUserTaskService
-
claim
public void claim(String deploymentId, Collection<Long> taskIds, String userId)
Description copied from interface:UserTaskServiceClaim responsibility for a list of tasks, i.e. set the tasks to status Reserved- Specified by:
claimin interfaceUserTaskServicetaskIds- list of task to be claimed
-
complete
public void complete(Long taskId, String userId, Map<String,Object> params)
Description copied from interface:UserTaskServiceComplete a task with the given data- Specified by:
completein interfaceUserTaskService
-
complete
public void complete(String deploymentId, Long taskId, String userId, Map<String,Object> params)
Description copied from interface:UserTaskServiceComplete a task with the given data- Specified by:
completein interfaceUserTaskService
-
completeAutoProgress
public void completeAutoProgress(Long taskId, String userId, Map<String,Object> params)
Description copied from interface:UserTaskServiceComplete a task with the given data. If needed, the task is automatically claimed and/or started.- Specified by:
completeAutoProgressin interfaceUserTaskService
-
completeAutoProgress
public void completeAutoProgress(String deploymentId, Long taskId, String userId, Map<String,Object> params)
Description copied from interface:UserTaskServiceComplete a task with the given data. If needed, the task is automatically claimed and/or started.- Specified by:
completeAutoProgressin interfaceUserTaskService
-
delegate
public void delegate(Long taskId, String userId, String targetUserId)
Description copied from interface:UserTaskServiceDelegate a task from userId to targetUserId- Specified by:
delegatein interfaceUserTaskService
-
delegate
public void delegate(String deploymentId, Long taskId, String userId, String targetUserId)
Description copied from interface:UserTaskServiceDelegate a task from userId to targetUserId- Specified by:
delegatein interfaceUserTaskService
-
exit
public void exit(Long taskId, String userId)
Description copied from interface:UserTaskServiceRequesting application is no longer interested in the task output- Specified by:
exitin interfaceUserTaskService
-
exit
public void exit(String deploymentId, Long taskId, String userId)
Description copied from interface:UserTaskServiceRequesting application is no longer interested in the task output- Specified by:
exitin interfaceUserTaskService
-
fail
public void fail(Long taskId, String userId, Map<String,Object> faultData)
Description copied from interface:UserTaskServiceActual owner completes the execution of the task raising a fault. The fault illegalOperationFault is returned if the task interface defines no faults. If fault name or fault data is not set the operation returns illegalArgumentFault.- Specified by:
failin interfaceUserTaskService
-
fail
public void fail(String deploymentId, Long taskId, String userId, Map<String,Object> faultData)
Description copied from interface:UserTaskServiceActual owner completes the execution of the task raising a fault. The fault illegalOperationFault is returned if the task interface defines no faults. If fault name or fault data is not set the operation returns illegalArgumentFault.- Specified by:
failin interfaceUserTaskService
-
forward
public void forward(Long taskId, String userId, String targetEntityId)
Description copied from interface:UserTaskServiceForward the task to another organization entity. The caller has to specify the receiving organizational entity. Potential owners can only forward a task while the task is in the Ready state. For details on forwarding human tasks refer to section 4.7.3 in WS-HumanTask_v1.pdf- Specified by:
forwardin interfaceUserTaskService
-
forward
public void forward(String deploymentId, Long taskId, String userId, String targetEntityId)
Description copied from interface:UserTaskServiceForward the task to another organization entity. The caller has to specify the receiving organizational entity. Potential owners can only forward a task while the task is in the Ready state. For details on forwarding human tasks refer to section 4.7.3 in WS-HumanTask_v1.pdf- Specified by:
forwardin interfaceUserTaskService
-
release
public void release(Long taskId, String userId)
Description copied from interface:UserTaskServiceRelease a previously claimed task- Specified by:
releasein interfaceUserTaskService
-
release
public void release(String deploymentId, Long taskId, String userId)
Description copied from interface:UserTaskServiceRelease a previously claimed task- Specified by:
releasein interfaceUserTaskService
-
resume
public void resume(Long taskId, String userId)
Description copied from interface:UserTaskServiceResume a previously suspended task- Specified by:
resumein interfaceUserTaskService
-
resume
public void resume(String deploymentId, Long taskId, String userId)
Description copied from interface:UserTaskServiceResume a previously suspended task- Specified by:
resumein interfaceUserTaskService
-
skip
public void skip(Long taskId, String userId)
Description copied from interface:UserTaskServiceSkip a claimed task- Specified by:
skipin interfaceUserTaskService
-
skip
public void skip(String deploymentId, Long taskId, String userId)
Description copied from interface:UserTaskServiceSkip a claimed task- Specified by:
skipin interfaceUserTaskService
-
start
public void start(Long taskId, String userId)
Description copied from interface:UserTaskServiceStart the execution of the task, i.e. set the task to status InProgress.- Specified by:
startin interfaceUserTaskService
-
start
public void start(String deploymentId, Long taskId, String userId)
Description copied from interface:UserTaskServiceStart the execution of the task, i.e. set the task to status InProgress.- Specified by:
startin interfaceUserTaskService
-
stop
public void stop(Long taskId, String userId)
Description copied from interface:UserTaskServiceCancel/stop the processing of the task. The task returns to the Reserved state.- Specified by:
stopin interfaceUserTaskService
-
stop
public void stop(String deploymentId, Long taskId, String userId)
Description copied from interface:UserTaskServiceCancel/stop the processing of the task. The task returns to the Reserved state.- Specified by:
stopin interfaceUserTaskService
-
suspend
public void suspend(Long taskId, String userId)
Description copied from interface:UserTaskServiceSuspend a claimed task.- Specified by:
suspendin interfaceUserTaskService
-
suspend
public void suspend(String deploymentId, Long taskId, String userId)
Description copied from interface:UserTaskServiceSuspend a claimed task.- Specified by:
suspendin interfaceUserTaskService
-
nominate
public void nominate(Long taskId, String userId, List<org.kie.api.task.model.OrganizationalEntity> potentialOwners)
Description copied from interface:UserTaskServiceNominate a task to be handled by potentialOwners- Specified by:
nominatein interfaceUserTaskService
-
nominate
public void nominate(String deploymentId, Long taskId, String userId, List<org.kie.api.task.model.OrganizationalEntity> potentialOwners)
Description copied from interface:UserTaskServiceNominate a task to be handled by potentialOwners- Specified by:
nominatein interfaceUserTaskService
-
setPriority
public void setPriority(Long taskId, int priority)
Description copied from interface:UserTaskServiceSets priority of a task to given value- Specified by:
setPriorityin interfaceUserTaskService
-
setPriority
public void setPriority(String deploymentId, Long taskId, int priority)
Description copied from interface:UserTaskServiceSets priority of a task to given value- Specified by:
setPriorityin interfaceUserTaskService
-
setExpirationDate
public void setExpirationDate(Long taskId, Date date)
Description copied from interface:UserTaskServiceSets expiration date of a task to given value- Specified by:
setExpirationDatein interfaceUserTaskService
-
setExpirationDate
public void setExpirationDate(String deploymentId, Long taskId, Date date)
Description copied from interface:UserTaskServiceSets expiration date of a task to given value- Specified by:
setExpirationDatein interfaceUserTaskService
-
setSkipable
public void setSkipable(Long taskId, boolean skipable)
Description copied from interface:UserTaskServiceSets skipable property of a task to given value- Specified by:
setSkipablein interfaceUserTaskService
-
setSkipable
public void setSkipable(String deploymentId, Long taskId, boolean skipable)
Description copied from interface:UserTaskServiceSets skipable property of a task to given value- Specified by:
setSkipablein interfaceUserTaskService
-
setName
public void setName(Long taskId, String name)
Description copied from interface:UserTaskServiceSets name of the task- Specified by:
setNamein interfaceUserTaskService
-
setName
public void setName(String deploymentId, Long taskId, String name)
Description copied from interface:UserTaskServiceSets name of the task- Specified by:
setNamein interfaceUserTaskService
-
setDescription
public void setDescription(Long taskId, String description)
Description copied from interface:UserTaskServiceSets description of the task- Specified by:
setDescriptionin interfaceUserTaskService
-
setDescription
public void setDescription(String deploymentId, Long taskId, String description)
Description copied from interface:UserTaskServiceSets description of the task- Specified by:
setDescriptionin interfaceUserTaskService
-
saveContent
public Long saveContent(Long taskId, Map<String,Object> values)
Description copied from interface:UserTaskServiceSaves gives values as content of a task, applies to task output as input cannot be altered- Specified by:
saveContentin interfaceUserTaskService- Returns:
-
saveContentFromUser
public Long saveContentFromUser(Long taskId, String userId, Map<String,Object> values)
Description copied from interface:UserTaskServiceSaves gives values as content of a task, applies to task output as input cannot be altered- Specified by:
saveContentFromUserin interfaceUserTaskService- Returns:
-
saveContent
public Long saveContent(String deploymentId, Long taskId, Map<String,Object> values)
Description copied from interface:UserTaskServiceSaves gives values as content of a task, applies to task output as input cannot be altered- Specified by:
saveContentin interfaceUserTaskService- Returns:
-
saveContent
public Long saveContent(String deploymentId, Long taskId, String userId, Map<String,Object> values)
-
deleteContent
public void deleteContent(Long taskId, Long contentId)
Description copied from interface:UserTaskServiceDeletes content given bycontentIdfrom given task- Specified by:
deleteContentin interfaceUserTaskService
-
deleteContent
public void deleteContent(String deploymentId, Long taskId, Long contentId)
Description copied from interface:UserTaskServiceDeletes content given bycontentIdfrom given task- Specified by:
deleteContentin interfaceUserTaskService
-
getTaskOutputContentByTaskId
public Map<String,Object> getTaskOutputContentByTaskId(Long taskId)
Description copied from interface:UserTaskServiceReturns task output data currently stored, might be null of no data is stored- Specified by:
getTaskOutputContentByTaskIdin interfaceUserTaskService- Returns:
-
getTaskOutputContentByTaskId
public Map<String,Object> getTaskOutputContentByTaskId(String deploymentId, Long taskId)
Description copied from interface:UserTaskServiceReturns task output data currently stored, might be null of no data is stored- Specified by:
getTaskOutputContentByTaskIdin interfaceUserTaskService- Returns:
-
getTaskInputContentByTaskId
public Map<String,Object> getTaskInputContentByTaskId(Long taskId)
Description copied from interface:UserTaskServiceReturns task input data of a task- Specified by:
getTaskInputContentByTaskIdin interfaceUserTaskService- Returns:
-
getTaskInputContentByTaskId
public Map<String,Object> getTaskInputContentByTaskId(String deploymentId, Long taskId)
Description copied from interface:UserTaskServiceReturns task input data of a task- Specified by:
getTaskInputContentByTaskIdin interfaceUserTaskService- Returns:
-
addComment
public Long addComment(Long taskId, String text, String addedBy, Date addedOn)
Description copied from interface:UserTaskServiceAdd comment to a task- Specified by:
addCommentin interfaceUserTaskService- Returns:
-
addComment
public Long addComment(String deploymentId, Long taskId, String text, String addedBy, Date addedOn)
Description copied from interface:UserTaskServiceAdd comment to a task- Specified by:
addCommentin interfaceUserTaskService- Returns:
-
deleteComment
public void deleteComment(Long taskId, Long commentId)
Description copied from interface:UserTaskServiceDeletes comment from a task- Specified by:
deleteCommentin interfaceUserTaskService
-
deleteComment
public void deleteComment(String deploymentId, Long taskId, Long commentId)
Description copied from interface:UserTaskServiceDeletes comment from a task- Specified by:
deleteCommentin interfaceUserTaskService
-
getCommentsByTaskId
public List<org.kie.api.task.model.Comment> getCommentsByTaskId(Long taskId)
Description copied from interface:UserTaskServiceGet comments for a task- Specified by:
getCommentsByTaskIdin interfaceUserTaskService- Returns:
-
getCommentsByTaskId
public List<org.kie.api.task.model.Comment> getCommentsByTaskId(String deploymentId, Long taskId)
Description copied from interface:UserTaskServiceGet comments for a task- Specified by:
getCommentsByTaskIdin interfaceUserTaskService- Returns:
-
getCommentById
public org.kie.api.task.model.Comment getCommentById(Long taskId, Long commentId)
Description copied from interface:UserTaskServiceGet comment by identifier- Specified by:
getCommentByIdin interfaceUserTaskService- Returns:
-
getCommentById
public org.kie.api.task.model.Comment getCommentById(String deploymentId, Long taskId, Long commentId)
Description copied from interface:UserTaskServiceGet comment by identifier- Specified by:
getCommentByIdin interfaceUserTaskService- Returns:
-
addAttachment
public Long addAttachment(Long taskId, String userId, String name, Object attachment)
Description copied from interface:UserTaskServiceAdd attachment to a task- Specified by:
addAttachmentin interfaceUserTaskService- Returns:
-
addAttachment
public Long addAttachment(String deploymentId, Long taskId, String userId, String name, Object attachment)
Description copied from interface:UserTaskServiceAdd attachment to a task- Specified by:
addAttachmentin interfaceUserTaskService- Returns:
-
deleteAttachment
public void deleteAttachment(Long taskId, Long attachmentId)
Description copied from interface:UserTaskServiceDelete attachment from a task- Specified by:
deleteAttachmentin interfaceUserTaskService
-
deleteAttachment
public void deleteAttachment(String deploymentId, Long taskId, Long attachmentId)
Description copied from interface:UserTaskServiceDelete attachment from a task- Specified by:
deleteAttachmentin interfaceUserTaskService
-
getAttachmentById
public org.kie.api.task.model.Attachment getAttachmentById(Long taskId, Long attachmentId)
Description copied from interface:UserTaskServiceGet attachment by identifier- Specified by:
getAttachmentByIdin interfaceUserTaskService- Returns:
-
getAttachmentById
public org.kie.api.task.model.Attachment getAttachmentById(String deploymentId, Long taskId, Long attachmentId)
Description copied from interface:UserTaskServiceGet attachment by identifier- Specified by:
getAttachmentByIdin interfaceUserTaskService- Returns:
-
getAttachmentContentById
public Object getAttachmentContentById(Long taskId, Long attachmentId)
Description copied from interface:UserTaskServiceGet attachment's content by identifier- Specified by:
getAttachmentContentByIdin interfaceUserTaskService- Returns:
-
getAttachmentContentById
public Object getAttachmentContentById(String deploymentId, Long taskId, Long attachmentId)
Description copied from interface:UserTaskServiceGet attachment's content by identifier- Specified by:
getAttachmentContentByIdin interfaceUserTaskService- Returns:
-
getAttachmentsByTaskId
public List<org.kie.api.task.model.Attachment> getAttachmentsByTaskId(Long taskId)
Description copied from interface:UserTaskServiceGet attachments for a task- Specified by:
getAttachmentsByTaskIdin interfaceUserTaskService- Returns:
-
getAttachmentsByTaskId
public List<org.kie.api.task.model.Attachment> getAttachmentsByTaskId(String deploymentId, Long taskId)
Description copied from interface:UserTaskServiceGet attachments for a task- Specified by:
getAttachmentsByTaskIdin interfaceUserTaskService- Returns:
-
execute
public <T> T execute(String deploymentId, org.kie.api.command.Command<T> command)
Description copied from interface:UserTaskServiceExecutes provided command on the underlying command executor- Specified by:
executein interfaceUserTaskService- Parameters:
deploymentId- identifier of the deployment that engine should be used for executioncommand- actual command for execution- Returns:
- results of command execution
-
execute
public <T> T execute(String deploymentId, org.kie.api.runtime.manager.Context<?> context, org.kie.api.command.Command<T> command)
Description copied from interface:UserTaskServiceExecutes provided command on the underlying command executor- Specified by:
executein interfaceUserTaskService- Parameters:
deploymentId- identifier of the deployment that engine should be used for executioncontext- context implementation to be used for getting runtime enginecommand- actual command for execution- Returns:
- results of command execution
-
getTask
public org.kie.api.task.model.Task getTask(Long taskId)
Description copied from interface:UserTaskServiceReturns task instance- Specified by:
getTaskin interfaceUserTaskService- Returns:
-
getTask
public org.kie.api.task.model.Task getTask(String deploymentId, Long taskId)
Description copied from interface:UserTaskServiceReturns task instance- Specified by:
getTaskin interfaceUserTaskService- Returns:
-
updateTask
public void updateTask(Long taskId, String userId, UserTaskInstanceDesc userTask, Map<String,Object> inputData, Map<String,Object> outputData)
Description copied from interface:UserTaskServiceUpdates user task properties and data inputs and outputs. Allowed properties to be updated are:- name
- description
- priority
- expiration date
- formName
- Specified by:
updateTaskin interfaceUserTaskServiceuserId- user id who is going to perform the updateuserTask- user task with properties to be updatedinputData- map of input variables to be added/replaced on a taskoutputData- map of output variables to be added/replaced on a task
-
updateTask
public void updateTask(String deploymentId, Long taskId, String userId, UserTaskInstanceDesc userTask, Map<String,Object> inputData, Map<String,Object> outputData)
Description copied from interface:UserTaskServiceUpdates user task properties and data inputs and outputs. Allowed properties to be updated are:- name
- description
- priority
- expiration date
- formName
- Specified by:
updateTaskin interfaceUserTaskServiceuserId- user id who is going to perform the updateuserTask- user task with properties to be updatedinputData- map of input variables to be added/replaced on a taskoutputData- map of output variables to be added/replaced on a task
-
process
public <T> T process(T variables, ClassLoader cl)Description copied from interface:VariablesAwareGeneric processing method that might be simply returning same instance of variables if no processing is required.- Specified by:
processin interfaceVariablesAware- Parameters:
variables- object that holds varialble(s)cl- classloader that shall be used to operate on the variables e.g. project class loader- Returns:
-
disposeRuntimeEngine
protected void disposeRuntimeEngine(org.kie.api.runtime.manager.RuntimeManager manager, org.kie.api.runtime.manager.RuntimeEngine engine)
-
-