You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!