Sending recursive mails upon reaching the deadline until the task is completed
Recently, we encountered a scenario where-in we need to send recursive mails for every xx hours, when the deadline is reached, until the task is completed. I am presenting the same here, with a simple example, hoping that this would be useful to you all.
Start a new workflow and define a "User Decision" step. For steps on how to define a User Decision step, click here.
In the step "User Decision", switch to tab "Latest End" and provide the details as shown below:
In the action, select "Modeled" from the list. Enter the name of the outcome.
Click on "Transfer and to Graphic" (Green tick button).
You can notice that there are 3 branches now. Two belong to the User Decision Step (YES/NO) and the other one is of Modeled deadline. So whenever a deadline is reached, this branch executes. When the user completes his task, it would either take YES or NO branch accordingly.
Now assume that we need to send repetitive mails to the agent for every 3 minutes, until he completes the task (in this case, acting on User Decision step).
Double-click on "Undefined step" in the "Modeled" branch and select LOOP(Until)
Using "Loop (Until)", we would be sending emails repetitively for every 3 minutes. To keep the loop open continuously, lets define a condition which would never be met.
Enter a step name and then click on "Click here to create a new condition".
Since we intend to make this Loop indefinite, create a condition similar to the following one.
Now go back to the main screen.
The above screenshot is of the step "Loop (Until)". Now double-click on the "Undefined" step above and create an email step.
Enter the recipient name and other details as shown above.
Now we need to send mails once every three minutes until the task is finished. To achieve this, we would need to create a business object (or use an existing one) and create a dummy method (with no code in it). Ensure that the check box "dialog" is unchecked in the properties of this method.
Now create a step "Activity" by double-clicking on undefined step after the email step in the Modeled branch.
Click on "Create new task"
Provide the details as shown below:
Don't forget to check the checkbox "Background processing".
SAVE and click on Back button.
In the activity step, switch to "Requested start" tab and provide details as shown below:
Using the above step, we are restricting the LOOP to send mails for every 3 minutes only.
Save and activate your workflow.
Test run the workflow. Do NOT execute the work item and wait for the alert mails.
Work item in inbox:
Work item along with the alert mails (after the deadline is reached):
相关推荐
The vision is “To produce the best UNIX-like operating system package possible, with due respect to the original software tools ideology as well as usability, performance and stability.” The ...
At time t1 = L/R1, the sending host completes transmission and the entire packet is received at the router (no propagation delay). Because the router has the entire packet at time t1, it can begin to...
The JavaMail API is designed to provide protocol-independent access for sending and receiving messages by dividing the API into two parts: * The first part of the API is the focus of this course -...
1. What is the IP address and TCP port number used by the client computer (source) that is transferring the file to gaia.cs.umass.edu? To answer this question, it’s probably easiest to select an ...
使用Python发送电子邮件 当您开始从事财务或分析方面的新工作时,打动老板的最简单,最快捷的方法就是自动化报告工作流程的某些... 如果您的计算机/服务器已安装Windows,请查看Windows Task Scheduler。 如果您的服
Invoking HTTPLoris by using the commands above start a limited to 500 connections across 50 threads, each sending at 1 byte/second and waiting until the connection is forced shut by the server....
Here is the method CTestEmailDlg::OnSend method, which is used to pass the user specified information to the email object and call the IMail::Send method after setting everything. Collapse | Copy ...
For this reason, the functions that handle these actions offer the option of waiting until the action is complete before returning (so-called synchronous operation); although they can be called in an ...
Once someone has been chosen, she gets a letter with all the data needed to prepare for the new job.... This is done after sending the letters, by the same person from recruitment who sent the letter.
安装Visual Studio 2012 Express之后,双击打开web.config文件时经常出现“There was a problem sending the command to the program”的错误,然后VS2012 Express打开了,但web.config文件没打开,需要再次双击web....
Fixed a bug when the subject field is too large.9/2/981.5.1- Fixed a bug with a message within a message (recursive msgs).18/2/981.5.2- Fixed a bug what happens when after the field ‘To:‘ appear a ...
Research is in progress to develop quantum-resistant asymmetric-key algorithms.8 However, 468 replacing the currently used asymmetric-key algorithms with quantum-resistant asymmetric-key 469 ...
Programming is easiest when the amount of knowledge and effort required matches the task at hand. Writing simple programs should require only a few lines of code and a minimal understanding of the en-...
这篇文档是关于“Lesson 15 Sending the Postcards”的练习题及答案,主要涉及英语基础知识,包括词汇配对、选择题以及情景对话。这个练习旨在帮助学习者掌握与邮政服务、问路相关的词汇和表达方式。 一、首先,...
limits the congestion one HOST can cause another if the sending HOST is attempting to send too much over one link. We note, however, that since the IMP at the destination does not have enough ...
This example is a very simple solution to sending and receiving data to and from a Parallax Basic Stamp. This example requires a Basic Stamp and the MSComm control. Also included is an example Basic ...
Chapter 6 of the "The Transport Layer" presentation delves into the core concepts and functionalities of the transport layer in computer networking. This layer is crucial as it serves as a bridge ...
This is a BETA release of the "print friendly" version of the Linux Knowledge Base and Tutorial. Here are a few things to note: Due to technical problems, this version does not contain the chapter on ...
Free SMTP Server is a free SMTP server program for Windows that lets you send email messages directly from your computer. Along with a mass mailer the program can be used as a relay server for sending...