Comparison works on field but not in array field

61 views
Skip to first unread message

freal...@gmail.com

unread,
Nov 3, 2015, 6:07:36 AM11/3/15
to Fujitsu RunMyProcess Developer Community
Hi.
I have a simple process that have one condition. If measure greater than height, go to Square else go to Circle. I try did this with input field and works fine. My problem is that I want do this comparison in array field. And when I try do this, didn't work.

I put the condition for input field of this form:

${measure?number}>${height?number}

I think that if is in array, probably can be:

${array.measure?number}>${array.height?number}

Where array is the variable of array.

But didn't work.

I attach the screenshots. Somebody know I can do this easily?

measure_interface.JPG
height_interface.JPG
interface.JPG
process.JPG

Sweta Suman

unread,
Nov 3, 2015, 6:23:13 AM11/3/15
to suppor...@runmyprocess.com
Hi,

Similar queries has been answered at Link .

Hope this helps you. Please revert back for any additional help.


--
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/5ca4f3e3-7e62-40de-bcb1-479fd37d638e%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.



--
Thanks,
Sweta 
Fujitsu RunMyProcess

freal...@gmail.com

unread,
Nov 3, 2015, 6:40:13 AM11/3/15
to Fujitsu RunMyProcess Developer Community
Hi.
Thank you Sweta.
I already saw this link. The idea is create a subprocess right? I did all steps and in the end didn't work, I don't know why. Is there other way easier to do that? Or you can help me to solve the gaps in my solution?

freal...@gmail.com

unread,
Nov 4, 2015, 12:56:25 PM11/4/15
to Fujitsu RunMyProcess Developer Community, freal...@gmail.com
Hello,
Sorry for inconvenience. I can't do what is presented in link. I try a lot of times, but didn't work. If there is other way more easier I would like that somebody help me. Thank you very much.

freal...@gmail.com

unread,
Nov 5, 2015, 4:58:54 AM11/5/15
to Fujitsu RunMyProcess Developer Community, freal...@gmail.com
Is there a possibility to add javascript code in button for compare columns of array?

Sweta Suman

unread,
Nov 6, 2015, 7:12:41 AM11/6/15
to suppor...@runmyprocess.com, freal...@gmail.com
Hi,

Yes, it is possible to use java script on button for comparison. You can select button type as " Execute Script " and write the script.


Thanks,
Sweta 
Fujitsu RunMyProcess

On Thu, Nov 5, 2015 at 3:28 PM, <freal...@gmail.com> wrote:
Is there a possibility to add javascript code in button for compare columns of array?
--
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/.



--

freal...@gmail.com

unread,
Nov 6, 2015, 7:22:06 AM11/6/15
to Fujitsu RunMyProcess Developer Community, freal...@gmail.com
Hello Sweta.
Thank you.
But if I choose execute script I can't go to other state. I want that compare and based in this comparation change state understand?

Sweta Suman

unread,
Nov 6, 2015, 7:31:16 AM11/6/15
to suppor...@runmyprocess.com, freal...@gmail.com
Hi,

If you want to execute script and launch process as well. Then select button type as "Start a process" and in Pre-launch script tab write your custom script followed by true;


--
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/.



--
Thanks,
Sweta 
Fujitsu RunMyProcess

freal...@gmail.com

unread,
Nov 6, 2015, 7:40:45 AM11/6/15
to Fujitsu RunMyProcess Developer Community, freal...@gmail.com
Hi.
Thanks.
This is the goal. But how I can compare values inside array?
I try did this, but didn't work:


if("[[array.measure_array]]" == "[[array.height_array]]"){
alert("Confirmed");true;
}

else {
alert("Denied");true;
}

Sweta Suman

unread,
Nov 6, 2015, 8:24:45 AM11/6/15
to suppor...@runmyprocess.com, freal...@gmail.com
Hi,

You can try something like below -

var rows_count = id_array.getRowsCount();
for (var i = 0; i < rows_count; i++) 
{
var x= id_array.id_test[i].getText();
var y= id_array.id_test1[i].getText();
if(x>y)
{
alert("yes");
}
}
true;

These queries would require professional consulting/support hours, as they are application specific.
I cordially request you to let us know your RMP Account ID to which we would bill these hours.
If such an arrangement is not in place, kindly provide us with your company details and the Point of Contact to whom we can connect our Sales Team.

}

--
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/.

freal...@gmail.com

unread,
Nov 6, 2015, 9:13:20 AM11/6/15
to Fujitsu RunMyProcess Developer Community, freal...@gmail.com
Hi.
Thank you very much Sweta.
I'm sorry I didn't know.
Now, I just have trial version to know the power of application. If I like, I will pay a licence, don't worry.
Regards.
Reply all
Reply to author
Forward
0 new messages