Hi,<div><br></div><div>Within the RHS of your rules you have an automagic object called kcontext. You can use it to start a process:</div><div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
Map<String, Object> parameters = new HashMap<String, Object>();</div><div> parameters.put("someParameterId", someValue );</div><div> ... //set all the parameters</div><div> ProcessInstance pI = kcontext.getKnowledgeRuntime().startProcess("processId", parameters);</div>
</div><div><br></div><div><br></div><div>Best Regards,<br clear="all"><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>
- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">On Wed, Feb 16, 2011 at 10:08 AM, Luciano A. Andrade <span dir="ltr"><<a href="mailto:andrade.luciano@gmail.com">andrade.luciano@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Theres any way to triger a flow (process) from a Rule or shuld be<br>
allway the flow that trigers the rules.<br>
Maybe żInserting a even fact?<br>
<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>
</blockquote></div><br></div>