[rules-users] Trigering flows from rules

Mauricio Salatino salaboy at gmail.com
Wed Feb 16 09:52:16 EST 2011


That's correct
You can trigger flows with rules and rules with flows. You can also use
Events as well mixed with both: rules and processes.


2011/2/16 Esteban Aliverti <esteban.aliverti at gmail.com>

> Hi,
>
> Within the RHS of your rules you have an automagic object called kcontext.
> You can use it to start a process:
>
>         Map<String, Object> parameters = new HashMap<String, Object>();
>         parameters.put("someParameterId", someValue );
>         ... //set all the parameters
>         ProcessInstance pI =
> kcontext.getKnowledgeRuntime().startProcess("processId", parameters);
>
>
> Best Regards,
>
> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
>
> Esteban Aliverti
> - Developer @ http://www.plugtree.com
> - Blog @ http://ilesteban.wordpress.com
>
>
>
> On Wed, Feb 16, 2011 at 10:08 AM, Luciano A. Andrade <
> andrade.luciano at gmail.com> wrote:
>
>> Theres any way to triger a flow (process) from a Rule or shuld be
>> allway the flow that trigers the rules.
>> Maybe ¿Inserting a even fact?
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
 - CTO @ http://www.plugtree.com
 - MyJourney @ http://salaboy.wordpress.com
 - Co-Founder @ http://www.jbug.com.ar

 - Salatino "Salaboy" Mauricio -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110216/a8b39f3a/attachment.html 


More information about the rules-users mailing list