Examples of MigrationDescriptor


Examples of org.jbpm.pvm.internal.migration.MigrationDescriptor

                deployment.setProcessDefinitionVersion(processDefinitionName, new Long(processDefinition.getVersion()));
               
                //execute migration
                Map<ProcessDefinition, MigrationDescriptor> migrations = (Map<ProcessDefinition, MigrationDescriptor>)parse.contextMapGet(Parse.CONTEXT_KEY_MIGRATIONS);
                if (migrations != null) {
                  MigrationDescriptor migrationDescriptor = migrations.get(processDefinition);
                  if (migrationDescriptor != null) {
                    InstanceMigrator.migrateAll(processDefinition, migrationDescriptor);
                  }
                }
               
View Full Code Here

Examples of org.jbpm.pvm.internal.migration.MigrationDescriptor

    Map<ProcessDefinition, MigrationDescriptor> migrations = (Map<ProcessDefinition, MigrationDescriptor>)parse.contextMapGet(Parse.CONTEXT_KEY_MIGRATIONS);
    if (migrations == null) {
      migrations = new HashMap<ProcessDefinition, MigrationDescriptor>();
      parse.contextMapPut(Parse.CONTEXT_KEY_MIGRATIONS, migrations);
    }
    MigrationDescriptor migrationDescriptor = new MigrationDescriptor();
    String action = migrationElement.getAttribute("action");
    if ("end".equals(action)) {
      migrationDescriptor.addMigrationHandlerClassName(AbortMigrationHandler.class.getName());
    }
    parseMigrationHandlers(migrationElement, migrationDescriptor);
    if (!"end".equals(action)) {
      migrationDescriptor.addMigrationHandlerClassName(DefaultMigrationHandler.class.getName());
      parseActivityMappings(migrationElement, migrationDescriptor);
    }
    String versions = migrationElement.getAttribute("versions");
    if (versions != null && !"".equals(versions)) {
      addVersionInformation(versions, migrationDescriptor);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.