How expiration date works with jBPM User Tasks?
Issue
-
How does task expiration date work with
User TasksinjBPM6in the following scenarios?- When an expiration date is set to a task and the task is claimed by a user. How the claim on that task is revoked? Is it going to be revoked when:
(a) the application is restarted
(b) automaticallly revoked when the task is expired when the expiration time is up
(c) the application has to check the expiration time in the code and revoke the task explicitly in the code if it is expired
Which item above is the case? - Is the expiration date stateful? Or is it persisted to
jBPMtable at runtime? If the application is restarted, will the expiration date get lost and have to be reset?
- When an expiration date is set to a task and the task is claimed by a user. How the claim on that task is revoked? Is it going to be revoked when:
-
In the
BPMN2 diagram editorthere is no expiration element visible in the property list ofUser Tasks. Users sometimes prefer to use theInternalTaskService.setExpirationDate(...)API to set expiration time of a task (in casejBPMengine is embedded inside a custom application).
TaskService taskService = runtimeEngine.getTaskService();
...
InternalTaskService internalTaskService = (InternalTaskService) taskService;
...
internalTaskService.setExpirationDate(taskId, date);
...
- What is going to happen in such a use case when the task is expired according to the expiration date set in above code in the case that task was claimed by a user?
- If nothing happens (i.e. the user still owns that task after the task has expired), then what expiration stands for in this scenario?
- Assuming if a task is expired, it just means that the task is ready to be owned/claimed by a different user. If this is true, then why the ownership of the previous owner is not automatically revoked when the task is expired?
Environment
- Red Hat JBoss BPM Suite (BPMS)
- 6.2.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
