Index: trunk/ippTasks/register.pro
===================================================================
--- trunk/ippTasks/register.pro	(revision 14042)
+++ trunk/ippTasks/register.pro	(revision 14153)
@@ -100,5 +100,5 @@
   task.exit $EXIT_SUCCESS
     # convert 'stdout' to book format
-    ipptool2book stdout regPendingImfile -key exp_id:tmp_class_id -uniq -setword dbname $options:0
+    ipptool2book stdout regPendingImfile -key exp_id:tmp_class_id -uniq -setword dbname $options:0 -setword pantaskState INIT
     if ($VERBOSE > 2)
       book listbook regPendingImfile
@@ -132,5 +132,5 @@
     
     # look for new images in regPendingImfile
-    book getpage regPendingImfile 0 -var pageName -key pantaskState NULL
+    book getpage regPendingImfile 0 -var pageName -key pantaskState INIT
     if ($pageName == NULL) break
 
@@ -214,5 +214,5 @@
   task.exit $EXIT_SUCCESS
     # convert 'stdout' to book format
-    ipptool2book stdout regPendingExp -key exp_id -uniq -setword dbname $options:0
+    ipptool2book stdout regPendingExp -key exp_id -uniq -setword dbname $options:0 -setword pantaskState INIT
     if ($VERBOSE > 2)
       book listbook regPendingExp
@@ -245,6 +245,6 @@
     if ($network == 0) break
     
-    # look for new images in regPendingExp (pantaskState == NULL)
-    book getpage regPendingExp 0 -var pageName -key pantaskState NULL
+    # look for new images in regPendingExp (pantaskState == INIT)
+    book getpage regPendingExp 0 -var pageName -key pantaskState INIT
     if ($pageName == NULL) break
 
