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 <
[email protected]> 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
> [email protected]
> https://lists.jboss.org/mailman/listinfo/rules-users
>
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to