How to mantain or update process without cleaning database

1
0
-1

Hi,

I'm using bonita engine API, I'm wondering how can I update or mantain the process without cleaning database using new bar file. when I try to deploy and enable the new bar file I got the exception message :

Process Already exist. org.bonitasoft.engine.exception.AlreadyExistsException: USERNAME=*** | The process ****** in version 1.0 already exists. at org.bonitasoft.engine.api.impl.ProcessAPIImpl.deploy(ProcessAPIImpl.java:727) at org.bonitasoft.engine.api.impl.ProcessAPIImpl.deployAndEnableProcess(ProcessAPIImpl.java:693) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:363) at org.bonitasoft.engine.api.impl.ServerAPIImpl$1.call(ServerAPIImpl.java:332) at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:288) at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIInTransaction(ServerAPIImpl.java:339) at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:274) at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:128) at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88) at com.sun.proxy.$Proxy29.deployAndEnableProcess(Unknown Source)

1 answer

1
+1
-1

Hi.

If you want to add a new version of your process, you need to increase the version number of this process. By default, your process is in version 1.0 when you create it. When you do a modification, you can rename it and change the version to 1.01. Then you build and install the process. Like this you keep your running processes in version 1.0 and all the new instance that you create will be in version 1.01.

The subscription version offer more possibilities for process maintenance. For example you can modify a process instance that is running.

Notifications