0 votes
537 views
in Integrations by

2 Answers

0 votes
by
 
Best answer

This is a implementation of the email notification with timer event pattern, a timer event is attached to the Process Task and in the post of the timer event the current task id is passed to the email sending service as follows

tw.local.taskID = tw.system.step.task.id

then the taskID is passed to the Email Sender service which constructs the task launch URL as follows

tw.local.messageText += "http://" + tw.env.serverhostname +  ":" + tw.env.serverport + "/teamworks/process.lsw?zWorkflowState=1&zTaskId=" + tw.local.taskID; 

A sample twx for 8.5.5 is attached here https://bpm.tips/?qa=blob&qa_blobid=16093317356553935009

+1 vote
by
It is a good practice to have the task URL in the custom email notifications, custom email notifications are generally sent using attached timer events which are not repeatable and start after task is created/assigned

The URL patters is

http://{serverhostname}:{server port}/teamworks/process.lsw?zWorkflowState=1&zTaskId=xxxx  

To get the task id from the task you can use the following call in the post assignment of the timer event since the timer is attached to the task the current step is the task

tw.local.taskID  = tw.system.step.task.id
by (110 points)
Is there a way to pass input variable values with this task URL format?
by (11.2k points)

input variables can be suffixed in the following syntax

&tw.local.bpdName=Approval&tw.local.launch=false&tw.local.snapshotName=0.0.1&tw.local.assignTo=ghamm

I had to dig it out of old lombardi wiki site dumps, glad you asked and this can be recorded for future developers

Related questions

0 votes
1 answer 153 views
0 votes
1 answer 46 views
0 votes
0 answers 26 views
0 votes
0 answers 16 views
0 votes
0 answers 62 views
0 votes
1 answer 225 views
0 votes
0 answers 45 views
0 votes
0 answers 9 views
0 votes
1 answer 53 views
asked Oct 4, 2017 in Coach Views by usabpm (10.6k points)
0 votes
2 answers 253 views
0 votes
1 answer 28 views
0 votes
1 answer 146 views
0 votes
1 answer 51 views

494 questions

404 answers

81 comments

1.6k users

Created By Dosvak LLC (WWW.DOSVAK.COM)
Our Public Git Repository

Dosvak UI Toolkit --- Download --- Demo

Subscribe us at

Welcome to BPM Tips Q&A, Community wiki/forum where you can ask questions and receive answers from other IBM BPM experts and members of the community. Users with 2000 points will automatically be promoted to expert level.
...