activate and de-activate rule
kurt vanhauwaert
Hi all,is it possible to activate and de-activate a coresuite rule via code from another rule ?
kind regards,
kurt
Sebastian Schweer
Hallo Kurt,as far as i know, it is not poassible. But let us wait for the Admins to comment this.
For the Moment, have you try to put your Code in one rule?
I think that will be a lot easier than activating other rules.
Best Regards,
Sebastian
Paolo Manfrin
Hi Kurt,I am not sure what you mean by "activate or deactivate"...
Two options:
1. If you mean "call a rule from another rule" this is possible but you need to lookup the function name in the database. Disadvantage is that if you change the line of a certain row you have to lookup again the rule function name.
2. If you mean "activate/deactivate" like you do via UI we do not support this option. You might do a query to the db to update our UDT where we store the enabled/disable flag but we do not raccomend / support this option.
What are you trying to achieve?
Thank you.
paolo
kurt vanhauwaert
Thnx Paolo and Sebastian for your reply. the problem is that is have 5 columns in my rule that triggers a calculation. So when one of these fields change value then i do a calculation and then i store the result in the other 4 columns. I work with a logical to prevent that while the calculation is running other fields are starting also there calculation. So far so good... but after this calculation is done the program/rule starts a new calculation again....Paolo Manfrin
Hi Kurt I think in each of your rule you should add if ( pVal.InnerEvent = = true) return true.This would prevent to trigger one rule from another rule.
If this does not work try with pVal.ActionSuccess
hth
paolo
kurt vanhauwaert
Thnx Paolo for your information... it works fine now
0
Please sign in to leave a comment.
Comments
0 comments