Repository Service

It is also possible to access the BPMN model instance by the process definition id using the Repository Service, as the following incomplete test sample code shows. Please see the generate-jsf-form quickstart for a complete example.

public void testRepositoryService() {
  String processDefinitionId = repositoryService.createProcessDefinitionQuery()
  BpmnModelInstance modelInstance = repositoryService.getBpmnModelInstance(processDefinitionId);

On this Page: