Deployment error while using a http connector

Hi @Kishore,

please doublecheck the version number on Maven central. My local repository contains version 1.2.2.

Hope this helps, Ingo

Hi @Ingo_Richtsmeier ,

I have attached a sample bpmn file. I took this example from the camunda forum. When i try to deploy it. I am getting the below error.I did not make any change to it.

kishore_test.bpmn (7.1 KB)

ENGINE-09005 Could not parse BPMN process. Errors:

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

@Kishore since you are using camunda springboot starters you need to register the connector plugin to the process engine plugins.

Refer this post to configure the Process Engine Plugin as Java config:

If you are using xml config then register the connector plugin as like:

<process-engine name="default">
    ...
    <plugins>
      <plugin>
        <class>org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin</class>
      </plugin>
    </plugins>
Configure the Process Engine Plugin

Connectors | docs.camunda.org

Hi @aravindhrs

So I have to add the below plugin to the pom.xml file right ??

... org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin

Is this enough or should I have to add any connector dependcies to the pom.xml file ??

Hi @aravindhrs,

The plugins which you have mentioned…Is that alone enough ??

How do you bootstrapping the processengine?

processengine bootstrapping should be either in JavaConfig or BpmPlatform.xml.

In pom.xml we will specify only the required dependencies.

Hi @aravindhrs,

Using the Rest API via POSTMAN client , I am starting the process instance

Check this one

Hi @aravindhrs,

Can you show any samples of how to add a connector in moduler and how to use it.Any samples of yours , a basic one will help me a lot. As I am new to Camunda…I am bit confused on this.

@Kishore it could be better if you upload your work in github and share the link, would be easier to debug the issue.

Hi @aravindhrs,

Can you tell me how to bootstrap the process.
I have not seen anything like javaconfig or Bpmplatform.xml

are you using processes.xml file in src/resources/META-INF folder?

Under my resources folder , I only have those folder , which I have shared in the image

1 Like

Hi @aravindhrs,

Actually I am first trying to execute the bpmn file which was shared in the forum to understand the process of connectors and how to use them to connect to an External Rest API.
I attached the configured sample bpmn file in my above chat

Can you provide the contents of application.yml and your java class which has main method.

under application.yml

spring.datasource.url: jdbc:h2:file:./camunda-h2-database

camunda.bpm.admin-user:
id: demo
password: demo

under src/main/java/com.example.workflow/Application

package com.example.workflow;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Application {

public static void main(String[] args) {
SpringApplication.run(Application.class);
}

}

okay. i will check thats. if you would like to join @Niall Q&A session, join here https://attendee.gotowebinar.com/register/5565262072642001419. it will be useful for you.

Okay…thank you so much

@Kishore, from your main class this annotation is missing @EnableProcessApplication.

package com.example.workflow;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@EnableProcessApplication
@SpringBootApplication
public class Application {
   public static void main(String[] args) {
      SpringApplication.run(Application.class);
  }
}

Hi @aravindhrs,

Okay.so on adding @EnableProcessApplication

So what change does it make to our process