To retrive the description of a task-node or a taskInstance you first need to set it.
So you can set it via API with the setDescription method or you can set it in the processdefinition.xml:
| <task-node name="task-node1">
| <description>
| Task-NODE description!!!!!!!!!!
|
| </description>
| <task name="taskInstanceName">
| <description>
| Task INSTANCE DESCRIPTION!!!!!!!!!!
|
| </description>
| </task>
| </task-node>
|
Look for the tags called description and notice the diference!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188558#4188558
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188558
"adrian(a)jboss.org" wrote :
| The way I see it, is that there are three changes required.
|
| 1) The ability to map a vfs url to a real (top level) url
|
All we need to support in the absence of a custom policy that can deal with vfs* urls are top level urls. Permissions on nested elements is overkill when dealing with urls.
"adrian(a)jboss.org" wrote :
| 2) Implementation of a VFSPermission that also implies the real url permission
| (e.g. FilePermission for vfsfile:)
|
This a function of the underlying URLConnection, so another reason not to leverage the java.net.url layer long term. In the interim it looks necessary.
I agree on 3) as well.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188556#4188556
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188556
With TaskMgmtSession I can obtain the Task-ID and the Task-Name but the Description is always NULL :-(
I tried these lines, but it doesn't work.
JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
TaskMgmtSession tms = new TaskMgmtSession(jbpmContext.getSession());
tms.getTaskInstance(task.getId()).getDescription();
tms.getTaskInstance(task.getId()).getTask().getDescription() );
Does anyone have other/more proposals how to obtain the content of the description-tag of a task??
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188546#4188546
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188546