kandi background
Explore Kits

camunda-bpm-mail | Mail connectors for Camunda BPM | BPM library

 by   camunda Java Version: 1.3.0 License: Apache-2.0

 by   camunda Java Version: 1.3.0 License: Apache-2.0

Download this library from

kandi X-RAY | camunda-bpm-mail Summary

camunda-bpm-mail is a Java library typically used in Automation, BPM, Spring Boot, Docker applications. camunda-bpm-mail has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. However camunda-bpm-mail has 5 bugs. You can download it from GitHub, Maven.
A community extension for Camunda BPM to integrate emails in a process and interact with them.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • camunda-bpm-mail has a low active ecosystem.
  • It has 44 star(s) with 47 fork(s). There are 24 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 10 open issues and 19 have been closed. On average issues are closed in 167 days. There are no pull requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of camunda-bpm-mail is 1.3.0
camunda-bpm-mail Support
Best in #BPM
Average in #BPM
camunda-bpm-mail Support
Best in #BPM
Average in #BPM

quality kandi Quality

  • camunda-bpm-mail has 5 bugs (0 blocker, 0 critical, 1 major, 4 minor) and 43 code smells.
camunda-bpm-mail Quality
Best in #BPM
Average in #BPM
camunda-bpm-mail Quality
Best in #BPM
Average in #BPM

securitySecurity

  • camunda-bpm-mail has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • camunda-bpm-mail code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
camunda-bpm-mail Security
Best in #BPM
Average in #BPM
camunda-bpm-mail Security
Best in #BPM
Average in #BPM

license License

  • camunda-bpm-mail is licensed under the Apache-2.0 License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.
camunda-bpm-mail License
Best in #BPM
Average in #BPM
camunda-bpm-mail License
Best in #BPM
Average in #BPM

buildReuse

  • camunda-bpm-mail releases are available to install and integrate.
  • Deployable package is available in Maven.
  • Build file is available. You can build the component from source.
  • Installation instructions, examples and code snippets are available.
  • It has 2725 lines of code, 221 functions and 57 files.
  • It has medium code complexity. Code complexity directly impacts maintainability of the code.
camunda-bpm-mail Reuse
Best in #BPM
Average in #BPM
camunda-bpm-mail Reuse
Best in #BPM
Average in #BPM
Top functions reviewed by kandi - BETA

Coming Soon for all Libraries!

Currently covering the most popular Java, JavaScript and Python libraries. See a SAMPLE HERE.
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.

camunda-bpm-mail Key Features

send mail

poll mails

delete mails

react on incoming mails

For Embedded Process Engine

copy iconCopydownload iconDownload
<dependency>
  <groupId>org.camunda.bpm.extension</groupId>
  <artifactId>camunda-bpm-mail-core</artifactId>
  <version>1.2.0</version>
</dependency>

How to use it?

copy iconCopydownload iconDownload
<serviceTask id="sendMail" name="Send Mail Task">
  <extensionElements>
    <camunda:connector>
      <camunda:connectorId>mail-send</camunda:connectorId>
      <!-- input / output mapping -->
    </camunda:connector>
  </extensionElements>
</serviceTask>

React on incoming Mails

copy iconCopydownload iconDownload
MailNotificationService notificationService = new MailNotificationService(configuration);

notificationService.registerMailHandler(mail -> {
  runtimeService.startProcessInstanceByKey("process",
    Variables.createVariables().putValue("mail", mail));
});

notificationService.start();

// ...

notificationService.stop();

How to configure it?

copy iconCopydownload iconDownload
# send mails via SMTP
mail.transport.protocol=smtp

mail.smtp.host=smtp.gmail.com
mail.smtp.port=465
mail.smtp.auth=true
mail.smtp.ssl.enable=true
mail.smtp.socketFactory.port=465
mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory

# poll mails via IMAPS
mail.store.protocol=imaps

mail.imaps.host=imap.gmail.com
mail.imaps.port=993
mail.imaps.timeout=10000

# if peek = false then the polled mails are marked as read
mail.imaps.peek=false

# additional config
mail.poll.folder=INBOX
mail.sender=USER@google.com
mail.sender.alias=User Inc

mail.attachment.download=true
mail.attachment.path=attachments

# credentials
mail.user=USER@gmail.com
mail.password=PASSWORD

Community Discussions

Trending Discussions on BPM
  • Camunda embedded with H2: Cockpit Login fails
  • Plot line from dataframe
  • Camunda Application not starting up on docker container
  • Renaming some part of columns of dataframe with values from another dataframe
  • How to separate Camunda tables to a different schema?
  • How to convert json MySQL data into rows and column
  • Using pyaudio to build a Metronome; wrong timing
  • Why am I getting "Error processing transaction request: intrinsic gas too low" error when trying to add tUSDT to a particular account?
  • getting a KeyNotFoundException on a key that appears to exist in a dictionary
  • Webaudio timing performance
Trending Discussions on BPM

QUESTION

Camunda embedded with H2: Cockpit Login fails

Asked 2022-Mar-09 at 08:50

I'm currently wokring on a product with the following conditions:

  • Spring-Boot (2.6) with Camunda embedded (7.16)
  • Connection to Camunda configured to use H2 (2.1.210) embedded with the following is configured in application.yml:
app:
  datasource-camunda:
    jdbcUrl: jdbc:h2:./h2/test;MODE=LEGACY
camunda:
  bpm:
    database:
      schema-update: true
    auto-deployment-enabled: true

and as Java-Configuration:

