use of org.kie.workbench.common.forms.jbpm.model.authoring.JBPMProcessModel in project kie-wb-common by kiegroup.
the class BPMFinderServiceImpl method parseToModel.
private JBPMProcessModel parseToModel(final Definitions definitions, final Path path) {
BusinessProcessFormModel processFormModel = bpmnFormModelGenerator.generateProcessFormModel(definitions, path);
List<TaskFormModel> taskModels = bpmnFormModelGenerator.generateTaskFormModels(definitions, path);
return new JBPMProcessModel(processFormModel, taskModels);
}
use of org.kie.workbench.common.forms.jbpm.model.authoring.JBPMProcessModel in project kie-wb-common by kiegroup.
the class BPMFinderServiceImplTest method testFindProcess.
protected void testFindProcess(String processId, int expectedTasks) {
JBPMProcessModel model = bpmFinderService.getModelForProcess(processId, currentModulePath);
assertNotNull(model);
assertNotNull(model.getProcessFormModel());
assertEquals(processId, model.getProcessFormModel().getProcessId());
assertEquals(expectedTasks, model.getTaskFormModels().size());
}
Aggregations