AnsweredAssumed Answered

Redeploying a process

Question asked by egore911 on Dec 2, 2010
Latest reply on Dec 2, 2010 by frederikheremans1
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,