<!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;">
Reading User Form Variables
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/bhaskarven">Bhaskaran Venkataraman</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/738639#738639">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>I have a question regarding the User Forn variables. I was under the impression that freemarker template (ftl)</p><p>files have to be created for user forms. But I was able to run the HelloProcess example discussed in this forum.</p><p>I believe the XML code creates the user interface form.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>1. I tried to read my own ftl file by changing the TaskName property in the XML. I have the Hello.ftl deployed</p><p>    in the resources directory of the project as I have seen it in an example. But it does not display my form.</p><p>    It is still reading the hardcoded contents in the XML</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><table><tbody><tr><td style=";">  </td><td style=";"><dataInputAssociation></td></tr><tr><td style=";">    </td><td style=";"><targetRef>_4_TaskNameInput</targetRef></td></tr><tr><td style=";">    </td><td style=";"><assignment></td></tr><tr><td style=";">      </td><td style=";"><from xsi:type="tFormalExpression">Hello</from></td></tr><tr><td style=";">      </td><td style=";"><to xsi:type="tFormalExpression">_4_TaskNameInput</to></td></tr><tr><td style=";">    </td><td style=";"></assignment></td></tr><tr><td style=";">  </td><td style=";"></dataInputAssociation></td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>2. I see a complete button to submit the form. But that is not harcoded anywhere in the XML. Where does it come</p><p>    from ? The XML file of the BPMN diagram is attached for your reference.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I would like to read my own ftl files rather than hardcoding the contents in the XML. In the Developers Guide I saw</p><p>an example where the ftl file is included in the XML with the following construct. But I do not have any examples</p><p>on that usage of how input/output is done through the form.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><a class="jive-link-anchor-small">    <userTask id="requestVacation" name="Request Vacation"<br/>      implementation="other"><br/>     <potentialOwner resourceRef="user" jbpm:type="group"><br/>        <resourceAssignmentExpression><br/>          <formalExpression>user</formalExpression><br/>        </resourceAssignmentExpression><br/>      </potentialOwner><br/>      <rendering id="requestForm"><br/>        <jbpm:form>org/jbpm/examples/bpmn/usertask/taskform/request_vacation.ftl</jbpm:form><br/>      </rendering><br/>    </userTask></a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Your response will be highly appreciated.</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/738639#738639">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>