This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Can anyone debug this custom code rule
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 10, 2008
11:22 PM
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.
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.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 11, 2008
09:33 AM
Duplicate post
See this... http://community.macrovision.com/showthread.php?t=177538
See this... http://community.macrovision.com/showthread.php?t=177538