0 Replies Latest reply on May 2, 2011 2:33 PM by Nagarajan Kanna

    jbpm 4.x - Extending Tasks & task-node

    Nagarajan Kanna Newbie

      Hi All,

       

      We had option to extend/customize task instance in 3.x to add our own attributes - Something like:

       

      <?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 auto-import="false" default-access="field">

          <subclass namename="com.navteq.jbpm.extensions.AssignableTaskInstance"
                extends="org.jbpm.taskmgmt.exe.TaskInstance"
                discriminator-value="A">
           <list name="assignees" cascade="all" >
             <key column="TASKINSTANCE_" />
             <index column="TASKINSTANCEINDEX_"/>
             <one-to-many class="com.navteq.jbpm.extensions.Assignee" />
           </list>

          </subclass>
      </hibernate-mapping>


       

      Reference:   http://www.infoq.com/articles/jBPM-user-interaction-patterns  

       

       

      We also had option to control automatic task creation in task-node using create-tasks="false"

       

       

      We care currently using JBPM 4.3

       

       

      • Do we have equivalent for these functionality in 4.x ?
      • If not, is there any work around to achieve this
      • Am trying to add few additional attributes to JBPM4_TASK. Is there any post-task creation event handler that I can use to update information to this table ?