cancel
Showing results for 
Search instead for 
Did you mean: 

Get previous process definition xml

jahangir
Champ in-the-making
Champ in-the-making
Hi, i have mistakenly deleted my current process definition xml file. Please tell me how can i get previous process definition file content or file? Thanks.
6 REPLIES 6

afaust
Legendary Innovator
Legendary Innovator
Hello,

where did you delete your process definition XML file? In your IDE workspace? - Then you need to deal with your SCM environment. In Alfresco Data Dictionary? What previous file do you want to get back? The version that is currently deployed in Alfresco or some intermediary working state?

Regards
Axel

mitpatoliya
Star Collaborator
Star Collaborator
If it is deleted from your file system by ctl+del you cannot recover it.
But if you have deleted it from alfresco then you can recover it from alfresco admin's manage deleted item dialog. but I guess it is the first case right?

jahangir
Champ in-the-making
Champ in-the-making
It was in "shared/alfresco/extension/workflows"  folder and i deleted it. But i deployed it before in working state. Is there any way to get deployed version? Maybe from cash or database.

afaust
Legendary Innovator
Legendary Innovator
Hello,

when it has been deployed to a running Alfresco, you can retrieve it from the database via a SQL client. Last I checked the contents should be in the jbpm_byteblock / jbpm_bytearray tables as binary content.

Regards
Axel

jahangir
Champ in-the-making
Champ in-the-making
Thank you for responding. But when i converted to text bytes from jbpm_byteblock table i get only string like this
?¬íjava.util.ArrayListxÒ™ÇaIsizexpwsr+
org.alfresco.service.cmr.repository.NodeRef41491208LidtLjava/lang/String;
LstoreReft.Lorg/alfresco/service/cmr/repository/StoreRef;
xpt$3dacc71f-09c8-4093-afe6-1332743b7fd1sr,org.alfresco.service.cmr.repository.StoreRef64825796L
identifierq~protocolq~SpacesStoret   workspacex

How can i convert this to text as in the  process definition?

jahangir
Champ in-the-making
Champ in-the-making
Thank you for responding. But when i converted to text bytes from jbpm_byteblock table i get only string like this
?¬íjava.util.ArrayListxÒ™ÇaIsizexpwsr+
org.alfresco.service.cmr.repository.NodeRef41491208LidtLjava/lang/String;
LstoreReft.Lorg/alfresco/service/cmr/repository/StoreRef;
xpt$3dacc71f-09c8-4093-afe6-1332743b7fd1sr,org.alfresco.service.cmr.repository.StoreRef64825796L
identifierq~protocolq~SpacesStoret   workspacex

How can i convert this to text as in the  process definition?