I am unable to use http-connector Need help

I want my flow to use multiple connector I have implements everything in camunda inputs ,outputs and process is also running but I am unable to see Any thing in cockpit nor the process instance not anything


process.bpmn (7.8 KB)

Hi @MohitSinghSolanki-A

  • Try defining variable mappings in the Inputs section so that they are available for Connector inputs

  • When starting a new instance, ensure that values for both token and userId are supplied.

process.bpmn (8.3 KB)
updated bpmn using still same thing


My Payload - {
“variables”: {
“userId”: {
“value”: “fjAZFWK81zygIxSDxmrLw”,
“type”: “String”
},
“sr_id”: {
“value”: “66d58e83c27213adb47bf8d1”,
“type”: “String”
},
“token”: {
“value”: “eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJhVVNzVzhHSTAzZHlRMEFJRlZuOTIiLCJkX3R5cGUiOiJ3ZWIiLCJkaWQiOiJhZGE2OTk5YS1iNGNmLTQxNTktOGM5MS00NTRiMjBjYmRmYjAiLCJlX2lkIjoiOTU2Njk5Nzg2IiwiZXhwIjoxNzI5NTkxMzg4LCJpYXQiOiIyMDI0LTEwLTIxVDEwOjAzOjA4LjQ5NTQxNTY4WiIsImlzcyI6ImF1dGhlbnRpY2F0aW9uLmFsbGVuLXNhbmRib3giLCJpc3UiOiIiLCJwdCI6IklOVEVSTkFMX1VTRVIiLCJzaWQiOiI2YzRiYTMyNy00YWE0LTQ1NDMtOWFlYy0xNTQzYjU2MDFlN2EiLCJ0aWQiOiJhVVNzVzhHSTAzZHlRMEFJRlZuOTIiLCJ0eXBlIjoiYWNjZXNzIiwidWlkIjoiNldkWHVzVlNkY0NNUHBXZndIczN6In0.vq35tub24UwyEww9CbA224-rQ28uvgk4Zh013DEadmU”,
“type”: “String”
},
“requestDetails”: {
“value”: “{"email": "mohit.solanki@profit.in", "phoneNumber": "9123233943", "full_name": "Rony Singh Solanki"}”,
“type”: “String”
},
“responseData”: {
“value”: 200,
“type”: “Integer”
}
}
}

Hi @MohitSinghSolanki-A

As you are trying from the modeler, the payload shouldn’t include the variables attribute so it should be as follows

{
  "userId": {
    "value": "fjAZFWK81zygIxSDxmrLw",
    "type": "String"
  },
  "sr_id": {
    "value": "66d58e83c27213adb47bf8d1",
    "type": "String"
  },
  "token": {
    "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJhVVNzVzhHSTAzZHlRMEFJRlZuOTIiLCJkX3R5cGUiOiJ3ZWIiLCJkaWQiOiJhZGE2OTk5YS1iNGNmLTQxNTktOGM5MS00NTRiMjBjYmRmYjAiLCJlX2lkIjoiOTU2Njk5Nzg2IiwiZXhwIjoxNzI5NTkxMzg4LCJpYXQiOiIyMDI0LTEwLTIxVDEwOjAzOjA4LjQ5NTQxNTY4WiIsImlzcyI6ImF1dGhlbnRpY2F0aW9uLmFsbGVuLXNhbmRib3giLCJpc3UiOiIiLCJwdCI6IklOVEVSTkFMX1VTRVIiLCJzaWQiOiI2YzRiYTMyNy00YWE0LTQ1NDMtOWFlYy0xNTQzYjU2MDFlN2EiLCJ0aWQiOiJhVVNzVzhHSTAzZHlRMEFJRlZuOTIiLCJ0eXBlIjoiYWNjZXNzIiwidWlkIjoiNldkWHVzVlNkY0NNUHBXZndIczN6In0.vq35tub24UwyEww9CbA224-rQ28uvgk4Zh013DEadmU",
    "type": "String"
  },
  "requestDetails": {
    "value": "{\"email\": \"mohit.solanki@profit.in\", \"phoneNumber\": \"9123233943\", \"full_name\": \"Rony Singh Solanki\"}",
    "type": "String"
  },
  "responseData": {
    "value": 200,
    "type": "Integer"
  }
}

Notice: requestDetails contains a json object inside a string so escaping is required

I tried response.status but it is not accepting it as a value both from outputs and all but not able to get the process started

Did you remove variables attribute from the start instance payload? Could you please share a screen shot of the start instance window?

{
“userId”: {
“value”: “fjAZFWK81zygIxSDxmrLw”,
“type”: “String”
},
“sr_id”: {
“value”: “66d58e83c27213adb47bf8d1”,
“type”: “String”
},
“token”: {
“value”: “eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJhVVNzVzhHSTAzZHlRMEFJRlZuOTIiLCJkX3R5cGUiOiJ3ZWIiLCJkaWQiOiJhZGE2OTk5YS1iNGNmLTQxNTktOGM5MS00NTRiMjBjYmRmYjAiLCJlX2lkIjoiOTU2Njk5Nzg2IiwiZXhwIjoxNzI5NTkxMzg4LCJpYXQiOiIyMDI0LTEwLTIxVDEwOjAzOjA4LjQ5NTQxNTY4WiIsImlzcyI6ImF1dGhlbnRpY2F0aW9uLmFsbGVuLXNhbmRib3giLCJpc3UiOiIiLCJwdCI6IklOVEVSTkFMX1VTRVIiLCJzaWQiOiI2YzRiYTMyNy00YWE0LTQ1NDMtOWFlYy0xNTQzYjU2MDFlN2EiLCJ0aWQiOiJhVVNzVzhHSTAzZHlRMEFJRlZuOTIiLCJ0eXBlIjoiYWNjZXNzIiwidWlkIjoiNldkWHVzVlNkY0NNUHBXZndIczN6In0.vq35tub24UwyEww9CbA224-rQ28uvgk4Zh013DEadmU”,
“type”: “String”
},
“requestDetails”: {
“value”: “{"email": "mohit.solanki@profit.in", "phoneNumber": "9123233943", "full_name": "Rony Singh Solanki"}”,
“type”: “String”
},
“responseData”: {
“value”: 200,
“type”: “Integer”
}
}

Sorry Uploaded wrong SS this is now what I am getting

Hi @MohitSinghSolanki-A

A separate connector output is required for the statusCode


I have a question we are recieving status from the api when it gives us 200 as a response so how can we access that normally we do response.status.


as in the ss

tried your way but getting unknow $


{status}

My instance is now created by I am unable to view my instance in Cockpit

Hi @MohitSinghSolanki-A

As all steps are automated tasks (no waiting states “user tasks or catch messages…”), execution will continue to the end so no running instances to show in the Runtime view which is the only available view in the cockpit of the community edition.

I have a question like in camunda 8 all we can view things in optimize is there any way we can view same things in camunda 7

Enterprise edition has both views Runtime and History
Alternatively, you can use the following community cockpit plugin

1 Like

Is it stable for 7.21 version


Tried Installing plugin but I thinking I might be doing something wrong

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