custom connector vs custom library development

I got a bit confused to understand the difference between custom connectors and custom library development.

Is custom library like jars with my custom reusable code  which I can create and deploy in Bonita studio which would then be available to use as java api after imports for java codes to be written under Bonita studio code editors for conditions or again in conectores or operations or contracts like anyplace where code login can written in Bonita Studio? 

Hi

Yes, you can develop a java library using maven convention and consume them in a Bonita project. Once installed in a project, you can resuse your custom library in process scripts (conditions, operations, connectors inputs…etc).

Custom connectors are the same thing but follow a Bonita specific implementation. Connectors are meant to be reusable from one process to another and they can be easily integrated in a process using a UI model.

HTH
Romain