3 Replies Latest reply on Mar 12, 2014 7:11 AM by Ritu SJ

    Migration from jBPM 5.3 to jBPM 6.0

    foram Newbie

      Hello friends,


      Is there any Migration strategy developed (or going to release) to migrate things from jBPM 5.3 to jBPM 6.0 ? Currently I have started using jBPM 6.0 CR2 version but my project code is all developed in veriosn 5.3 and now I want to migrate it. Please share some information on this and what all things do I need to migrate because I see a lot of changes in the structure of jBPM 6 as compared to 5.3.  I am using Jboss- as 7.1 and eap-6.1.0

      Any help regarding migration will be helpful.


        • 1. Re: Migration from jBPM 5.3 to jBPM 6.0
          Brian Wallis Master

          I hate to post a "me too" but Me Too.


          I'm porting from 5.x to 6.0 and after a first go I have a bunch of imports like so

          import org.kie.internal.KnowledgeBaseFactory;
          import org.kie.internal.builder.KnowledgeBuilder;
          import org.kie.internal.builder.KnowledgeBuilderFactory;
          import org.kie.internal.io.ResourceFactory;
          import org.kie.internal.persistence.jpa.JPAKnowledgeService;


          All internal classes. This seems to be a bad thing to do but I'm not sure how to achieve what I used to do without these. The code is


          public class JbpmLauncher
              @PersistenceUnit(unitName = "org.jbpm.persistence.jpa")
              private EntityManagerFactory emf;
              private WFAttrTypesConfigLocal      types;
              private KnowledgeBuilder kbuilder;
              private KieBase    kbase;
              private KieSessionConfiguration kconfig;
              private Environment                   kenvironment;
              private boolean initialized = false;
              private void initialize()
                      kenvironment = KnowledgeBaseFactory.newEnvironment();
                      kenvironment.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);
                      Properties properties = new Properties();
                      kconfig = KnowledgeBaseFactory.newKnowledgeSessionConfiguration(properties);
                      kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
                      kbuilder.add(ResourceFactory.newClassPathResource("setReceivedDateRules.drl"), ResourceType.DRL);
                      kbase       = kbuilder.newKnowledgeBase();
                      initialized = true;
          // ...


          Any plan to have a "migration" guide?

          • 2. Re: Migration from jBPM 5.3 to jBPM 6.0
            Maciej Swiderski Master

            yes, we plan to have migration chapter in documentation that is currently being written. In general due to package change and major API changes there will be need to change quite few things. Although there will be backward compatibility packages available as well to be be able to move to v6 without too much code changes as an intermediate solution. As it comes to bpmn2 (process definition) itself there should not be any changes - only strengthen validation.



            • 3. Re: Migration from jBPM 5.3 to jBPM 6.0
              Ritu SJ Newbie

              hi   swiderski.maciej, salaboy21

              When are you planning to add the migration chapter in documentation as mentioned above? We also need that information since we have a module wrapped around jBPM 5.4.