Skip to main content
March 11, 2022
Question

Integration inside a process called in a web API

  • March 11, 2022
  • 21 replies
  • 0 views

Hello,

I have been struggling with an issue for almost 2 days so far.

I have an integration in a process that is triggered by a web API.

I am repeating this integration up to 5 times the response was not successful.

In the case where the response of the integration is successful in the first time, I am getting back the required response that is a json format that I am indexing from a process variable.

In the case where the integration is repeated twice or more, the response I am getting back is empty as if the process variable was returned as a null value.

The response i am indexing is the variable where I am saving the httpresponse from the integration.

So again, if integration goes through from the first time, the response is filled, if it goes through on the second time or more, the response is empty as if the web API only considered the first value saved in the variable where i am saving the httpresponse and it's not updating it; and when i check the process variables, i can see that the process variable is filled properly.

Any ideas or any suggestions on how to resolve this?

This is the response I am getting when the integration is happening twice or more:

{

    "statusLine""",
    "statusCode"null,
    "headers"null,
    "contentType""",
    "body"null

}

when it's successful on the first trial, i am getting the below which is what we are expecting:

{
"statusLine": "HTTP/1.1 200 OK",
"statusCode": 200,
"headers": {
"Content-Type": "application/json; charset=UTF-8",
"Content-Length": "151",
"Date": "Fri, 11 Mar 2022 15:54:22 GMT",
"x-correlation-id": "c3021a2e-7dc7-455f-95ce-a415a51b2c98",
"Connection": "Keep-Alive"
},
"contentType": "application/json; charset=UTF-8",
"body": {
"id": "1031913250000200",
"statusComment": "Rejected By Bank -(Invalid ValueDate, Invalid Document Base 64 File)",
"statusCode": "1"
}
}
Thank you
Jean Michel

    21 replies

    March 11, 2022

    Are the inputs and outputs set correctly in the Integration Object's setup ? Can you paste the image of it here ?

    March 11, 2022

    Yes they are.

    mathieud0001
    March 11, 2022

    When you say "twice or more", how exactly are you running it multiple times? Via MNI? Just manually running with multiple nodes one after the other?

    March 12, 2022

    here you go

    stefanhelzle0001
    March 12, 2022

    A timer event will always break the chaining.

    harshitb6843
    March 12, 2022

    Hi there,

    Looks like an activity chaining issue. Can you post the screenshot of the process model? 

    March 12, 2022

    i have activity chaining enabled

    October 13, 2023

    @jeanmichelm0001

    I have a same problem and how did you solve it?

    stefanhelzle0001
    October 13, 2023

    Can you elaborate on that "same problem"?

    October 13, 2023