title: Read Forms from BAR file - Flowable in code -
body: <p>I need an example of usign FormEngine. To be more especific....
  I'm executing code below - but there’s no forms found in my BAR file :(
  The BAR file was exported from Flowable Modeler and it contains one form and one process and app. Maybe there's other way to deploy and obtain forms...?</p>
  
  <pre class="lang-java prettyprint-override"><code>RepositoryService repositoryService = processEngine.getRepositoryService();
  FormRepositoryService formRepositoryService =  formEngine.getFormRepositoryService();
  File file = new File(path);
  
  
  ZipInputStream inputStream = new ZipInputStream(new FileInputStream(path));
  String idDeployParent = repositoryService.createDeployment()
                                           .name(file.getName())
                                           .addZipInputStream(inputStream)
                                           .deploy()
                                           .getId();
  
  DeploymentEntity deploymentEntity = (DeploymentEntity) repositoryService.createDeploymentQuery().list().get(0);
  
  formRepositoryService.createDeployment()
                       .name(file.getName())
                       .parentDeploymentId(idDeployParent)
                       .deploy();
  
  System.out.println(" FORMS FOUND: " + formRepositoryService.createFormDefinitionQuery().list().size());
  </code></pre>