[rules-dev] ruleFlowId as a dynamic way

mjido m.benlachgar at netfective.ma
Thu Sep 24 13:24:00 EDT 2009


Hi,
But I don't like to use startProcess several times.
I shouldn't invoke startprocess every time when i add another process.
I have ruleFlow files as input and i want to invoke startProcess one time.
I don't like to pass id by explicit form.
I need a generic code for this.
Thanks

Kris Verlaenen wrote:
> 
> Each process defines its own id.  If you look in the xml, the process
> element has an id attribute.  In the editor, click on the background of
> your process and you will also see the id property in the properties view.
> 
> So you should give each of your processes a new id. Then you can easily
> start each of those processes:
> 
>   startProcess("MyFirstProcess");
>   startProcess("MySecondProcess");
> 
> Does that make sense?
> 
> Kris
> 
> Quoting mjido <m.benlachgar at netfective.ma>:
> 
>> 
>> Hello,
>> I think i'm not very clear.
>> I have multiple ruleFlow files and i want to execute them with
>> startProcess(id).
>> But how i can associate each ruleFlow with his id.
>> Is there a way to get id process from ruleFlow file?
>> 
>> mjido wrote:
>> > 
>> > Hi,
>> > I use workingMemory.startProcess(Id_process) to execute multiple
>> rulflow
>> > files.
>> > So i want to pass Id_proccess as a dynamic value.
>> > Is there any way to make this? 
>> > Any helps will be very appreciated.
>> > 
>> 
>> -- 
>> View this message in context:
>> http://www.nabble.com/ruleFlowId-as-a-dynamic-way-tp25509741p25531054.html
>> Sent from the drools - dev mailing list archive at Nabble.com.
>> 
>> _______________________________________________
>> rules-dev mailing list
>> rules-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-dev
>> 
> 
> 
> 
> 
> Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
> 
> 

-- 
View this message in context: http://www.nabble.com/ruleFlowId-as-a-dynamic-way-tp25509741p25578006.html
Sent from the drools - dev mailing list archive at Nabble.com.



More information about the rules-dev mailing list