This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| xquery version "1.0-ml"; | |
| module namespace tl = "http://marklogic.com/task-lib"; | |
| import module namespace tb="ns://blakeley.com/taskbot" at "/lib/taskbot/taskbot.xqm"; | |
| declare namespace eval="xdmp:eval" ; | |
| declare option xdmp:mapping "false"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def resolveTokens(str) { | |
| if (str != null) { | |
| Map<String, String> customTokens = mlAppConfig.getCustomTokens(); | |
| if (customTokens != null) { | |
| for (String key : customTokens.keySet()) { | |
| if (key != null) { | |
| String value = customTokens.get(key); | |
| if (value != null) { | |
| str = str.replace(key, value); | |
| } |
OlderNewer