[ 1879395 ] Implement Process script JSR 223
- Implement G_, W_, A_ and P_ prefix for variables.
This commit is contained in:
parent
346983a22a
commit
620261e2bb
|
@ -271,7 +271,7 @@ public class MRule extends X_AD_Rule
|
|||
* @param m_windowNo
|
||||
* @return converted key
|
||||
*/
|
||||
private static String convertKey (String key, int m_windowNo)
|
||||
public static String convertKey (String key, int m_windowNo)
|
||||
{
|
||||
String k = m_windowNo + "|";
|
||||
if (key.startsWith(k))
|
||||
|
|
|
@ -346,18 +346,7 @@ public class Scriptlet
|
|||
*/
|
||||
private String convertKey (String key)
|
||||
{
|
||||
String k = m_windowNo + "|";
|
||||
if (key.startsWith(k))
|
||||
{
|
||||
String retValue = "$" + key.substring(k.length());
|
||||
retValue = Util.replace(retValue, "|", "$");
|
||||
return retValue;
|
||||
}
|
||||
else
|
||||
{
|
||||
String retValue = Util.replace(key, "#", "$$");
|
||||
return retValue;
|
||||
}
|
||||
return MRule.convertKey(key, m_windowNo);
|
||||
} // convertKey
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue