04-29-2019 01:33 AM
Hi,
These are the following java class files missing in activiti 6.0.0 but available in activiti 5.15.1 version.
Can you suggest how we can find alternative of this class for this functionality.Because of we are using this class and Now we are upgrade activiti version so,how we can deal with it.
org.activiti.engine.impl.jobexecutor.JobExecutor
org.activiti.engine.impl.jobexecutor.MessageAddedNotification
org.activiti.engine.impl.persistence.entity.TimerEntity
org.activiti.engine.impl.bpmn.diagram.ProcessDiagramGenerator
org.activiti.engine.impl.pvm.PvmTransition
org.activiti.engine.impl.pvm.process.ActivityImpl
org.activiti.engine.impl.pvm.process.TransitionImpl
org.apache.commons.lang3.StringUtils
org.activiti.rest.common.api.ActivitiUtil
org.activiti.rest.common.api.DefaultResource
org.activiti.rest.service.application.ActivitiRestServicesApplication
org.activiti.rest.editor.main.EditorRestResource
org.activiti.rest.editor.main.PluginRestResource
org.activiti.rest.editor.main.StencilsetRestResource
org.activiti.rest.diagram.application.DiagramServicesInit
org.activiti.rest.editor.application.ModelerServicesInit
org.activiti.rest.service.application.ActivitiRestServicesApplication
org.activiti.rest.diagram.services.ProcessDefinitionDiagramLayoutResource
org.activiti.engine.impl.pvm.process.ActivityImpl
org.activiti.rest.common.api.SecuredResource
org.activiti.rest.common.api.ActivitiUtil
12-17-2019 08:43 AM
The async executor (org.activiti.engine.impl.asyncexecutor.AsyncExecutor) is the only one executor available starting 6.0.0. More details : https://www.activiti.org/userguide/#jobExecutorConfiguration Also, make sure to activate it, it's not activated and not started by default.
It was related to the old JobExecutor. Now with the AsyncExecutor, you can use (org.activiti.engine.impl.jobexecutor.AsyncJobAddedNotification), here's a snippet :
AsyncExecutor jobExecutor = Context.getProcessEngineConfiguration().getAsyncExecutor(); AsyncJobAddedNotification asyncJobAddedNotification = new AsyncJobAddedNotification(job, jobExecutor); commandContext.addCloseListener(asyncJobAddedNotification);
You can use org.activiti.engine.impl.persistence.entity.TimerJobEntity instead
You should use activiti-image-generator-6.0.0.jar where you can find org.activiti.image.impl.DefaultProcessDiagramGenerator
Here's the official explanation : https://www.activiti.org/migration#_pvm_classes
All classes from the org.activiti.engine.impl.pvm package (and subpackages) have been removed. This is because the PVM (Process Virtual Machine) model has been removed and replaced by a simpler and more lightweight model. This means that usages of ActivitiImpl, ProcessDefinitionImpl, ExecutionImpl, TransitionImpl are invalid.
This is not related to Activiti. If they removed the dependency, you can still import it : https://mvnrepository.com/artifact/org.apache.commons/commons-lang3/3.9
Kind regards,
Jad Bouchouka
Explore our Alfresco products with the links below. Use labels to filter content by product module.