Not able to send mail with P_task_url

437 views
Skip to first unread message

svi...@astrainfotech.com

unread,
May 30, 2016, 1:16:48 AM5/30/16
to Fujitsu RunMyProcess Developer Community, Vipin Kumar, Vinod Varma
Hi

I am having a strange problem.

I am getting error when I am trying to send mail with link to the task using P_task_url.

Error is as below:
2016-05-30T05:11:02+0000 - Task "send mail" (id: 1[0] - status: ABORTED): Error while processing test <a href="{P_task_url}">this</a>
Expression P_task_url is undefined on line 1, column 17 in send mail.

I have given text in the message as "test <a href="${P_task_url}">this</a>"

I am using default mail provider and content type is text/html.

Request help. Thanks in advance

Regards


Vinod

Pankaj Kumar

unread,
May 30, 2016, 2:22:44 AM5/30/16
to Fujitsu RunMyProcess Developer Community, Vipin Kumar, Vinod Varma
Hi Vinod,

Are you sending the mail on any manual activity as "P_task_url" is accessible on manual activity.

I checked 
test <a href="${P_task_url}">this</a>

It is executing correctly on mail text body on any manual task notification.

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support



Vinod

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/436ec64a-61ea-4d9b-96f1-ce74318c6145%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

vinod...@gmail.com

unread,
May 30, 2016, 2:27:54 AM5/30/16
to Fujitsu RunMyProcess Developer Community, v...@astrainfotech.com, vinod...@gmail.com
Hi Pankaj

Thanks for the quick response.

I am not using in manual task. I am using in mail (activity type email).

Please find attached screenshot.

Have I missed something?

Regards

Vinod
sendmail.png

Pankaj Kumar

unread,
May 30, 2016, 2:36:37 AM5/30/16
to Fujitsu RunMyProcess Developer Community, vk, Vinod Varma
Hi Vinod,

${P_task_url} is unique url of manual task form to validate or cancel a given process. If on mail activity, you need to give hyperlink of any url or manual task, kindly check that variable is accessible on that activity. On your mail activity as there is no manual task on that activity you are getting the error.You need to save the value of P_task_url of earlier manual activity in another variable and use that variable in mail notification.

Please find reference link of RunMyProcess internal variable here.

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

svi...@astrainfotech.com

unread,
May 30, 2016, 3:51:40 AM5/30/16
to Fujitsu RunMyProcess Developer Community, v...@astrainfotech.com, vinod...@gmail.com
Hi Pankaj

I tried assigning to variable in manual task. But is throwing error (screenshot attached). When I am trying to fetch value in Test Console it reports as undefined (screenshot attached)

I have attached screenshots for script used, WI and process step

Request help

Regards


Vinod
VariableReportedAsUndefined.png
ErrorOnHittingButton.png
StepBeforeHittingExec script to save variable button.png
processStepUsingTaskVariable.png
scriptSavingTaskVariable.png

svi...@astrainfotech.com

unread,
May 30, 2016, 4:44:54 AM5/30/16
to Fujitsu RunMyProcess Developer Community, v...@astrainfotech.com, vinod...@gmail.com, svi...@astrainfotech.com
Thanks a lot, Pankaj, for all the support. It works fine now
Reply all
Reply to author
Forward
0 new messages