Replies: 1 comment 5 replies
-
|
Hi @cfrelet ,
Regarding the input issue, feel free to send me a (simplified) project that demonstrates the issue. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
The goal of my workflow is to perform an asynchronous activity.
We receive input from a http post which includes a callback url. We reply an correlation id of the current treatment, continue and post the result on the callback url provided by the user.
Here is the following activity I have:
1- HttpEndpoint - POST

2- SetVariable that store the post into a variable named quoteRequestInput. (Your example show to use "input.Body", but it can work just with "input" I think)

3- Custom Activity named GetCorrelationId that generate a unique ID and send it back to the caller that did the POST.

I tried to name the activity to be able to use it's output in the next activity as I have issue to catch it just writing "input". I seem to get the original post 1 activity input.
The code include something simple here:
4- WriteHttpResponse that send back the Correl ID "1234abcd".

I tried both JV and Liquid, but both seem to fail.
5- Last activity that take the httpPost input and do something and post it to a callback URL

I seem to be able to get the correct data from quoteRequestInput, so all good here.
So 2 questions:
1- How can I catch the output of my GetCorrelationId activity named CorrelationIdOuput (step 3) in my WriteHttpResponse (step 4) ? I don't seem to be able to do it even if follow your tutorial.
2- It seems that the output WriteHttpResponse is sent after execution of activity 5, so it's not really asynchronous here... which is the goal. How can I reply to the original post before the all workflow is executed?
Beta Was this translation helpful? Give feedback.
All reactions