<!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;">
    Re: Human task as service in jbpm5.2
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/jemmerling">jemmerling</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/647036#647036">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Well, I decided to take a closer look at this WAR module. As previously stated, I had inferred its functionality from its name. On close inspection, I can't say that my previous inference was necessarily correct.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>First, I have confirmed that, for the demo set-up, the Demo Task Server acts as the Human Task Service for both the Eclipse Tooling and the GWT Console demo.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>However, given the name of this server, it is strongly implied that its use should be restricted to a limited situation such as the demo. So what is not clear is, what does jBoss recommend as an "enterprise class" implementation of the human task service?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>So (as I said) I took a closer look at the WAR, what I see is there is one Servlet class that rejects GET and POST requests, when it initializes it executes more or less the same logic as the Demo Task Server. To wit, it kicks off a MinaTaskServer as a separate thread running in the same JVM as the servlet. So there are really just 2 differences I can discern between this and the demo server:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>1.) It executes within a JEE container.</p><p>2.) It uses a JEE data source rather than a JDBC connection.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Of course I would consider point 2.) above as an absolute minimum requirement for an enterprise solution.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>However, what I would think of as the "elephant in the living room" is that I don't think this is what the OP had in mind. My suspicion is that the OP was looking for an implementation of WS-HumanTask exposed via JAX-WS over SOAP (or similar words to that effect). I can find no evidence that anything like this is included in the jBPM 5.2 distribution.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Of course, some of us have been led to believe that it is something of a sin to create one's own threads within any JEE container. Perhaps that is less of a problem in jBoss than other platforms. A question (I honestly don't know the answer off the top of my head): Suppose I deploy this WAR to jBoss, then using jBoss' management console, I should be able to stop and restart the associated webapp. In that case, will the separate thread that was kicked off when the servlet starts up also terminate, or will it live on? If the foregoing is not a problem in jBoss, is it possibly still a problem with some other AS?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The other issue has to do with MINA and HornetQ. I had not been exposed to these technologies before evaluating jBPM. So the WS-HumanTask specification seems describe a command pattern, and it doesn't seem strictly necessary to expose this over SOAP or REST. So when using either the MINA or HornetQ implementation of the Human Task Service, I suppose it is reasonable to expect the developer not to care about protocol, you simply plug it in and it "just works" (unless it doesn't). Is that the case?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thank you for your forebearance,</p><p>--</p><p>JE</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><div class="mcePaste" id="_mcePaste" style="position: absolute; top: 150px; left: 0px;"></div></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/647036#647036">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>