Error deploying HTTP Connector model from Modeler

Hi guys,

Camunda 7.16, Modeler 4.11.1

I am looking at the HTTP Connector sample from camunda-bpm-examples/invokeRestService.bpmn at 7.16 · camunda/camunda-bpm-examples · GitHub

Trying to deploy from the Modeler and getting the infamous

ENGINE-09005 Could not parse BPMN process. Errors:

  • One of the attributes ‘class’, ‘delegateExpression’, ‘type’, or ‘expression’ is mandatory on serviceTask. | resource invokeRestService.bpmn | line 7 | column 75 [ deploy-error ]

I use the “official” distribution which I am told includes the connectors and I believe that to be true as I can see this in the log:

INFO 23084 — [ main] org.camunda.bpm.connect : CNCT-01004 Discovered provider for connector id ‘http-connector’ and class ‘org.camunda.connect.httpclient.impl.HttpConnectorImpl’: ‘org.camunda.connect.httpclient.impl.HttpConnectorProviderImpl’

I looked everywhere but I am at a loss as to how to fix this issue. I saw a comment from Niall somewhere that the error message is self-explanatory, so I must be a bit thick as whatever I tried in the XML (though would have expected the Modeler to generate proper BPMN syntax) failed.

Any help is greatly appreciated.

Thanks,
Simi

Hi @slegian ,

the magic is that you will need this dependency to make it work:

  <dependency>
    <groupId>org.camunda.bpm</groupId>
    <artifactId>camunda-engine-plugin-connect</artifactId>
  </dependency>

As far as I know, Connectors can be registered to the engine, but without the plugin (which changes the parsing), the Connectors will not work.

I hope this does the trick.

Jonathan

Sorry Jonathan, new to Camunda, where do I add that dependency? I am simply using the platform runtime and the Modeler, have a very basic workflow with an HTTP connector task, thought it would “just work”…

Cheers,
Simi

Hello @slegian ,

assuming that you use the Run distro, as this is our default: Please have a look at this thread:

That might point you to the right direction.

Jonathan

Thanks @jonathan.lukas

Took me a while to get it working, the connectors alone did not help, had to include camunda-engine-plugin-connect-7.16.0.jar. Here’s a screenshot of what you need in case others come across it:

2022-01-05 11_50_34-Clipboard

And by the way, you can get all the jar files from Maven Repository (https://mvnrepository.com/artifact/org.camunda.connect)

Cheers,
Simi

1 Like