Enabling the process

1
0
-1

Dear,

I managed to deploy my file "*. Bar".

My question is because I need to enable the process.

I'm doing the following:

....    0) BusinessArchive businessArchive = BusinessArchiveFactory.readBusinessArchive(new File("c:\myFileBar.bar"));

1) APISession sessionAPI = loginAPI.login ("install", "install");

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

3) Final ProcessDefinition processDefinition = processAPI.deploy(businessArchive); System.out.println ("Sucess");

4) 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?

1 answer

1
0
-1

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,

Notifications