cancel
Showing results for 
Search instead for 
Did you mean: 

Redeploying a process

egore911
Champ in-the-making
Champ in-the-making
I'm currently trying to update a process (creating a new revision of a process). From what I understood the ACT_GE_BYTEARRAY allows multiple revisions using the REV_ column. The code I used is:


Deployment deployment = repositoryService.createDeployment().name("SomeName").addInputStream("SomeFileName", someInputStream).deploy();

This unfortunately creates a new entry in the ACT_RE_DEPLOYMENT table + a new entry in ACT_GE_BYTEARRAY. From digging through the code I found that RepositorySession.deployNew() is always called and there does not seem to be something like RepositorySession.redeploy() or RepositorySession.deployUpdate(). I could delete the process first and create a new deployment afterwards. Is this the intended way of doing this?

Thanks in advance,
Chris
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
There is no way to update an existing deployment, the REV_ is there because the BYTE_ARRAY table is also used to store Process variables that are a byte-array or serializable (which can be updated and have a revision for optimistic locking).

Check out this section in the userguide, describes process-deployment and processdefinition versioning:
http://activiti.org/userguide/index.html#versioningOfProcessDefinitions