@Bean("camundaBpmDataSource")
@ConfigurationProperties
public DataSource camundaDataSource() {
  return DataSourceBuilder.create().build();
}

@Bean
public PlatformTransactionManager camundaBpmTransactionManager(DataSource datasource) {
  return new DataSourceTransactionManager(datasource)
}

The camunda engine is not configured explicitly since I used the appropriate starter and let Spring auto configured it. As a result the resulting setup should look very similar to the embedded camunda h2 configuration showed here: https://docs.camunda.org/get-started/spring/embedded-process-engine/

The application runs good with this setup. No problems with the application at all, but I faced an issue while logging in to the camunda cockpit. Login succeeds but then I see an error in the login mask saying:

Login Failed

An exception occured in the persistence layer. Please check the server logs for a detailed message and the entire exception stack trace



Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Unbekannter Datentyp: "?2"

Unknown data type: "?2"; SQL statement:

SELECT

    CASE

 

     

       

        WHEN

          

           

          EXISTS

          

            (SELECT

                    A.RESOURCE_ID_

             FROM

                    ACT_RU_AUTHORIZATION A

             WHERE

                    A.TYPE_ = 1

             AND

                    A.USER_ID_ = ?

             AND

                    BITAND(A.PERMS_,?) = ?

             AND

                    A.RESOURCE_TYPE_ = ?

             AND

                    A.RESOURCE_ID_ =  ? )

        THEN 1

      

 

     

       

 

     

      WHEN

        EXISTS

          (SELECT

                  ID_

           FROM

                  ACT_RU_AUTHORIZATION A

           WHERE

                  A.TYPE_ = 1

           AND

                  A.USER_ID_ = ?

           AND

                  BITAND(A.PERMS_,?) = ?

           AND

                  A.RESOURCE_TYPE_ = ?

           AND

                  A.RESOURCE_ID_ = '*')

        THEN 1

 

     

       

 

      ELSE

          (

          SELECT

            CASE

              

 

               

                 

                  WHEN

                    

                     

                    EXISTS

                    

                      (SELECT

                              A.RESOURCE_ID_

                       FROM

                              ACT_RU_AUTHORIZATION A

                       WHERE

                              A.TYPE_ = 1

                       AND

                              A.GROUP_ID_ IN  (  ? )

                       AND

                              BITAND(A.PERMS_,?) = ?

                       AND

                              A.RESOURCE_TYPE_ = ?

                       AND

                              A.RESOURCE_ID_ =  ? )

                  THEN 1

                

 

               

                 

 

               

                WHEN

                  EXISTS

                    (SELECT

                            ID_

                     FROM

                            ACT_RU_AUTHORIZATION A

                     WHERE

                            A.TYPE_ = 1

                     AND

                            A.GROUP_ID_ IN  (  ? )

                     AND

                            BITAND(A.PERMS_,?) = ?

                     AND

                            A.RESOURCE_TYPE_ = ?

                     AND

                            A.RESOURCE_ID_ = '*')

                  THEN 1

 

               

                 

 

                ELSE (

                      SELECT

                        CASE

              

                          

                           

                            WHEN

                              

                               

                              EXISTS

                              

                                (SELECT

                                        A.RESOURCE_ID_

                                 FROM

                                        ACT_RU_AUTHORIZATION A

                                 WHERE

                                        A.TYPE_ = 0

                                 AND

                                        A.USER_ID_ = '*'

                                 AND

                                        BITAND(A.PERMS_,?) = ?

                                 AND

                                        A.RESOURCE_TYPE_ = ?

                                 AND

                                        A.RESOURCE_ID_ =  ? )

                            THEN 1

                          

 

                         

                           

 

                         

                          WHEN

                            EXISTS

                              (SELECT

                                      ID_

                               FROM

                                      ACT_RU_AUTHORIZATION A

                               WHERE

                                      A.TYPE_ = 0

                               AND

                                      A.USER_ID_ = '*'

                               AND

                                      BITAND(A.PERMS_,?) = ?

                               AND

                                      A.RESOURCE_TYPE_ = ?

                               AND

                                      A.RESOURCE_ID_ = '*')

                            THEN 1

 

                          

                           

 

                         

                          ELSE

                          

                           

                            null

                          

 

              

                        END

                )

              

            END

      )

    END [50004-210]

            at org.h2.message.DbException.getJdbcSQLException(DbException.java:573) ~[h2-2.1.210.jar:2.1.210]

            at org.h2.message.DbException.getJdbcSQLException(DbException.java:496) ~[h2-2.1.210.jar:2.1.210]

            at org.h2.message.DbException.get(DbException.java:227) ~[h2-2.1.210.jar:2.1.210]

I already took a look into the database and saw all tables where created sucesfully, so does anybody faced a similar issue?

ANSWER

Answered 2022-Mar-09 at 08:50

Remove the "MODE=LEGACY" from the url. Here is a working example:

https://github.com/rob2universe/vanilla-camunda-template/blob/4625376bf3a5eed9cd1f2853cdf07fe5eca46685/src/main/resources/application.yaml#L17

Also ensure you use a supported H2 version. That is 1.4.x fro 7.16.x: https://docs.camunda.org/manual/7.16/introduction/supported-environments/

The BOM will inclcude H2 1.4.200.

Source https://stackoverflow.com/questions/71391717

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install camunda-bpm-mail

Camunda BPM >= 7.5.0
Java 8

Support

Found a bug? Please report it using Github Issues. Want to extend, improve or fix a bug in the extension? Pull Requests are very welcome. Want to discuss something? The Camunda Forum might be the best place for it.

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

Share this Page

share link
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.