Mail : Could not parse BPMN process

If the connector and mail plugin have been loaded correctly, then you should see this during startup:

2019-10-23 16:47:05.804  INFO 40540 --- [  restartedMain] org.camunda.bpm.connect                  : CNCT-01004 Discovered provider for connector id 'mail-send' and class 'org.camunda.bpm.extension.mail.send.SendMailConnector': 'org.camunda.bpm.extension.mail.send.SendMailProvider'
2019-10-23 16:47:05.805  INFO 40540 --- [  restartedMain] org.camunda.bpm.connect                  : CNCT-01004 Discovered provider for connector id 'mail-poll' and class 'org.camunda.bpm.extension.mail.poll.PollMailConnector': 'org.camunda.bpm.extension.mail.poll.PollMailProvider'
2019-10-23 16:47:05.806  INFO 40540 --- [  restartedMain] org.camunda.bpm.connect                  : CNCT-01004 Discovered provider for connector id 'mail-delete' and class 'org.camunda.bpm.extension.mail.delete.DeleteMailConnector': 'org.camunda.bpm.extension.mail.delete.DeleteMailProvider'

The deployment error indicates that this may not yet be the case.
Are these dependencies included in your deployment?

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.camunda.bpm</groupId>
            <artifactId>camunda-bom</artifactId>
            <version>${camunda.version}</version>
            <scope>import</scope>
            <type>pom</type>
        </dependency>
    </dependencies>
</dependencyManagement>
<dependency>
    <groupId>org.camunda.bpm</groupId>
    <artifactId>camunda-engine-plugin-connect</artifactId>
</dependency>
<dependency>
    <groupId>org.camunda.connect</groupId>
    <artifactId>camunda-connect-core</artifactId>
</dependency>
<dependency>
    <groupId>org.camunda.bpm.extension</groupId>
    <artifactId>camunda-bpm-mail-core</artifactId>
    <version>1.2.0</version>
</dependency>

Does your process.xml contain the plugin entry (not required when using Camunda Spring Boot Starter) ?

<process-application xmlns="http://www.camunda.org/schema/1.0/ProcessApplication">
    <process-engine name="default"> <configuration>org.camunda.bpm.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration</configuration>
        <plugins>
            <plugin>
                <class>org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin</class>
            </plugin>
        </plugins>
    </process-engine>
</process-application>

Thanks for posting. It helped!

Just had the same issue and found the solution for those, who use spring-boot starter and initiate camunda spring beans manually:

POM

   ...
    <dependency>
        <groupId>org.camunda.bpm</groupId>
        <artifactId>camunda-engine-plugin-connect</artifactId>
    </dependency>
    <dependency>
        <groupId>org.camunda.connect</groupId>
        <artifactId>camunda-connect-core</artifactId>
    </dependency>
    <dependency>
        <groupId>org.camunda.bpm.extension</groupId>
        <artifactId>camunda-bpm-mail-core</artifactId>
        <version>1.3.0</version>
    </dependency>
   ...

Bean configuration:

@Bean
fun engineConfiguration(
    @Value("classpath:/processes/*.bpmn") deploymentResources: Array<Resource>
): SpringProcessEngineConfiguration {
     val configuration = SpringProcessEngineConfiguration()
     configuration.processEngineName = "engine"
     configuration.databaseSchemaUpdate = "true"
     configuration.isJobExecutorActivate = false
     configuration.dataSource = dataSource
     configuration.transactionManager = DataSourceTransactionManager(dataSource)
     configuration.deploymentResources = deploymentResources
     configuration.processEnginePlugins.add(ConnectProcessEnginePlugin()) // this one is important
     return configuration
}
1 Like

Thank you for posting this solution @vicmosin! I opened an issue in the repository referencing it if you would be interested in opening a pull request detailing the above POM and bean configuration. :slight_smile:

This was very helpful of you and much appreciated for others facing this issue, I’m sure!

1 Like

Thank You! It helped. :smiley:

Hey vicmosin,

where do I have to insert the bean configuration? (which file)

I guess the one where all of your beans defined :slight_smile:
Usually it’s the class which is annotated with @Condiguration

Hm, so I went through again and Ctrl + Shift + F also did not find it in the project :sweat_smile:
But maybe it’s also because of the time, I’ll check again on Monday.

By the way, I use IntelliJ an I’m a newbie when it comes to (Camunda &) Spring Boot. Maybe I have just forgotten to implement something :smiley:

Thanks but already once :slight_smile: