Hello! Please,
Do you know if the bonitaTools works in 6.3.2 community version?
I’ve had as a guide this answer, and the source from https://github.com/Bonitasoft-Community/Bonita-Tools, and the bonita’s documentation , but I had the following Engine error:
… depends on BonitaURLTools is neither defined in the script nor in dependencies
I need to create two URL links:
- One to the active process OVERVIEW page (just the form);
- Another to the archived process OVERVIEW page (just the form);
I’ve tried to use that codes too … but still not working …
a)
import org.bonitasoft.engine.bpm.flownode.ActivityInstance;
import org.bonitasoft.engine.bpm.process.ProcessDefinition;
StringBuffer buffer = new StringBuffer();
ProcessDefinition processDefinition = apiAccessor.getProcessAPI().getProcessDefinition(processDefinitionId);
ActivityInstance activityInstance = apiAccessor.getProcessAPI().getActivityInstance(activityInstanceId);
buffer.append(“http://”);
buffer.append(“localhost:8085”);
buffer.append(“/bonita/”);
buffer.append(“?ui=form”);
buffer.append(“#form=”);
buffer.append(processDefinition.getName());
buffer.append(“$recap&mode=”);
buffer.append(“form”);
buffer.append(“&instance=”);
buffer.append(processInstanceId);
buffer.append(“&recap=true”);
buffer.append(“&locale=en”);
return buffer.toString();
Error:
> depends on recap is neither defined in the script nor in dependencies.
b)
import org.bonitasoft.engine.bpm.flownode.ActivityInstance;
import org.bonitasoft.engine.bpm.process.ProcessDefinition;
StringBuffer buffer = new StringBuffer();
ProcessDefinition processDefinition = apiAccessor.getProcessAPI().getProcessDefinition(processDefinitionId);
ActivityInstance activityInstance = apiAccessor.getProcessAPI().getActivityInstance(activityInstanceId);
buffer.append(“http://”);
buffer.append(“localhost:8080”);
buffer.append(“/bonita/?ui=form&locale=en&theme=”);
buffer.append(processDefinitionId);
buffer.append(“#form=”);
buffer.append(processDefinition.getName());
buffer.append(“–”);
buffer.append(processDefinition.getVersion());
buffer.append(“–”);
buffer.append(activityInstance.getName());
buffer.append(“$recap&mode=form&task=”);
buffer.append(activityInstanceId);
return buffer.toString();
Error:
entry not found…
Thanks in advance!
Fabi ;o}