That&#39;s weird,<div>I&#39;m looking at the master repository and that&#39;s exactly what the newStartProcess do:</div><div><br></div><div><div>public Command newStartProcess(String processId,</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>Map&lt;String, Object&gt; parameters) {</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>StartProcessCommand startProcess = new StartProcessCommand();</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>startProcess.setProcessId(processId);</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>startProcess.setParameters((HashMap&lt;String, Object&gt;) parameters);</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>return startProcess;</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div><br></div><div>Let me check out the 5.2 M1 tag</div><br><div class="gmail_quote">2011/3/16 Seaver, Daniel (GE Healthcare) <span dir="ltr">&lt;<a href="mailto:dan.seaver@ge.com">dan.seaver@ge.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">There appears to be a problem with CommandFactory.newStartProcess in Drools 5.2 M1. If I do this:</p>
<p class="MsoNormal"> </p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">            String someString = &quot;Some String&quot;;</span></p><p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">            Map&lt;String, Object&gt; variables = <b>new</b> HashMap&lt;String, Object&gt;();</span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">            variables.put(&quot;someString&quot;, someString);</span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">            List&lt;Command&lt;?&gt;&gt; cmds = <b>new</b> ArrayList&lt;Command&lt;?&gt;&gt;();</span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">            cmds.add(CommandFactory.newStartProcess(&quot;SampleFlow&quot;, variables));</span></p><p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">            cmds.add(CommandFactory.<i>newFireAllRules</i>());</span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span></p>
<p class="MsoNormal">The default value for the someString variable in SampleFlow does NOT get updated. However, if I do this:</p><p class="MsoNormal"> </p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">            String someString = </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2A00FF">&quot;Some String&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">            Map&lt;String, Object&gt; variables = </span><b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">new</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> HashMap&lt;String, Object&gt;();</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">            variables.put(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2A00FF">&quot;someString&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">, someString);</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">            List&lt;Command&lt;?&gt;&gt; cmds = </span><b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">new</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> ArrayList&lt;Command&lt;?&gt;&gt;();</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">            StartProcessCommand cmd = </span><b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">new</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> StartProcessCommand();</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">            cmd.setProcessId(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2A00FF">&quot;SampleFlow&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">);</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">            cmd.setParameters(variables);</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">            cmds.add(cmd);</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">            cmds.add(CommandFactory.<i>newFireAllRules</i>());</span></p><p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span></p><p class="MsoNormal">the someString variable does get updated. However, StartProcessCommand is not intended to be used (Discouraged Access), so I don’t want to use this solution. </p>
<p class="MsoNormal"> </p><p class="MsoNormal"><i><span style="font-size:10.0pt;color:gray">Dan</span></i></p></div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br> - CTO @ <a href="http://www.plugtree.com">http://www.plugtree.com</a>  <br> - MyJourney @ <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br>
 - Co-Founder @ <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> <br> - Salatino &quot;Salaboy&quot; Mauricio -<br>
</div>