Enabling the process

Dear,

I managed to deploy my file “*. Bar”.

My question is because I need to enable the process.

I’m doing the following:

  1. BusinessArchive businessArchive = BusinessArchiveFactory.readBusinessArchive(new File(“c:\myFileBar.bar”));

  2. APISession sessionAPI = loginAPI.login (“install”, “install”);

  3. ProcessAPI processAPI = TenantAPIAccessor.getProcessAPI (sessionAPI);

  4. Final ProcessDefinition processDefinition = processAPI.deploy(businessArchive);
    System.out.println (“Sucess”);

  5. 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?

Hi,

you can use the API to retrieve the list of dependencies not resolved:
org.bonitasoft.engine.api.ProcessManagementAPI.getProcessResolutionProblems(long processDefinitionId)

or access the portal in Administration view of the app you will see the list of dependencies not resolved: http://documentation.bonitasoft.com/apps#resolveanapp

Regards,