How can one REST Connector recieve payload

Hello Everyone,
New in this forum and Camunda world. I am writing BPMN model in Camunda8. My use case was to invoke the flow and do some orchestration. But I am stuck at the very first point.
How to send payload (request body) to my REST Connector. I know there is one option in Modeler, but my payload will be dynamic.

The previous component before REST Connector is “Start Event” which I am triggering programmatically after deploying.

How am I triggering?


client.getClient().newCreateInstanceCommand()
                .bpmnProcessId("restAPIDemo")
                .latestVersion()
                .variables(application)
                .send()
                .join();

The request payload I have mentioned in modeler is

{
    "customername" : customername,
    "dob" : dob,
    "mobilenumber" : mobilenumber,
    "emailid" : emailid,
    "postcode" : postcode
}

and I see the same JSON in my Operate window.

I cant use Form before REST Connector.

If any info is missing to debug the issue, kindly revert.

Hi @jaikrat.singh !
First of all, welcome to our forum and our community :slight_smile:

Could you post your BPMN file, and maybe a screenshot of what you see in Operate?

Thank you!
Jonathan

Thanks Jon… I solved it reading some comment in one of the similar question in forum. What I had to is just to click on that little blue fx button which would change my JSON into FEEL Expression.

I was not able to answer or close my post since it was not approved.

Silly me :slight_smile:

Good to hear!

No worries, it probably means we need to make this a bit more explicit as well so we’re learning something as well.

Thank you for your feedback, have fun with Camunda :grinning:

Jonathan

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.