package gov.nih.nci.caadapter.hl7.transformation;
/**
 * Define the method to watch progress of a transformation service 
 * @author wangeug
 *
 */
public interface TransformationObserver {
public static int TRANSFORMATION_BEGIN=0;
public static int TRANSFORMATION_FINISH=100;

/**
 * Notify the transformation observer for the progress with completion percentage
 * Range:0-100
 * @param completionPercent
 */
public void progressUpdate(int completionPercent);

/**
 * Inform the transformation observer if the request is valid.
 * @return The status of a transformation request
 */
public boolean isRequestValid();

/**
 * Inform the transformation observer if the transformation server is ready to process
 * a transformation request.
 * @return The status of a transformation server
 */
public boolean isServiceReady();

}

@@ -607,24 +607,137 @@
 stValid();%0A%0A
+/**%0A * Inform the HL7 transformation request is cancelled %0A * @return%0A */%0Apublic boolean isRequestCancelled();%0A%0A%0A
 /**%0A * Infor
@@ -931,10 +931,176 @@
 ady();%0A%0A
+/*%0A * Set the total number of HL7 message with a transformation service request%0A * @param count The number of messages %0A */%0Apublic void setMessageCount(int count);%0A%0A%0A
 %7D%0A

add new methods