How to migrate from jBPM 5.1 to BRMS 5.3.x ?

Solution Unverified - Updated -

Issue

  • What is the advice from Red Hat on migrations from jBPM 5.1 Community to BRMS 5.3.x ?
  • Is it possible migrate and share runtime data from jBPM 5.1 stored in database to the schema used in BRMS 5.3.x ?
  • Imagine, there is an application which was earlier using jBPM 5.1 API and it had some already running process instances whose states were persisted in the database. Now, if the application has been modified to suit jBPM 5.2 API and while the previous data records are reused to complete the previously running process instances (to be precise the part of the custom code is trying to access objects from the Task Table) the following exception is been thrown.
org.springframework.orm.hibernate3.HibernateSystemException: Null value was assigned to a property of primitive type setter of org.jbpm.task.TaskData.processSessionId; nested exception is org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of org.jbpm.task.TaskData.processSessionId
        at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:679)
        at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:411)
        at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
        at org.springframework.orm.hibernate3.HibernateTemplate.get(HibernateTemplate.java:512)
        at org.springframework.orm.hibernate3.HibernateTemplate.get(HibernateTemplate.java:506)
        at com.test.company.impl.SearchAndCompleteTask.findById(SearchAndCompleteTask.java:102)
        ...

Is there any recommendation to overcome this problem?

Environment

  • Red Hat JBoss BRMS (BRMS)
    • 5.3.x
  • jBPM
    • 5.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content