<!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="https://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 5.4.0-Final: Human Task variables mapping persistence problem.
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/maq99">maq99</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/793685#793685">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hallo,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>I have try to get help in simmilar topic </span><a class="jive-link-external-small" href="https://community.jboss.org/thread/218281?start=15&amp;tstart=0" rel="nofollow" target="_blank">https://community.jboss.org/thread/218281?start=15&amp;tstart=0</a><span> but withou success. So I decide to create new one. </span></p><p>My problem is that I cannot get access to process variable set as a result in HumanTask1 from HumanTask2</p><p>This is my diagram:</p><p><a href="https://community.jboss.org/servlet/JiveServlet/showImage/2-792774-20169/Diagram.gif"><span> https://community.jboss.org/servlet/JiveServlet/downloadImage/2-792774-20169/Diagram.gif </span></a></p><p>Short flow description: </p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">After process is started user:user1 pick object:wrapper (from external Wsdl) to edit, chenge its fields and confirm changes or reject it.</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">Eddited object is about to be placed as HT result and stored as process variables.</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">First gateway check if object have been placed (not null - go to commit) or changes have been rejected (is null - cancel &amp; end process)</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">At begininig next HT (approval) log script is called, then it calls my custom <code style="color: #333333; font-family: 'Droid Sans Mono', monospace !important;">EscalatedDeadlineHandler</code> and send email to user:approver (HT2 task owner).</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">Approval base on object:wrapper from previous HT. Approval page display edited object:wrapper and shows changes made by user:user1</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">As a result Boolean value isApproved has to be added to proces variables. Next gateway check isApproved = true then go to submit changes (send back to store edited object - external Wsdl) - else goes to end.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Process is started correctly but I cannot see variables added at HT1 in database.</p><p>I also have problem with load/ reload disposed session.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I have seen and try: </p><p><a class="jive-link-external-small" href="http://stackoverflow.com/questions/7120600/completing-a-task-fails-after-calling-statefulsession-dispose" rel="nofollow" style="background-color: #ffffff; font-size: 12px; color: #355491; text-decoration: initial; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;" target="_blank">http://stackoverflow.com/questions/7120600/completing-a-task-fails-after-calling-statefulsession-dispose</a></p><p><a class="jive-link-thread-small" href="https://community.jboss.org/thread/201901" rel="nofollow" target="_blank">https://community.jboss.org/thread/201901</a></p><p><a class="jive-link-thread-small" href="https://community.jboss.org/thread/171181" rel="nofollow" target="_blank">https://community.jboss.org/thread/171181</a></p><p><a class="jive-link-message-small" href="https://community.jboss.org/message/745526#745526" rel="nofollow" target="_blank">https://community.jboss.org/message/745526</a></p><p><a class="jive-link-external-small" href="https://github.com/droolsjbpm/jbpm/blob/master/jbpm-persistence-jpa/src/test/java/org/jbpm/persistence/session/VariablePersistenceStrategyTest.java" rel="nofollow" style="background-color: #ffffff; font-size: 12px; color: #4262a1; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;" target="_blank">https://github.com/droolsjbpm/jbpm/blob/master/jbpm-persistence-jpa/src/test/java/org/jbpm/persistence/session/VariablePersistenceStrategyTest.java</a> </p><p>(try both strategies - i prefer to store serializable object but tested <span style="color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;">entity object to - object have been persisted - but i have not found reference to it in db process data)</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Below test project sources can be found. Project base on Seam2.2 - required libs list (not attached) can be found in <span style="color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;">deployed-jars-ear.list &amp; deployed-jars-war.list files</span></p><p><span style="color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;">I have changed data source name at persistence. Project use Jboss7.1.3 with deployed jbpm-human-task-war-5.4.0.Final-EE6.war (also with changed DS name)</span><span style="color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><br/></span></p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/793685#793685">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://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>