Composite api with connector task

263 views
Skip to first unread message

con...@ecotronicbr.com

unread,
Oct 1, 2014, 7:15:12 PM10/1/14
to suppor...@runmyprocess.com
Please,

I'm trying to create a composite api with a connector task.

Have any tutorial for this?

Best regards


Tejas Laddha

unread,
Oct 1, 2014, 9:58:41 PM10/1/14
to con...@ecotronicbr.com, suppor...@runmyprocess.com
Hi,

Please find the below- 

Hope this will be helpful to you.


Feel free to ask your doubts.

Thanks and Regards,
Tejas 



--
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/34c75204-74fc-4cf7-b5be-87124513981c%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

ADMINISTRADOR ECOTRONIC

unread,
Oct 3, 2014, 6:34:15 PM10/3/14
to Tejas Laddha, suppor...@runmyprocess.com
Hello, 


Can explain a little thing?

In the code of the exemple, 

<#assign account_id ="">
<#assign account_owner ="">
<#list P_result.response.result.Accounts.row.FL as x>   
    <#switch x.val>
        <#case "ACCOUNTID">
            <#assign account_id = x.content>
         <#break>
        <#case "Account Owner">     
            <#assign account_owner = x.content>
    </#switch>
</#list>
<#assign hub>
{"account_id":"${account_id}","account_owner":"${account_owner}"}
</#assign>
${hub}

the function <#list  P_result.response.result.Accounts.row as x> take the result (json) and put in x?

Accounts.row.FL is info from the api?

Can you explain me better this code?


Thanks a lot. 

Shobhit Tripathi

unread,
Oct 4, 2014, 7:14:03 AM10/4/14
to suppor...@runmyprocess.com
Hi,

"P_result.response.result.Accounts.row.FL as x". Yes, it takes result as a JSON format and temporarily stores in x (variable).

"P_result": is the result (JSON) of your current executed process (Composite API). This will contain all the fields result as per your requested query. So according to your requirement you need to use those value(s) as per result generated. Like here in "x" the result which stored in Accounts.row.FL you are only able to fetch through P_result. (Similar like, fetching result from Array indexes). So you have to use the above code.

Yes, this result will come from CAPI(Composite API).

Hope this will help you to understand better.

If you still having any doubt, please feel free to ask.

Thanks & Regards,
Shobhit
Fujitsu-RunMyProcess




--
Thanks & Regards,
Shobhit
Fujitsu- RunMyProcess
Reply all
Reply to author
Forward
0 new messages