When you use a custom function triggering on a rule, the “Rule friendly name” is passed as an argument to the function. This means you can do something like this:
function ruleCustomFunc(ruleID){
switch(ruleID){
case "YourRuleID1":
// Do whatever you want for YourRuleID1 here
break;
case "YourRuleID2":
// Do whatever you want for YourRuleID2 here
break;
}
}
Let me know how this works out.
Alexander