<!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;">
    How to Start a Fire-and-Forget Process by another Process?
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/brucecui">Bruce Cui</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/612102#612102">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>For the recent days I have been fighting with the 5.1 release for a solution of backend batch processes. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>For multi-threading, I take an alternative that put the logic in a Thread instance, and start it in the work item handler. Further more, for time consuming tasks, even it's in main signle process, since I found the console was actually running all processes in one main thread, I put the logic in a Thread instance too, and put a signal event after the task. When the thread finishes, it sends back a signal to the process instance and the process will continue. This can make the main thread less occupied, so that other processes can have time to run. These are all alternatives since the framework itself cannot satisfy my expectation by default.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Now I'm thinking how to start one process by another in a fire-and-forget manner. I did some test. By default, even I set the sub-process's "wait for completion" to "false", the parent process would still wait for sub's completion. The exception seems to be that when the sub met some event node, say a timer, even with "delay" set to 0ms, the parent could take the running back.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>So I'm thinking to put a timer at the beginning of the sub, right after the start node, which would be another alternative.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Could you kindly advise, whether there are any more appropriate means to fulfill the expected functionalities?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>BTW, I see there is a "Timers" property in some task nodes. But there seems no corresponding content in the user guide. Could you advise on it's function as well?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Bruce</p></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/612102#612102">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>