Groovy Expressions in Alert Composer
Summary:
Dear Folks,
I'm trying to setup WLF-00010, to send different message body for different assignment types.
Hello ${assignedToDisplayName},
${assignerDisplayName} has assigned you a ${AlertUtils.getLookupMeaning('ORA_WLF_LEARNING_ITEM_TYPE', learningItemType)}: ${learningItemTitle}.
<% if ( assignmentType=='ORA_REQUIRE_ASSIGNMENT') {%>
This is a required assignment. It is due by ${AlertUtils.formatDate(learnerLearningRecords.assignmentDueDate)}
<% } %>
How can I achieve to fetch the assignmentType value from runtime and compare with ORA_REQUIRE_ASSIGNMENT.
If I change to any other expression, the syntax fails.
thanks in advance!
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):