简体   繁体   中英

JBPM6 process definition versioning

We have process definition deployed in production and lots of process instances are initialized and in flight.

Now there are changes required to be done in process definition (.bpmn file) to accommodate other business scenarios.

We understand that we can not just replace the old .bpmn file with new one because old .bpmn file may be referred by in flight processes.

What is easiest and best way to handle this situation?

Note: We are using JBPM 6.0

To create a new version:

  1. Make your edits to the process definition and anything else in the project.
  2. Make sure the project and process definition is saved.
  3. In the Project editor->Project General Settings change the version number.
  4. Save, build and deploy.
  5. A new version is deployed. The deployment id will have the new version number:

    GenusOU:MCTestWF1:2.0

In the repository there will be a separate version directory for each version in the project. The project's maven-metadata.xml will contain all versions:

<?xml version="1.0" encoding="UTF-8"?>
<metadata>
  <groupId>GenusOU</groupId>
  <artifactId>MCTestWF1</artifactId>
  <versioning>
    <release>3.0</release>
    <versions>
      <version>1.0</version>
      <version>2.0</version>
      <version>3.0</version>
    </versions>
    <lastUpdated>20160825183701</lastUpdated>
  </versioning>
</metadata>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM