I'm creating a new Composite API with two activities, both are connector type.
The idea is to obtain a P_status.code = 200 or 404 from first activity and depending on this result continue to the second activity or go to event end.
The problem here is that when the connector returns a 404, the Composite API throws a 503.
I'm trying to treat the status code on the output variables of the first activity with this code but is not working:
<#assign status = "KO">
<#if P_status.code != 200>
<#assign P_result=P_status.code>
</#if>
<#if P_result??>
<#if P_result.result??>
<#assign status = "OK">
</#if>
</#if>
${status}
Is there something wrong?
How or where can I do a treatment for this requirement?
Thanks!
--
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/cf369470-5c27-452a-80e7-e3ba456047dd%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.
Hi Javier,Sorry for delay in response.You can use error handling mechanism in CAPI to handle error.For this you need to click on activity & drag symbol & do the configuration as shown in attached image.So if we get an error in connector then it will be handled & executes CAPI without throwing 503 error.Please feel free to contact us if you have any queries.regards,GhanshyamFujitsu RunMyProcess Support
Thanks for your response!
I cannot check this solution at the moment, but it seems to be that I was looking for.
Thanks again!