Hmm, didn't I already tried to answer both questions? Copied previous
answers below. Anyway, I believe this might also have to do with action
conflicts I'm already looking into (the action of one process being
overridden by an action in another process).
Kris
Santosh,
Based on your description, different processes should be started. Do
you have a simple standalone example that shows this behaviour, so I can
take a look? If not, using an audit logger might help in determining
which rules are fired and which processes are being started.
Kris
***************
Santosh,
I think you need to add it as part of a META-INF directory inside a
source dir. There's a screencast that shows you how to get a simple
example working, try following that and let me know if you still have
issues with that:
http://people.redhat.com/kverlaen/DomainSpecificWorkItem.swf
Kris
Quoting santosh mukherjee <sam.sensation(a)gmail.com>:
Conditions to both the rules are trivial.
rule 1 checks whether temperature is greater than 40 then fire the
process
with process id: com.sample.ruleflow
rule 2 checks whether pressure is greater than 20 then fire the
process with
process id:
com.sample.Another.
I have also printed the ruleflows stored in the builder. They are
coming as
correct. But when I call com.sample.ruleflow after passing a
temperature
event then ruleflow gets fired printing inside ruleflow as its action
event.
Again when I pressure event comes with pressure > 20 then again
com.sample.ruleflow gets fired , again printing inside ruleflow
whereas it
should have printed inside Another and com.sample.Another should have
got
fired.
Also I am storing the rules in the same package.
I cannot understand why is this happening :(
Also there is another problem. I have created a sample workitem, put
it
inside a src folder. But it is not showing in the pallete. Also my
file name
is different than the default one.
Need help!
com.sample,ruleflow--> start->Action(print inside ruleflow)->End
com.sample.Another-> start->Action(inside Another)->End
Thanks
Santosh Mukherjee
2010/7/22 Mauricio Salatino <salaboy(a)gmail.com>
> what are the condition from both rules?
> Can you share with us your processes definitions? did you check the
process
> ids?
> Greetings
>
> 2010/7/22 santosh mukherjee <sam.sensation(a)gmail.com>
>
>> Hi,
>>
>> My rule file is like this:
>>
>> rule1:
>> when something
>> then
>> start process(p1);
>>
>> rule2:
>> when something
>> then
>> startprocess(p2);
>>
>> But in both the cases only p1 gets fired which was the rule flow
that I
>> last added to the builder.
>>
>> Can any body suggest me how to overcome this problem.??
>>
>>
>> Thanks
>> Santosh Mukherjee
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users(a)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 -
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
>
Disclaimer:
http://www.kuleuven.be/cwis/email_disclaimer.htm