|
jBPM distribution 6.2.0.CR1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbpm.kie.services.impl.UserTaskServiceImpl
public class UserTaskServiceImpl
Constructor Summary | |
---|---|
UserTaskServiceImpl()
|
Method Summary | ||
---|---|---|
void |
activate(Long taskId,
String userId)
Activate the task, i.e. set the task to status Ready. |
|
Long |
addAttachment(Long taskId,
String userId,
Object attachment)
Add attachment to a task |
|
Long |
addComment(Long taskId,
String text,
String addedBy,
Date addedOn)
Add comment to a task |
|
void |
claim(Long taskId,
String userId)
Claim responsibility for a task, i.e. set the task to status Reserved |
|
void |
complete(Long taskId,
String userId,
Map<String,Object> params)
Complete a task with the given data |
|
void |
delegate(Long taskId,
String userId,
String targetUserId)
Delegate a task from userId to targetUserId |
|
void |
deleteAttachment(Long taskId,
Long attachmentId)
Delete attachment from a task |
|
void |
deleteComment(Long taskId,
Long commentId)
Deletes comment from a task |
|
void |
deleteContent(Long taskId,
Long contentId)
Deletes content given by contentId from given task |
|
protected void |
disposeRuntimeEngine(RuntimeManager manager,
RuntimeEngine engine)
|
|
|
execute(String deploymentId,
Command<T> command)
Executes provided command on the underlying command executor |
|
|
execute(String deploymentId,
Context<?> context,
Command<T> command)
Executes provided command on the underlying command executor |
|
void |
exit(Long taskId,
String userId)
Requesting application is no longer interested in the task output |
|
void |
fail(Long taskId,
String userId,
Map<String,Object> faultData)
Actual owner completes the execution of the task raising a fault. |
|
void |
forward(Long taskId,
String userId,
String targetEntityId)
Forward the task to another organization entity. |
|
Attachment |
getAttachmentById(Long taskId,
Long attachmentId)
Get attachment by identifier |
|
Object |
getAttachmentContentById(Long taskId,
Long attachmentId)
Get attachment's content by identifier |
|
List<Attachment> |
getAttachmentsByTaskId(Long taskId)
Get attachments for a task |
|
Comment |
getCommentById(Long taskId,
Long commentId)
Get comment by identifier |
|
List<Comment> |
getCommentsByTaskId(Long taskId)
Get comments for a task |
|
protected RuntimeManager |
getRuntimeManager(String deploymentId,
Command<?> command)
|
|
protected RuntimeManager |
getRuntimeManager(UserTaskInstanceDesc task)
|
|
Task |
getTask(Long taskId)
Returns task instance |
|
Map<String,Object> |
getTaskInputContentByTaskId(Long taskId)
Returns task input data of a task |
|
Map<String,Object> |
getTaskOutputContentByTaskId(Long taskId)
Returns task output data currently stored, might be null of no data is stored |
|
void |
nominate(Long taskId,
String userId,
List<OrganizationalEntity> potentialOwners)
Nominate a task to be handled by potentialOwners |
|
|
process(T variables,
ClassLoader cl)
Generic processing method that might be simply returning same instance of variables if no processing is required. |
|
void |
release(Long taskId,
String userId)
Release a previously claimed task |
|
void |
resume(Long taskId,
String userId)
Resume a previously suspended task |
|
Long |
saveContent(Long taskId,
Map<String,Object> values)
Saves gives values as content of a task, applies to task output as input cannot be altered |
|
void |
setDataService(RuntimeDataService dataService)
|
|
void |
setDeploymentService(DeploymentService deploymentService)
|
|
void |
setDescription(Long taskId,
String description)
Sets description of the task |
|
void |
setExpirationDate(Long taskId,
Date date)
Sets expiration date of a task to given value |
|
void |
setName(Long taskId,
String name)
Sets name of the task |
|
void |
setNonProcessScopedTaskService(org.kie.internal.task.api.InternalTaskService nonProcessScopedTaskService)
|
|
void |
setPriority(Long taskId,
int priority)
Sets priority of a task to given value |
|
void |
setSkipable(Long taskId,
boolean skipable)
Sets skipable property of a task to given value |
|
void |
skip(Long taskId,
String userId)
Skip a claimed task |
|
void |
start(Long taskId,
String userId)
Start the execution of the task, i.e. set the task to status InProgress. |
|
void |
stop(Long taskId,
String userId)
Cancel/stop the processing of the task. |
|
void |
suspend(Long taskId,
String userId)
Suspend a claimed task. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserTaskServiceImpl()
Method Detail |
---|
public void setDeploymentService(DeploymentService deploymentService)
public void setDataService(RuntimeDataService dataService)
public void setNonProcessScopedTaskService(org.kie.internal.task.api.InternalTaskService nonProcessScopedTaskService)
protected RuntimeManager getRuntimeManager(UserTaskInstanceDesc task)
protected RuntimeManager getRuntimeManager(String deploymentId, Command<?> command)
public void activate(Long taskId, String userId)
UserTaskService
activate
in interface UserTaskService
public void claim(Long taskId, String userId)
UserTaskService
claim
in interface UserTaskService
public void complete(Long taskId, String userId, Map<String,Object> params)
UserTaskService
complete
in interface UserTaskService
public void delegate(Long taskId, String userId, String targetUserId)
UserTaskService
delegate
in interface UserTaskService
public void exit(Long taskId, String userId)
UserTaskService
exit
in interface UserTaskService
public void fail(Long taskId, String userId, Map<String,Object> faultData)
UserTaskService
fail
in interface UserTaskService
public void forward(Long taskId, String userId, String targetEntityId)
UserTaskService
forward
in interface UserTaskService
public void release(Long taskId, String userId)
UserTaskService
release
in interface UserTaskService
public void resume(Long taskId, String userId)
UserTaskService
resume
in interface UserTaskService
public void skip(Long taskId, String userId)
UserTaskService
skip
in interface UserTaskService
public void start(Long taskId, String userId)
UserTaskService
start
in interface UserTaskService
public void stop(Long taskId, String userId)
UserTaskService
stop
in interface UserTaskService
public void suspend(Long taskId, String userId)
UserTaskService
suspend
in interface UserTaskService
public void nominate(Long taskId, String userId, List<OrganizationalEntity> potentialOwners)
UserTaskService
nominate
in interface UserTaskService
public void setPriority(Long taskId, int priority)
UserTaskService
setPriority
in interface UserTaskService
public void setExpirationDate(Long taskId, Date date)
UserTaskService
setExpirationDate
in interface UserTaskService
public void setSkipable(Long taskId, boolean skipable)
UserTaskService
setSkipable
in interface UserTaskService
public void setName(Long taskId, String name)
UserTaskService
setName
in interface UserTaskService
public void setDescription(Long taskId, String description)
UserTaskService
setDescription
in interface UserTaskService
public Long saveContent(Long taskId, Map<String,Object> values)
UserTaskService
saveContent
in interface UserTaskService
public void deleteContent(Long taskId, Long contentId)
UserTaskService
contentId
from given task
deleteContent
in interface UserTaskService
public Map<String,Object> getTaskOutputContentByTaskId(Long taskId)
UserTaskService
getTaskOutputContentByTaskId
in interface UserTaskService
public Map<String,Object> getTaskInputContentByTaskId(Long taskId)
UserTaskService
getTaskInputContentByTaskId
in interface UserTaskService
public Long addComment(Long taskId, String text, String addedBy, Date addedOn)
UserTaskService
addComment
in interface UserTaskService
public void deleteComment(Long taskId, Long commentId)
UserTaskService
deleteComment
in interface UserTaskService
public List<Comment> getCommentsByTaskId(Long taskId)
UserTaskService
getCommentsByTaskId
in interface UserTaskService
public Comment getCommentById(Long taskId, Long commentId)
UserTaskService
getCommentById
in interface UserTaskService
public Long addAttachment(Long taskId, String userId, Object attachment)
UserTaskService
addAttachment
in interface UserTaskService
public void deleteAttachment(Long taskId, Long attachmentId)
UserTaskService
deleteAttachment
in interface UserTaskService
public Attachment getAttachmentById(Long taskId, Long attachmentId)
UserTaskService
getAttachmentById
in interface UserTaskService
public Object getAttachmentContentById(Long taskId, Long attachmentId)
UserTaskService
getAttachmentContentById
in interface UserTaskService
public List<Attachment> getAttachmentsByTaskId(Long taskId)
UserTaskService
getAttachmentsByTaskId
in interface UserTaskService
public <T> T execute(String deploymentId, Command<T> command)
UserTaskService
execute
in interface UserTaskService
deploymentId
- identifier of the deployment that engine should be used for executioncommand
- actual command for execution
public <T> T execute(String deploymentId, Context<?> context, Command<T> command)
UserTaskService
execute
in interface UserTaskService
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
public Task getTask(Long taskId)
UserTaskService
getTask
in interface UserTaskService
public <T> T process(T variables, ClassLoader cl)
VariablesAware
process
in interface VariablesAware
variables
- object that holds varialble(s)cl
- classloader that shall be used to operate on the variables e.g. project class loader
protected void disposeRuntimeEngine(RuntimeManager manager, RuntimeEngine engine)
|
jBPM distribution 6.2.0.CR1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |