<!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;">
    How to deploy ScriptTask.bpmn from jbpm-examples
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/doboss">doboss</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/779738#779738">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>So I used to be quite fluent in JBPM 3 back in the day, but havn't touched any JBPM in about 2-3 years. Now I am looking to use JBPM in some of our upcoming application development.&#160; I have been playing with JBPM 5.3 and now 5.4 for a few months now on and off as time allows. But I am having a hard time figuring out how things work together. I have downloaded and installed JBPM 5.4 via the full installer and played around with the evaluation example, the jbpm-console, and the guvnor. I have already read the entire JBPM user guide (although I admit, not in a single sitting.) I've also watched a lot of the videos and read some of the various blogs and forums... anyway, enough background...</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>So I've opened up the jbpm-examples and I look at the very nice ScriptTask.bpmn and it's associated org.jbpm.examples.quickstarts HelloService.java and Person.java classes.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I have Eclipse integrated with the Guvnor, and can upload the bpmn and even the .java file and have tried putting them in various packages. I have even created a simple jar (using Eclipse to export the .class files into a jar) and uploaded that into a few places in guvnor. Finally I've settled on providing a "quickstart.jar" (With the two .class files in it)&#160; in the defaultPackage along side the ScriptTask.bpmn and the ScriptTask-image.png.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>When I try to build the package from the Guvnor I get errors like "Could not find variable 'HelloService' for action 'HelloService.getInstance().sayHello(person.getName());'" I think I have gotten past the ClassNotFound errors I was getting in the beginning.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Also, when I look at the ScriptTask process asset it shows as invalid, but if I open it with the editor and click the validate button, it says the process is valid.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Okay, so here's my questions:</p><p> 1) Is there a way I can get this process and it's .java files up in the Guvnor and built?</p><p>2) Will I then be able to run them from the jbpm-console or some other mechanism?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>If I can figure out these two things I can continue experimenting... my goal is to get a simple process inside JBoss that I can start. Eventually I would be starting the business processes from somewhere inside my web application... am I going down the right path?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks for the help!</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/779738#779738">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>