[
https://jira.jboss.org/jira/browse/JBPM-2309?page=com.atlassian.jira.plug...
]
steven wang commented on JBPM-2309:
-----------------------------------
Currently, to access the process definition, The Task object must be casted to TaskImpl
Object.
Some code samples from jbpm-console-form-plugin-4.0.CR1-sources.jar
TaskService taskService = processEngine.getTaskService();
Task task = taskService.getTask(taskId);
// access the processdefition
TaskImpl cast = ((TaskImpl) task);
ExecutionImpl processInstance = cast.getProcessInstance();
String processInstanceId = processInstance.getId();
String processId = processInstance.getProcessDefinition().getId();
Add method to support getTaskDefinition and getProcessInstance from
interface Task
----------------------------------------------------------------------------------
Key: JBPM-2309
URL:
https://jira.jboss.org/jira/browse/JBPM-2309
Project: JBoss jBPM
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 4.0.CR1
Reporter: steven wang
To support task management capabilities in console, The operations supported by Task
interface is not enough. It would be better to add method to support getTaskDefinition and
getProcessInstance from interface Task.
For reference, see
https://jira.jboss.org/jira/browse/JBPM-286, jBPM 3.1 supports such
methods.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira