Java engine API to import Organization

Hi experts,

I’m trying to build a java program that executes this code from the doc to import an organization:

final pOrganizationResourceName = "path/ACME.xml" final File orgFile = FileUtils.toFile(getClass().getResource(pOrganizationResourceName)); final String orgContent = FileUtils.readFileToString(orgFile, CharEncoding.UTF_8); getIdentityAPI().importOrganization(orgContent);

I’ve added maven dependency as indicated in doc, and running maven I get all jar libraries:


org.bonitasoft.engine
bonita-client
7.0.0

But still don’t know exactly which imports are needed.

Can you please, help?

Aren’t you using IDE with import suggestions? IDE’s like Intelij Idea will tell you how to set import section. Also take a look on http://documentation.bonitasoft.com/create-your-first-project-engine-apis-and-maven-0 where you find how to connect to Bonita API.