Display message content from free marker code in a process to user in the front end

372 views
Skip to first unread message

vijaysa...@gmail.com

unread,
Oct 28, 2013, 12:14:00 PM10/28/13
to suppor...@runmyprocess.com
Hello Team,

I have the following free marker code in which am using a variable "error msg" to display error message, but am not able to get the value form the backend to the front end i.e. I mean i want the error message to be display in the web form either through an alert box (or) an html message.

<#if tmp == 0>
${save_object(my_object,"task")}
<#else>
<@script env="javascript">
function user_exists(){
var msg="User with the given details already exists";
return msg;
}
var code=user_exists();
setVariable("error_msg",code);
</@script>
</#if>


Thanks in Advance!


regards,
vijaysarathi

Richard Manga

unread,
Oct 28, 2013, 2:05:21 PM10/28/13
to suppor...@runmyprocess.com
Hi Vijaysarathi!

You can take a value from the backend to the front end.

You just need to create a input form in the front end (not visible if you want), and give him the same name as your backend variable.

So, when a manual task is created, your backend will update the value of the variable.

Best regards,

Richard Manga.


2013/10/28 <vijaysa...@gmail.com>

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" 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/3842404a-c4df-4a15-a71c-4bcf777039e8%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages