Java engine API to import Organization

1
0
-1

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:

<dependency>
    <groupId>org.bonitasoft.engine</groupId>
    <artifactId>bonita-client</artifactId>
   <version>7.0.0</version>
</dependency>

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

Can you please, help?

1 answer

1
0
-1

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-api... where you find how to connect to Bonita API.

Notifications