The JIRA issue for this is marked as closed, but it is STILL a problem.
(
http://jira.jboss.com/jira/browse/JBPM-325)
The priority assigned to the task in the process definition is not propagated to the task
instance.
If we look at the hibernate cfg for task ...
| <?xml version="1.0"?>
|
| <!DOCTYPE hibernate-mapping PUBLIC
| "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
| "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
|
| <hibernate-mapping default-access="field">
|
| <class name="org.jbpm.taskmgmt.def.Task"
| table="JBPM_TASK">
| <cache usage="nonstrict-read-write"/>
| <id name="id" column="ID_"><generator
class="native" /></id>
|
| <!-- GRAPHELEMENT -->
| <property name="name" column="NAME_" />
| <many-to-one name="processDefinition"
| column="PROCESSDEFINITION_"
| foreign-key="FK_TASK_PROCDEF"/>
| <map name="events" cascade="all">
| <cache usage="nonstrict-read-write"/>
| <key column="TASK_" foreign-key="FK_EVENT_TASK" />
| <index column="EVENTTYPE_" type="string"/>
| <one-to-many class="org.jbpm.graph.def.Event" />
| </map>
| <list name="exceptionHandlers" cascade="all">
| <cache usage="nonstrict-read-write"/>
| <key column="TASK_" foreign-key="none" />
| <list-index column="GRAPHELEMENTINDEX_" />
| <one-to-many class="org.jbpm.graph.def.ExceptionHandler" />
| </list>
| <!-- ============ -->
|
| <property name="description" type="string_max"
column="DESCRIPTION_" length="4000"/>
| <property name="isBlocking" column="ISBLOCKING_" />
| <property name="isSignalling" column="ISSIGNALLING_" />
| <property name="dueDate" column="DUEDATE_" />
| <property name="actorIdExpression"
column="ACTORIDEXPRESSION_" />
| <property name="pooledActorsExpression"
column="POOLEDACTORSEXPRESSION_" />
|
| <many-to-one name="taskMgmtDefinition"
| column="TASKMGMTDEFINITION_"
| foreign-key="FK_TASK_TASKMGTDEF"/>
| <many-to-one name="taskNode"
| column="TASKNODE_"
| foreign-key="FK_TASK_TASKNODE"/>
| <many-to-one name="startState"
| column="STARTSTATE_"
| foreign-key="FK_TASK_STARTST"/>
| <many-to-one name="assignmentDelegation"
| column="ASSIGNMENTDELEGATION_"
| foreign-key="FK_TASK_ASSDEL"
| cascade="all" />
| <many-to-one name="swimlane"
| column="SWIMLANE_"
| foreign-key="FK_TASK_SWIMLANE"/>
| <many-to-one name="taskController"
| column="TASKCONTROLLER_"
| foreign-key="FK_TSK_TSKCTRL"
| cascade="all" />
|
| </class>
|
| </hibernate-mapping>
|
... there is no property for PRIORITY. When a task instance is spawned from the task, it
always gets the default priority of "3".
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962249#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...