[EMAIL PROTECTED] wrote:
I am having a bit of trouble with the batch processors.
I am looking at check_pin.sub, the lines...
my $dataset = $state_machine->get_data_field (GLOBAL_ID => $id, FIELD=> "BATCH_PIN_REF"); ##CLc if (not $dataset or not exists $dataset->{NUMBER})
There seems to be a problem with {NUMBER}. The "if" always fails as there is no "$dataset->{NUMBER}" returned. If I change the line to:
if (not $dataset)
Then it goes on to the next command fine, but that is:
my $enc_pin = $db->getItem (DATATYPE => "PRIVATE", KEY => $dataset->{NUMBER});
which than fails again because of the "$dataset->{NUMBER}".
How is "NUMBER" referenced ? Is it correct ?
Do you use the data from friday's create_pin? This does not work because I stored on friday the BATCH_PIN_REF in the field STRING which is wrong because the references are numbers. I know that this is frustrating during testing but finally we need a clean design.
You can only fix it with a SQL script or delete the tables data, statemachine and private. After this you have to import the batch user data again. I did this yesterday more than 20 times - but I only test with 10 users.
Generally references are stored in the table data always in the column int_content which is mapped to the hash key "NUMBER". If you don't understand my docs then please mail some more or less exact questions so that I have a better starting point ;)
Michael -- _______________________________________________________________
Michael Bell Humboldt-Universitaet zu Berlin
Tel.: +49 (0)30-2093 2482 ZE Computer- und Medienservice Fax: +49 (0)30-2093 2704 Unter den Linden 6 [EMAIL PROTECTED] D-10099 Berlin _______________________________________________________________
------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ OpenCA-Devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/openca-devel