...
Code Block |
---|
Function Syntax : ${macroFunction(macro)} ShorthandProperty lookup notationsyntax: ${macro} Example Usage: ${secure(accessKey)} - get access key from secure store ${logicalStartTime(timeFormat)} - apply time function on the timeFormat provided and use the value. The Default (shortHand) usage will substitute arguments using the following precedence: Custom Action Workflow-Token > Runtime Arguments > Stored Preferences Examples: ipConfig: ${hostname}:${port} JDBC connection string : jdbc:${jdbc-plugin}://${hostname}:${sql-port}/${db-name} Using the expanded syntax allows additional logic to be applied to the macro arguments through a macro function. Escaping can be supported using the \ (backslash) character (e.g. \${hostname} will not be substituted) Nested macros: if a macro contains another macro, Example : ${secure(${user-name})} In the above example, we want to lookup the user-name in properties first, then use secure store to get the key/password for that user-name. this final key/password will be used for that field. |
...