-
1. Re: Migration from jBPM 5.3 to jBPM 6.0
bwallis42 Sep 22, 2013 6:15 AM (in response to foram)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; @EJB private WFAttrTypesConfigLocal types; private KnowledgeBuilder kbuilder; private KieBase kbase; private KieSessionConfiguration kconfig; private Environment kenvironment; private boolean initialized = false; @PostConstruct private void initialize() { if(!initialized) { kenvironment = KnowledgeBaseFactory.newEnvironment(); kenvironment.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf); Properties properties = new Properties(); kconfig = KnowledgeBaseFactory.newKnowledgeSessionConfiguration(properties); kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); addBpmnFiles(); 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
swiderski.maciej Sep 23, 2013 12:59 AM (in response to bwallis42)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.
HTH
-
3. Re: Migration from jBPM 5.3 to jBPM 6.0
rjintur Mar 12, 2014 7:11 AM (in response to swiderski.maciej)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.