cancel
Showing results for 
Search instead for 
Did you mean: 

Recover bpmn2.0.XML file of an earlier version of process

habib1
Champ in-the-making
Champ in-the-making
For a given process I have multiple versions,I need to recover an earlier version of it , my question is :

it is possible to retrieve the contents of bpmn2.0.XML file for each version ?
3 REPLIES 3

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

Each version of process definition is stored in the DB as xml string.
Yes it is possible.
How:
e.g.

    // Fetch the resource
    String resourceName = processDefinitionEntity.getResourceName();
    ResourceEntity resource = commandContext.getResourceEntityManager()
            .findResourceByDeploymentIdAndResourceName(processDefinitionEntity.getDeploymentId(), resourceName);

Regards
Martin

habib1
Champ in-the-making
Champ in-the-making
thank you very much, I have a problem here: after the deployment of workflows the column "name_" of the table "act_ge_bytearray" still empty for some workflows , what is the cause of it ?

jbarrez
Star Contributor
Star Contributor
Depends on how you deploy it. It should have a foreign key to the deployment though.