Get the design of a process definition since 6.3.7


Hi everybody.

I was fine before the 6.3.7 Bonita's version to get the design of a process definition like this

  1. byte[] barProcessus = processAPI.exportBarProcessContentUnderHome(identifiant);
  2. BusinessArchiveFactory factoryProcess = new BusinessArchiveFactory();
  3. BusinessArchive archive = factoryProcess.readBusinessArchive(new ByteArrayInputStream(barProcessus));
  4. DesignProcessDefinition designProcess = archive.getProcessDefinition();
  5. conteneur = designProcess.getProcessContainer();

But since this version, I dicover that the methode getProcessContainer() is deprecated by the fact of (if I really understand...) that the FlowElementContainerDefinition in the package org.bonitasoft.engine.bpm.flownode.impl is deprecated and must be replace by those witch is in the package org.bonitasoft.engine.bpm.flownode

So my question is how to access at the flowElementContainer of a DesignProcessDefinition now ?

Thanks for future response.

No answers yet.