<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    jbpm 4.x - Extending Tasks & task-node
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/connectwithnk">Nagarajan Kanna</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/603073#603073">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi All,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>We had option to extend/customize task instance in 3.x to add our own attributes - Something like:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="color: #008000;">&lt;?xml <span style="color: #800080;">version</span>="<span style="color: #0000ff;">1.0</span>"?&gt;<br/> &lt;!DOCTYPE hibernate-mapping PUBLIC<br/>&#160;&#160;&#160;&#160; "-//Hibernate/Hibernate Mapping DTD 3.0//EN" <br/><span>&#160;&#160;&#160;&#160; "</span><a class="jive-link-external-small" href="http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" target="_blank">http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd</a><span>"&gt;</span><br/><br/>&#160; &lt;hibernate-mapping <span style="color: #800080;">auto-import</span>="<span style="color: #0000ff;">false</span>" <span style="color: #800080;">default-access</span>="<span style="color: #0000ff;">field</span>"&gt;<br/><br/><span style="font-size: 12pt;">&#160;&#160;&#160; &lt;<strong>subclass <span style="color: #800080;">name</span>name="<span style="color: #0000ff;">com.navteq.jbpm.extensions.AssignableTaskInstance</span>" </strong></span><br/><span style="font-size: 12pt;"><strong>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: #800080;">extends</span>="<span style="color: #0000ff;">org.jbpm.taskmgmt.exe.TaskInstance</span>"</strong></span><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: #800080;">discriminator-value</span>="A"&gt;<br/>&#160;&#160;&#160;&#160; &lt;list <span style="color: #800080;">name</span>="<span style="color: #0000ff;">assignees</span>" <span style="color: #800080;">cascade</span>="<span style="color: #0000ff;">all</span>" &gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160; &lt;key <span style="color: #800080;">column</span>="<span style="color: #0000ff;">TASKINSTANCE_</span>" /&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160; &lt;index <span style="color: #800080;">column</span>="<span style="color: #0000ff;">TASKINSTANCEINDEX_</span>"/&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160; &lt;one-to-many <span style="color: #800080;">class</span>="<span style="color: #0000ff;">com.navteq.jbpm.extensions.Assignee</span>" /&gt;<br/>&#160;&#160;&#160;&#160; &lt;/list&gt;<br/><br/>&#160;&#160;&#160; &lt;/subclass&gt;<br/> &lt;/hibernate-mapping&gt;</span></p><p><span style="color: #008000;"><br/></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Reference: <a class="jive-link-external-small" href="http://www.infoq.com/articles/jBPM-user-interaction-patterns">&#160; http://www.infoq.com/articles/jBPM-user-interaction-patterns</a>&#160;&#160; </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>We also had option to control automatic task creation in task-node using <strong>create-tasks="false"</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>We care currently using JBPM 4.3</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><ul><li>Do we have equivalent for these functionality in 4.x ? </li><li>If not, is there any work around to achieve this</li><li>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 ?</li></ul></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/603073#603073">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>