Trying to trigger a process by mail

192 views
Skip to first unread message

J.M.

unread,
Oct 5, 2015, 3:08:52 AM10/5/15
to Fujitsu RunMyProcess Developer Community
Hi,

I'm trying to trigger a process sending an email, but I'm getting "Unexpected error" in Messages List > Messages with errors, and the process is not launched.

The start event has message in the field trigger, and I've created some variables for each field of the mail (subject, cc, content, attachment).
Besides, the start event is in a lane which has a role I created long time ago, called Designer, and I'm sending the mail from a gmail addres which belongs to a user who belongs to this role and has administrator profile.

I've build the address like:
process+my_customer_...@runmyprocess.com

Just in case it could helps, I'm getting in the messages List two mails, sending the mail only once, and both are the same.

I can't understand...
What am I doing wrong?

Thanks in advance and regards.

Messages List.png
start event.png
users.png

Bidisha Das

unread,
Oct 5, 2015, 4:34:59 AM10/5/15
to suppor...@runmyprocess.com
Hi,
Please check with the configuration of the input parameters(subject/content/attachment etc) in the process. Also,I could see that you are passing "TEST" in the email address while sending the message from your mailbox but its taking as "test" while RMP receives the message.This could be a problem although it should not be.But still, you can try creating a new process with same configuration and trigger it again in the same way.

Also,its not giving the exact error, just saying "Unexpected error",so am unable to get what exactly could be the reason for this.I am not able to reproduce it as well on my side.

You can try with different configurations for input variables and check if the process is getting fired.If still not working,you can send me screenshots of the configurations.


Thanks & Regards
Bidisha

J.M.

unread,
Oct 5, 2015, 4:36:55 AM10/5/15
to Fujitsu RunMyProcess Developer Community, javiermm...@gmail.com

Hi again,

I've noticed I had made a mistake copying the processId, but it's not working neither.
The error has changed. Sometimes it says:
null
and sometimes:
Trying to start a process using a non configured message box.

I need some help, please.

Richard Manga

unread,
Oct 5, 2015, 4:50:07 AM10/5/15
to suppor...@runmyprocess.com, javiermm...@gmail.com
Good Morning,
In order to trigger a process with MAIL, you should have LIVE version of your project. So, you will be able to trigger process ONLY on LIVE with the mail.
Please create a LIVE version for your tests.
Best Regards,

Richard


--
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 http://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/68b6c9ad-7b33-484b-83e3-7e4ad8b6343e%40runmyprocess.com.

Message has been deleted

Richard Manga

unread,
Oct 5, 2015, 5:53:09 AM10/5/15
to suppor...@runmyprocess.com, javiermm...@gmail.com
Good Morning,

Please, check that in the TAB "Access Rights" of the project, you selected "Users" entry and you put the role containing the user who should validate the manual task.

You are using LIVE system so all the roles need to be defined also on Project TAB.

Best Regards,
Richard



On Mon, Oct 5, 2015 at 11:28 AM, J.M. <javiermm...@gmail.com> wrote:
Hi,

Thanks Richard, now the process is launched, but...

... The process stays waiting when it arrives to a manual activity (what is completely normal). However, I cant advance the process by doing this manual activity. It's like if the activity was stuck.

Why is this happening?


Regards.

javiermm...@gmail.com

unread,
Oct 5, 2015, 6:09:21 AM10/5/15
to Fujitsu RunMyProcess Developer Community, javiermm...@gmail.com
Hi,
Thanks Richard, now the process is launched, but...

... The process stays waiting when it arrives to a manual activity (what is completely normal). However, I cant advance the process by doing this manual activity. It's like if the activity was stuck. (All roles that validate some activity are in the Users list)

Taking advantage of this post, I have another doubt.
I would like to receive the content of the mail like an JSON object, but even though I select this option in the parsing format of the start event, when the process is launched the parameter content type says "text".

Why is this happening?
Why is RMP not remembering my selection?
Why I can not to advance the process?


Regards.

On Monday, October 5, 2015 at 10:50:07 AM UTC+2, Richard Manga wrote:

Richard Manga

unread,
Oct 5, 2015, 1:41:30 PM10/5/15
to suppor...@runmyprocess.com, javiermm...@gmail.com
Good Morning,

In order to have the content of your variable like JSON object, you need to create another variable with the following code:
<#assign new_var = P_json_parse(text_var)> ${new_var}
NB: text_var will be the variable containing your object in text format.
Please, check that your task is assigned to a role (that there is nothing in the assign to field). Then, check your organization and check that you are inside the right role.

Best Regards,

Richard

J.M.

unread,
Oct 7, 2015, 2:49:00 AM10/7/15
to Fujitsu RunMyProcess Developer Community, javiermm...@gmail.com
Hi,

Thank you for the info. I've checked the organization, the roles, the user, the lane and the activity and all seems to be ok, but when I launch the process by email in TEST mode (mailing to the adress like "[...].TE...@runmyprocess.com") the process stucks and I can't advance the flow with a user who belongs to the role in the lane where the activity is placed and neither with a user with administrator profile. However, when I launch the process mailing to the address for starting it in LIVE mode (without the "[...].TEST@[...]"), then the process works normally in that mode, and the activity can be made by a user who belongs to the lanes's role.

Why is this happening? Is it about the mail launching?

Thank you for the JSON conversion too. It works, but I thought It would be necessary to use the parsing format field in the start event. If I need the freemarker code to make the conversion, then How this field works?

Thanks in advance and regards

Richard Manga

unread,
Oct 7, 2015, 6:15:51 AM10/7/15
to suppor...@runmyprocess.com, javiermm...@gmail.com
Good Morning,

After checking with our R&D team, I can confirm that it is possible to start the process in TEST with email.

Please, just check the following conditions:

-> The account from which the mail is sent on TEST should be RunMyProcess user.

-> The account from which the mail is sent should be DESIGNER of the project (because we are on TEST mode).

-> The account from which the mail is sent should be ACTIVE on RunMyProcess.

About the JSON.parse, it is usefull to parse the content in order to be able to use it.

Best Regards,
Richard

Reply all
Reply to author
Forward
0 new messages