<!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 process remote event signaling with data problem
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/marmotadev">marmotadev</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/725011#725011">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hello,</p><div><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I've spent some time trying to figure out how to communicate with remote processes, however I need an advice from more experienced devs, how to fulfill following requirements with jBPM 5:</p><p>There is OSGI container, let's call it A.</p><p>There is JBoss EE container (different JVM, possibly different machine). It contains setup identical to jbpm demo setup. Lets call it B. </p><p>In short: I want to be able to manage processes automatically by A (start, stop, signal), while jbpm engine resided either on A or B. </p><p>- I want to have functionality as in jbpm demo setup (that is - all UI consoles working ant integrated with Guvnor repository).</p><p>- I want to be able to see process definitions in jbpm in Guvnor repository console. (it is possible in default setup).</p><p>- I want to be able to see processes in jbpm console started in gwt console. (it is possible in default setup).</p><p>- I want to be able to see process instances in gwt console initiated (started) by some remote JVM's <strong>with some data as initial context</strong> (OSGI environment specifically). (Not&#160; possible with REST services - no way to specify initial data)</p><p>- I want to be able to <strong>signal processes WITH DATA</strong> from remote JVM's. Initiating party must be in OSGI container (Karaf) but outside of JBoss container (I cannot overcome this contraint, non-technical one). (Not&#160; possible with REST services - no way to specify signal data)</p><p>I do not care where actually is jbpm console, jbpm task service, drools and jbpm engines are really deployed, but I prefer to stay in JBoss because it's probably most tested deployment.</p><p>What are my options to acomplish this? I can think of:</p><p>a) extend gwt-console-server with additional REST services which can start/signal processes with data and continue using REST services.</p><p>b) Try to deploy jbpm console client and server on Karaf, hope to be able to attach to the same KnowledgeBase sessions as used by jbpm console (by OSGI wiring) - and manage them from there.</p><p>c) Maybe there's a way to make signals by loading statefull session and performing signals (but I guess I would simple restore process state and it would continue to run on invocation side with process running in parralel on original container)?</p><p>d) Maybe there's a way to force jbpm to publish process management (engine or session) to JNDI, and access sessions it from remote?</p><p>e) ....?</p><p>What are my options? What is the easiest option?</p></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/725011#725011">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>