Closed ystxn closed 2 years ago
It is probably here: https://github.com/finos/symphony-wdk/blob/4f700493691c88e2be6cdaa22acf79b93d2c447a/workflow-bot-app/src/main/java/com/symphony/bdk/workflow/engine/executor/message/SendMessageExecutor.java#L117 that we could try to bind the utility functions to the template engine
We could leverage this: https://freemarker.apache.org/docs/pgui_datamodel_method.html
Bug Report
The text() function does not work when used within a send-message template file https://github.com/finos/symphony-wdk/blob/master/docs/reference.md#string-textstring-presentationml
Steps to Reproduce:
hello.swadl.yaml
hello.ftl
Expected Result:
Bot responds with
I heard this: hello
tohello
commandActual Result:
Environment:
WDK 1.0.0-RC2