How can I call a composite api from an array

301 views
Skip to first unread message

com...@vaquerotrading.com

unread,
Dec 11, 2016, 11:52:14 AM12/11/16
to Fujitsu RunMyProcess Developer Community
Can you help me to know how can I call a composite api from an array

Murali

unread,
Dec 11, 2016, 1:11:12 PM12/11/16
to suppor...@runmyprocess.com, com...@vaquerotrading.com
Hi,

Please include the CAPI in your Web-interface/API Listener Tab and include the Javascript column in the array widget.

Below are the references from RunMyProcess userguide.

https://docs.runmyprocess.com/Developer_Guide/Composite_API/Composite_API_Example#web-interface
https://docs.runmyprocess.com/Developer_Guide/Web_Interface/Design/Summing_Array

Regards,
Murali
Fujitsu RunMyProcess Support

com...@vaquerotrading.com

unread,
Dec 14, 2016, 11:41:56 PM12/14/16
to Fujitsu RunMyProcess Developer Community, com...@vaquerotrading.com
I got this error when try to call the CAPI

zohodb_criteria="Slide"='${array.slide[P_index]}'

Error while processing zohodb_criteria
Expression P_index is undefined on line 1, column 24 in Get Slilde.

Murali

unread,
Dec 15, 2016, 12:06:56 AM12/15/16
to Fujitsu RunMyProcess Developer Community, com...@vaquerotrading.com
Hi,

Please confirm that you are trying to configure/execute the JS from Array widget/JS column and try to debug the code and verify the values by hard-coding 'P_index' initially.

Could you share the configurations and complete JS code if you are unable to resolve.

Regards,
Murali
Fujitsu runMyProcess Support

com...@vaquerotrading.com

unread,
Dec 20, 2016, 11:32:58 PM12/20/16
to Fujitsu RunMyProcess Developer Community, com...@vaquerotrading.com
On Wednesday, December 14, 2016 at 10:06:56 PM UTC-7, Murali wrote:
> Hi,
> This its the complete script of the APIListenerCompletedScript

function get_Slide(P_computed.BaseWeight,P_computed.Cents,P_computed.Pounds)

What its my error?

ApiListener - copia.PNG
ApiListener.PNG
ApiListenerCompleteScript.PNG
arraysaleSlideS - copia.PNG
arraysaleSlideS.PNG
arraysaleSlideScript.PNG
getSlideValues.PNG
getSlideValuesScript.PNG

Pankaj Kumar

unread,
Dec 25, 2016, 5:47:08 AM12/25/16
to Fujitsu RunMyProcess Developer Community, com...@vaquerotrading.com
Hi,

Please share the details where you have defined variable "sideVal" and error details you are getting (if any) in triggering the Composite API. Also please share complete screen-print rather than only the property box in order to understand your configuration more clearly.



Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

--
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/776769c1-0d98-44b3-a62c-24d77fec9653%40runmyprocess.com.

Reply all
Reply to author
Forward
0 new messages