Rule which have to return the http link is working on expression rule object but not returning when using in mail body/script task in the process model.

Certified Associate Developer

The below expression rule is used to get the http url as output and is working fine in the expression rule object but whereas if the same rule is using inside of the body of mail and script task it is not returning anything.

a!localVariables(
local!startProcessLink: a!startProcessLink(
processModel: cons!TEST_PM,
processParameters: { id: ri!id, }
),
local!cacheKey: index(local!startProcessLink, "cacheKey", ""),
tostring(if(
a!isNullOrEmpty(local!cacheKey),
"",
concat(
"<a href=""",
"">companyname.appiancloud.com/.../iYBQhUjyCxCUquoIwiZAuYZ6ZpfD3jPtesTVSHGdu6Crrx8JJi3pPg
local!cacheKey,
""">link text</a>"
)
))
)

  Discussion posts and replies are publicly visible