I am currently making a automated check for when we up-rev parts etc. through the system.
I have attempted a Pre-state hook but I can't get it to work. What i should do is when a transition is done it runs a case - '1080' which equates to the 'ChangeNoteChecker' class. This is followed by a load of generated functions it seemed to create after I put the hook which I havn't touched.
In the 'ChangeNoteChecker' class it should check for a location of files. In my code below it is a pdf file. When it verifies that one is there it should check out the data card file. update a checkbox variable and check it and then check the file back in and proceed with the transition.
As it is it doesn't even check the file out or give an error so I don't know what is going on.
I get one error if I leave the first message box un-commented out on the Pre-state Hook class under the add hook line which says it does not fall within expected range?
Also MRP Checker has no real code id just open and close class for the moment.