format for recipients in mail task
Hi all,
I built a workflow that creates an asset with certain attributes. Now I want to add a mail task that notifies the data stewards of the added asset. But no matter what I try, I can’t get the recipients of this mail to work. I tried creating a list of email addresses, a list of usernames and such but every time I get a " Cannot resolve identifier " error. I also tried it via adding role(Data Steward) to the recipient line, in which case I get a " Missing final ‘@domain’ " error. I don’t understand how to get this fixed. Help is much appreciated!
wilkoverheij
Posted 4 years ago · Edited 1 year ago·Last reply 4 years ago
6 comments
arthurburkhardt
·4 years ago · EditedHave you looked at this post? Mailtask to sent to several users listed in a csv file ? -
Developers - The Data Citizens Community (collibra.com)
Probably what you’re looking for.
wilkoverheij
OP4 years ago · EditedI saw that post actually and I tried that approach. However, whenever I try to use a string within my workflow I get a property not found exception, cannot resolve for identifier. Is there some technicality about strings that I might not be aware of? Even when I do something simple in my script task, like: def string = “This is a string”. And i try sending that to myself it fails. I don’t encounter this problem when I do the same for my list.
arthurburkhardt
·4 years ago · EditedDid you save it into the execution variables?
execution.setVariable("myVar", "This is a string")wilkoverheij
OP4 years ago · EditedThat was it, thank you very much!
Saw this line passing by sometimes but never really understood what it did. If I understand correctly now, it actually creates the variable outside of the script task. Am I correct?
arthurburkhardt
·4 years ago · EditedYes indeed. ExecutionEntityImpl (Flowable - Engine 6.7.0 API) (javadoc.io)
wilkoverheij
OP4 years ago · EditedThanks for your help, much appreciated!