<!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 newbie question: Script not executing
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/new_berlin">Ellie Arro</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/732792#732792">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><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I am trying to create a basic Hello example using only Designer/Guvnor. The example process is: Start-->Script Task-->End. I set the script property to System.out.println("Hello jBPM");</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>The package gets validated and built without errors. I can see the process listed in the jBPM console. However, the instance is not getting loaded successfully.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>The jBPM console shows: <strong><span>[DEBUG] GET: </span><a class="jive-link-external-small" href="http://localhost:8080/gwt-console-server/rs/process/definition/Hello/instances" target="_blank">http://localhost:8080/gwt-console-server/rs/process/definition/Hello/instances</a></strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>The View source shows the following (I bolded the line below):</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><table><tbody><tr><td style=";"> </td><td style=";"><p><bpmn2:process id="Hello" drools:<span style="color: red;">package</span>Name="defaultPackage" name="Hello" isExecutable="true"> </p></td></tr><tr><td style=";"><span style="color: green;">|</span></td><td style=";">    <bpmn2:startEvent id="_76485EF6-5D06-450C-93A7-4837D93947BE" drools:bgcolor="#ffffff" name=""> </td></tr><tr><td style=";"><span style="color: green;">|</span></td><td style=";">      <bpmn2:outgoing>_F9673937-BB10-495D-9E7F-69C152957175</bpmn2:outgoing> </td></tr><tr><td style=";"><span style="color: green;">|</span></td><td style=";">    </bpmn2:startEvent> </td></tr><tr><td style=";"><span style="color: green;">|</span></td><td style=";">    <bpmn2:<span style="color: red;">end</span>Event id="_B056BC69-D311-480D-8635-F64B44862F95" drools:bgcolor="#ffffff" name=""> </td></tr><tr><td style=";"><span style="color: green;">|</span></td><td style=";">      <bpmn2:incoming>_E7A54FE0-64F3-41FD-90FA-DC646A08CF81</bpmn2:incoming> </td></tr><tr><td style=";"><span style="color: green;">|</span></td><td style=";">      <bpmn2:terminateEventDef<span style="color: red;">init</span>ion id="_l3vnsZDREeGwFaj059Om2g"/> </td></tr><tr><td style=";"><span style="color: green;">|</span></td><td style=";">    </bpmn2:<span style="color: red;">end</span>Event> </td></tr><tr><td style=";"><span style="color: green;">|</span></td><td style=";"> <bpmn2:sequenceFlow id="_F9673937-BB10-495D-9E7F-69C152957175" sourceRef="_76485EF6-5D06-450C-93A7-4837D93947BE" targetRef="_3A86C30C-08C0-456D-B638-231E715615B2"/> </td></tr><tr><td style=";"><span style="color: green;">|</span></td><td style=";"> <bpmn2:sequenceFlow id="_E7A54FE0-64F3-41FD-90FA-DC646A08CF81" sourceRef="_3A86C30C-08C0-456D-B638-231E715615B2" targetRef="_B056BC69-D311-480D-8635-F64B44862F95"/> </td></tr><tr><td style=";"><span style="color: green;">|</span></td><td style=";">    <bpmn2:scriptTask id="_3A86C30C-08C0-456D-B638-231E715615B2" drools:bgcolor="#b1c2d6" name="MyTask" scriptFormat=""> </td></tr><tr><td style=";"><span style="color: green;">|</span></td><td style=";">      <bpmn2:incoming>_F9673937-BB10-495D-9E7F-69C152957175</bpmn2:incoming> </td></tr><tr><td style=";"><span style="color: green;">|</span></td><td style=";">      <bpmn2:outgoing>_E7A54FE0-64F3-41FD-90FA-DC646A08CF81</bpmn2:outgoing> </td></tr><tr><td style=";"><span style="color: green;">|</span></td><td style=";">      <strong><bpmn2:script>System.out.println(&quot;Hello jBPM&quot;);</bpmn2:script> </strong></td></tr><tr><td style=";"><span style="color: green;">|</span></td><td style=";">    </bpmn2:scriptTask> </td></tr><tr><td style=";"><span style="color: green;">|</span></td><td style=";">  </bpmn2:process> </td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>What am I doing wrong? </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thanks for the help in advance.</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/732792#732792">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>