PDA

View Full Version : Using -W or -P to set a condition attribute?



ckessel
05-12-2003, 03:21 PM
Is there a way to use the -W/-P parameters to set the value in a condition? I've got a string compare condition, but the string I want to compare it to can vary. Is there a way for me to set the "target" attribute on the condition from the runtime command line?

Thanks,
Chris

Jeff Dillon
05-12-2003, 10:03 PM
The easiest way to do this is to set the value indirectly. For example, you could make your string comparison condition check $J(myValue), then you could set the java system property at runtime. Similarly you could do this with an Environment Variable ($E) or any other Product or wizard bean property.