Dear,
I managed to deploy my file “*. Bar”.
My question is because I need to enable the process.
I’m doing the following:
…
-
BusinessArchive businessArchive = BusinessArchiveFactory.readBusinessArchive(new File(“c:\myFileBar.bar”));
-
APISession sessionAPI = loginAPI.login (“install”, “install”);
-
ProcessAPI processAPI = TenantAPIAccessor.getProcessAPI (sessionAPI);
-
Final ProcessDefinition processDefinition = processAPI.deploy(businessArchive);
System.out.println (“Sucess”); -
System.out.println (“Enabling the process”);
try {
5) processAPI.enableProcess(processDefinition.getId ());
}
cath (Exception e) {
6) System.out.println (“Error”);
}
When I try to enable the process (Line 5) is occurring the following Exception:
org.bonitasoft.engine.core.process.definition.exception.SProcessEnablementException (XXX Process with version 1.0 can not be enabled since all dependencies are not resolved yet).
What are these dependencies? How do I resolve these dependencies?