We try to use Workflow Metadata inside Assign Task notification eMail.
Sample https://docs.adobe.com/content/help/en/experience-manager-64/forms/publish-process-aem-forms/use-met... is working fine.
When using var wfmetadata = workItem.getWorkflow().getMetaDataMap();
witch is working in participantChoser getParticipant() we get error
/apps/fd/dashboard/scripts/metadataScripts/kpbTaskMetaData_v1.ecma: ReferenceError: "workItem" is not defined. (NO_SCRIPT_NAME#28)
Please advice how to get Workflow Metadata based on ECMA Script in Assign Task
Thanks for any help
I have reached out to engineering and should have an answer to you soon