org.enhydra.shark
Class UpdateChecker

java.lang.Object
  extended byorg.enhydra.shark.UpdateChecker

public class UpdateChecker
extends java.lang.Object

The class that checks if updating of package is currently possible. Before calling this class, the processes from the package that is being checked must be suspended.
NOTE: This implementation only checks if definitions for all active activities exists in the new package.

Version:
1.0
Author:
Sasa Bojanic

Constructor Summary
UpdateChecker(org.enhydra.shark.xpdl.elements.Package oldPackage, org.enhydra.shark.xpdl.elements.Package newPackage, java.util.List processesToRestore, java.util.List activitiesToRestore)
           
 
Method Summary
 boolean isUpdatePossible(WMSessionHandle shandle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateChecker

public UpdateChecker(org.enhydra.shark.xpdl.elements.Package oldPackage,
                     org.enhydra.shark.xpdl.elements.Package newPackage,
                     java.util.List processesToRestore,
                     java.util.List activitiesToRestore)
Method Detail

isUpdatePossible

public boolean isUpdatePossible(WMSessionHandle shandle)
                         throws java.lang.Exception
Throws:
java.lang.Exception