Script invalid - FMT Unable to translate

316 views
Skip to first unread message

travis....@teknion.com

unread,
Jan 16, 2017, 11:50:22 AM1/16/17
to Fujitsu RunMyProcess Developer Community
Hello RMP Team,

I can't figure out why I am getting the error "Script invalid - FMT Unable to translate" when trying to add a Role script.

Here is the code that I am using:

<#assign result = false>
<#if P_user.extended.app_po.user == true>
<#if P_user.extended.app_po.purchasing_clerk?size gt 0>
<#if transpose(P_user.extended.app_po.purchasing_clerk).company_id?seq_contains("103")>
<#assign result = true>
</#if>
</#if>
</#if>
${result}

When I test this code in the test window I get back true, but when I close and save I get an error message. I've attached two screen shots of the result in test and the error message after.

rmp_issue_role_script_1.JPG
rmp_issue_role_script_2.JPG

ankitas

unread,
Jan 18, 2017, 11:35:18 AM1/18/17
to Fujitsu RunMyProcess Developer Community, travis....@teknion.com
Hi there,

We had improved the performance of scripted lanes with the release of thibault_v1 (November 2016) you can check the document here.

Can you please give us a details of the user Metadata which you are using so that we can suggest you more.
Below is the working code for two conditions.

Example : 

<# if ${P_user.extended.group =="rmp" && P_user.extended.City == "mumbai"}>

If you are still facing some issue don't hesitate to contact us.

Regards, 
Ankita

Travis Vliegen

unread,
Jan 18, 2017, 12:55:09 PM1/18/17
to ankitas, Fujitsu RunMyProcess Developer Community
Hey Ankitas, 

  I went through the documents and I don't see anything wrong with my code. I've attached a screen capture of my metadata setup.

Why would I be getting the message "Script invalid - FMT Unable to translate"?

--
Travis Vliegen
Web Application Developer





Confidentiality Notice: This communication, including any attachments, may contain information that is confidential and privileged. [It may constitute non-public information and is intended to be conveyed only to the designated recipient(s).] If the reader or recipient of this communication is not the intended recipient, or you believe that you have received this communication in error, please notify us immediately by return e-mail and promptly delete this e-mail including any attachments without reading or saving them in any manner. Any other distribution, copying or disclosure is prohibited and may be unlawful. We accept no responsibility for changes made to this e-mail or to any attachments after transmission from our office. 
script_rule_issue_screen_cap.PNG

Richard Manga

unread,
Jan 18, 2017, 7:25:40 PM1/18/17
to Fujitsu RunMyProcess Developer Community, travis....@teknion.com
Good morning Sir,
Scripted lanes have been improved.
As suggested previously, please use the following structure:
${is_user_in_lane([1111]) && is_user_in_lane([1112])} 
Instead of having different "if" statements, please just build one "&&" statement.
This is the new notation that is recommended.
If you have any other question, please don't hesitate to contact us.
regards,
Richard

Travis Vliegen

unread,
Jan 19, 2017, 9:21:20 AM1/19/17
to Richard Manga, Fujitsu RunMyProcess Developer Community
Hey Richard, 

  I've combined all the if statements into one line. I still get the same error message.


Here is my code: 


<#if P_user.extended.app_po.user == true && P_user.extended.app_po.purchasing_clerk?size gt 0 && transpose(P_user.extended.app_po.purchasing_clerk).company_id?seq_contains("103")>
<#assign result = "true">
<#else>
<#assign result = "false">
</#if>
${result}


Any suggestions? Are you able to reproduce this error?


--
Travis Vliegen
Web Application Developer

script_rule_issue_screen_cap_2.PNG

Ankita Shrinath

unread,
Jan 19, 2017, 10:05:58 AM1/19/17
to Fujitsu RunMyProcess Developer Community, Richard Manga
Hi Travis,

Thank you for your responce.

Could you please remove following code and check is it working for you?

<#assign result = "true">
<#else>
<#assign result = "false">
</#if>
${result}

Attached is the screenshot of the working code,and below is the script code which I am using.

Example : 

<# if ${P_user.extended.group =="rmp" && P_user.extended.City == "pune" && P_user.extended.Organization == "Fujitsu"}>

If you are still facing some issue don't hesitate to contact us.

Regards, 
Ankita 

--
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/CACFbqOPRe%2B426TOK5S7K4n78KJaNPcKx_nkVtUZ-JhtJafvXNQ%40mail.gmail.com.

role script.PNG

Travis Vliegen

unread,
Jan 19, 2017, 10:15:39 AM1/19/17
to Fujitsu RunMyProcess Developer Community, Richard Manga
This works when I check using the "Check Script" button, but does not work when testing in the script editor window. Why would this be happening? 

You received this message because you are subscribed to a topic in the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/DutXwt-bxCU/unsubscribe.
To unsubscribe from this group and all its topics, 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/.

--
Travis Vliegen
Web Application Developer

Travis Vliegen

unread,
Jan 19, 2017, 10:19:55 AM1/19/17
to Fujitsu RunMyProcess Developer Community, Richard Manga
Also, do all role scripts have to be one liners now?

Ghanshyam Mule

unread,
Jan 20, 2017, 11:17:38 AM1/20/17
to suppor...@runmyprocess.com, travis....@teknion.com
Hi Travis,

As per your last mail,it seems that it is not necessary to use if condition.   

Could you please try with this code:- ${P_user.extended.group =="rmp" && P_user.extended.City == "pune" && P_user.extended.Organization == "Fujitsu"}.

If this condition satisfied it will return true or false and automatically assigned user in that role.

Note:- Metadata works in either Acceptance or Live mode.

Thanks & Regards,
Ghanshyam Mule 


Reply all
Reply to author
Forward
0 new messages