Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
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
Hi hrushikesh, Did you check the process instance? what kind of output you are getting?
Hi Gopal, yes it is returning null
you can not use start process link in a expression rule this way. you can use this function in combination of link Filed or using dynamic link. If you can let us know the use case then we can assist you in a better way.
the objective is to send a mail having the task link for that particular user.
if you want to send task link to user then you would need to use task id and then concatenate it with your environment URL.
Yes, after concatenate the expression rule gives the output as url but in the script task or mail body in process model it gives the null
you dont have to use start process link and get cache . just task id and environment url will work, see below example
concat("example.appiancloud.com/suite/tempo/tasks/task/",ri!taskId)