cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
james_decosta
Level 9

Can anyone debug this custom code rule

hi,
the custom code rule i have added on a panel named minimalxxportalactivemq is this:

Though i am supplying all the fields ,the custom code rule always returns true
And hence i am getting wrong all the way.
-----------------------------------------------------------------
package com.xxxx.roinstaller;

import com.zerog.ia.api.pub.CustomCodeRule;

public class MinimalxxxportalActivemq extends CustomCodeRule {

@Override
public boolean evaluateRule() {

String minrxxxActivemqurl=ruleProxy.substitute("$RMINROPORTAL_MQURL$");
System.out.println("minimal xxxxxxx portal activemq url is what i want"+minxxxxxxportalActivemqurl);


System.out.println("-------------------------startxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxQ");
//String eventStreamQueueName=ruleProxy.substitute("$ROESQN$");
//String eventResponseQueueName=ruleProxy.substitute("$ROERQN$");
//String smresponseQueueName=ruleProxy.substitute("$ROSMQN$");
//String profilePassword=ruleProxy.substitute("$EPPASSWORD$");
System.out.println("XXXXXXXXXXXXXXXXXXXXXXXACTIVEmq urlxxxxxxxxxxx"+minxxxxxportalActivemqurl);
String minxxxxxPortalListenerTopicName=ruleProxy.substitute("$RMINROPORTAL_LISTENNAME$");
System.out.println("xxxxxxxxxxxxxxxxxxxxxxxxtopic urlxxxxxxxxxxxxxxxxxx"+minxxxxPortalListenerTopicName);
System.out.println(minxxxxPortalListenerTopicName);
String minchosenInstallSet=ruleProxy.substitute("$CHOSEN_INSTALL_SET$");
System.out.println("xxxxxxxxxxxxxxxxxxxxchoose installxxxxxxxxxxxxxxx"+minchosenInstallSet);
String valueToRefer=ruleProxy.substitute("$NULL$");
if(minchosenInstallSet.equalsIgnoreCase("Minimal")){
if(minxxxxportalActivemqurl.equalsIgnoreCase(valueToRefer)||minxxxxPortalListenerTopicName.equalsIgnoreCase(valueToRefer)){
System.out.println("aaaaaaaaaaaaaaaaaaaainside ifxxxxxxxxxxxxxxxx");
System.out.println("aaaaaaaaaaaaaaaaaaaainside ifxxxxxxxxxxxxxxxxminchosenInstallSet"+minchosenInstallSet);
System.out.println(minxxeportalActivemqurl+"minxxxportalActivemqurlaaaaaaaaaaaaaaaaaaaainside ifxxxxxxxxxxxxxxxx");
System.out.println(minxxxPortalListenerTopicName+"minxxxxListenerTopicNameaaaaaaaaaaaaaaaaaaaainside ifxxxxxxxxxxxxxxxx");
return true;}
else{
System.out.println("aaaaaaaaaaaaaaaaaaaainside elsexxxxxxxxxxxxxxxx");
return false;
}}
else{
System.out.println("ixxxxxxxxxxxxxxxxxxxxxxxxxxxxelse ifxxxxxxxxxxxxx");
return false;
}


}

}

------------------------------------------------------
How shalll i debug this custom code rule,i dnt get the sysouts anyhwere in the stdout.log
and i dont even get the class unable to be loaded or class not found exception in the stderr.log.
How can i get the sysouts so that i will be able to decode them.
Labels (1)
0 Kudos
(1) Reply
purcellk24
Level 7

0 Kudos