Get "java.lang.reflect.MalformedParameterizedTypeException" when trying to use Microspft Graph class

I have created a working connector in Bonita to send a chat message in Microsoft Team. The code is writen in Java code.

However, the only way I can use it is by creating a connector call in Execution > Connection In/Out. If I try to call the connector directly in Groovy script, I got error said that Bonita unable to see the class of the Microsoft Graph Connector.

Therefore, I am converting the Java code to Groovy script. When I run it, I got "java.lang.reflect.MalformedParameterizedTypeException".

I m using the newest Microsoft Graph's jar files, and my Bonita version is 7.11.3.

Is the Groovy script version of my Bonita is incompatible to the Microsoft Graph's jar files?

Hi,

Did you add all the transitive dependencies of Microsoft Graph in your process Java dependencies ?
I recommend implementing a custom connector to better integrate it in your process.