Email Reminder Sub Process & Line Breaks in email body.

322 views
Skip to first unread message

Ben Jones

unread,
Jan 23, 2018, 8:42:44 PM1/23/18
to Fujitsu RunMyProcess Developer Community
Hi,

I have a process set up with an email reminder with a similar configuration to the one presented on the RMP developer site. However, when the process is sending the email it does not include the line breaks I need it to.

So, can someone assist with a workaround so that the line breaks will appear in the email the RMP server sends?

I've attached an image showing:
1. The input variables (in the FATHER process) for the reminder process.
2. The freemarker script I'm using.
3. How I want the freemarker to display (e.g. as it would from clicking 'test').
4. How the text actually displays in an email.


Regards,

Ben Jones

bgj...@gmail.com

unread,
Jan 23, 2018, 8:44:55 PM1/23/18
to Fujitsu RunMyProcess Developer Community, bgj...@gmail.com
It would help if I attached the image.

Refer attached.

image.png

Prachi Chandak

unread,
Jan 24, 2018, 7:01:03 AM1/24/18
to bgj...@gmail.com, Fujitsu RunMyProcess Developer Community
Hello Ben,

If you want to set any format into email body then you don't need to put it inside free-marker code.
Instead just put your email content with HTML tags and set it in an input variable. Reason behind this is that the Content-Type of email notification is already text/html. (Refer attachment)
Thus, only put the html code in variable and assign that code in email body.

 

Thanks & Regards,
Prachi Chandak
Fujitsu RunMyProcess Support

On Wed, Jan 24, 2018 at 7:14 AM, <bgj...@gmail.com> wrote:
It would help if I attached the image.

Refer attached.

--
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+unsubscribe@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/b8a68ed9-26a1-4709-b2c9-2e8a1c9c99e4%40runmyprocess.com.

email-config.JPG
html_content.JPG

arman_...@icloud.com

unread,
Jan 24, 2018, 7:01:47 PM1/24/18
to Fujitsu RunMyProcess Developer Community
Thanks. I'll give it a try on Monday.

bgj...@gmail.com

unread,
Jan 28, 2018, 4:30:36 PM1/28/18
to Fujitsu RunMyProcess Developer Community, bgj...@gmail.com, bjo...@berendsen.com.au
Hi Prachi,

This didn't work. In one process the HTML tags are causing the process to crash and through a 'Bad State Error (400)', in another much simpler (testing) process it completely ignores everything inside the HTML tags.

The FATHER and SON process is setup as per http://docs.runmyprocess.com/Developer_Guide/Process/Design/Task_Reminder_Email

Is this being caused by passing the entire email body as a variable from the FATHER to the SON process, which looks like it travels through XML?

Is there a work-around or another solution to this?

I've attached a few more screenshots showing the input, output and connector configurations.


Regards,

Ben Jones

connector to SON process configuration and content configuration.jpg
email_body being created in FATHER process to pass to SON process.jpg
resulting email from sent by SON process using input from FATHER process.jpg
SON process email reminder configuration.jpg

Ghanshyam Mule

unread,
Jan 29, 2018, 2:36:17 AM1/29/18
to Fujitsu RunMyProcess Developer Community, bgj...@gmail.com, bjo...@berendsen.com.au
Hello Ben,

I have tried to produce your issue with parent & child process combination & i am able to do it.

1. Firstly i have created parent process & having input variable body & places html content into it.
2. Then created new process named it as child process & add activity as email notification & written body variable into email body section.
3. When i submit process from web interface it executes both process at the end & getting mail with appropriate html contents.


Note:- If you are using Outlook then directly not shown Html content because outlook accepts plain text content. In the mail content you can see i named icon need to click on it  & then you will get an option display as html click on it & you can see your email contents in Html format.

You can refer attached screenshot for more information.

Please feel free contact us for more information.

Thanks & Regards
Ghanshyam 



Regards,

Ben Jones

--
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+unsubscribe@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/.
email_issue_screenshot2.JPG
email_issue_screenshot3.JPG
email_issue_screenshot4.JPG
email_issue_screenshot5.JPG
Message has been deleted

bgj...@gmail.com

unread,
Jan 30, 2018, 12:28:08 AM1/30/18
to Fujitsu RunMyProcess Developer Community, bgj...@gmail.com
Thanks Ghanshyam. I haven't tried this yet, but reading your solution seems to veer me away from using a connector at all, in which case it becomes a moot point.
I need the process to be sending a reminder to all users every 24 hours for any task that they've yet to complete (as per the RMP guide link I listed in my earlier post).

Is there a way to work this by going through the connector? If not then I'll change the design of my connector and email messages.


Regards,

Ben Jones

Prachi Chandak

unread,
Jan 30, 2018, 5:52:17 AM1/30/18
to bgj...@gmail.com, Fujitsu RunMyProcess Developer Community
Hello Ben,

So now the above given solution suits your requirement to set the email content?
And you need some idea to trigger the email once in a day to all user? If this is the case, then you can use timer intermediate event to trigger process in every 24 hour.
Please correct me if I misunderstood your requirement.

Thanks & Regards,
Prachi Chandak
Fujitsu RunMyProcess Support

Regards,

Ben Jones

--
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+unsubscribe@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/.

shraddhap...@gmail.com

unread,
Feb 5, 2018, 3:31:40 AM2/5/18
to Fujitsu RunMyProcess Developer Community, bgj...@gmail.com, suppor...@runmyprocess.com
Hi Ben

Good day.

We are awaiting for your response.


Thanks & Regards,
Shraddha Pangantiwar
Fujitsu RunMyProcess Support

shraddhap...@gmail.com

unread,
Feb 8, 2018, 6:25:57 AM2/8/18
to Fujitsu RunMyProcess Developer Community, bgj...@gmail.com, suppor...@runmyprocess.com
Hi Ben

Good day.

Could you please confirm if your issue has been clarified?

Awaiting for your response.

bgj...@gmail.com

unread,
Feb 18, 2018, 8:42:34 PM2/18/18
to Fujitsu RunMyProcess Developer Community, bgj...@gmail.com, shraddhap...@gmail.com
Hi Shraddha,

This can be closed. The solution provided above did not resolve the issue. However I've modified the process to remove the issue altogether.


Regards,

Ben Jones

Reply all
Reply to author
Forward
0 new messages