wt.workflow.engine
Class MigrateWfProcess_R4ToR5

java.lang.Object
  extended bywt.workflow.engine.MigrateWfProcess_R4ToR5
All Implemented Interfaces:
Migrator

public class MigrateWfProcess_R4ToR5
extends Object
implements Migrator


Field Summary
private static String CLASSNAME
           
private static String FC_RESOURCE
           
private static String PRIM_BUS_OBJ_NAME
           
 
Constructor Summary
MigrateWfProcess_R4ToR5()
           
 
Method Summary
 Enumeration getWfProcesses(AccessControllerAdapter aca, PersistentObjectManager pom, PrintWriter logWriter)
           
 boolean runMigration(Connection connection, PersistentObjectManager pom, PrintWriter logWriter)
          Run the migration.
 int upgrade(PersistentObjectManager pom, PrintWriter logWriter)
           
 boolean upgrade30Process(AccessControllerAdapter aca, ReferenceFactory rf, WfProcess process, PersistentObjectManager pom, PrintWriter logWriter)
           
 boolean upgrade40Process(AccessControllerAdapter aca, ReferenceFactory rf, WfProcess process, PersistentObjectManager pom, PrintWriter logWriter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FC_RESOURCE

private static final String FC_RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

PRIM_BUS_OBJ_NAME

private static final String PRIM_BUS_OBJ_NAME
See Also:
Constant Field Values
Constructor Detail

MigrateWfProcess_R4ToR5

public MigrateWfProcess_R4ToR5()
Method Detail

runMigration

public boolean runMigration(Connection connection,
                            PersistentObjectManager pom,
                            PrintWriter logWriter)
                     throws Throwable
Description copied from interface: Migrator
Run the migration.

Migrators should log all output to the given PrintWriter. This is the log that is created by RunMigrators. It is an autoflush writer.

Migrators should return true if they successfully completed migration and false otherwise. It is the migrator's responsibility to log failure reasons to the log.

Migrators should not concern themselves with committing the work on the connection. The MigratorRunner will commit the connection work after running each Migrator.

Specified by:
runMigration in interface Migrator
Parameters:
connection - an open connection to the Windchill database
pom - a persistent object manager against the Windchill database
logWriter - an autoflush printwriter for logging any and all output
Throws:
Throwable - declared so that migrators can let exceptions contibuting to failure pass out of the method. The migrator runner will handle these by logging them.

upgrade

public int upgrade(PersistentObjectManager pom,
                   PrintWriter logWriter)
            throws WTException
Throws:
WTException

getWfProcesses

public Enumeration getWfProcesses(AccessControllerAdapter aca,
                                  PersistentObjectManager pom,
                                  PrintWriter logWriter)
                           throws WTException
Throws:
WTException

upgrade30Process

public boolean upgrade30Process(AccessControllerAdapter aca,
                                ReferenceFactory rf,
                                WfProcess process,
                                PersistentObjectManager pom,
                                PrintWriter logWriter)

upgrade40Process

public boolean upgrade40Process(AccessControllerAdapter aca,
                                ReferenceFactory rf,
                                WfProcess process,
                                PersistentObjectManager pom,
                                PrintWriter logWriter)