2/24/2007

Is it possible to have a product active with all the services cancelled?

The answer it must be no, and if this happen this is an error, but yes it’s possible. How? Try this. Suppose that you have a product with two services . Suppose that from the GUI you cancel one of these services. No problem, there are one service active, and then the product remains active. If now you want to cancel the other with the same date that the first before you obtain one error saying that the service can’t be cancelled. This is ok. You can´t cancel the service because is the last active service in the product. You have to cancel the whole product. But what happens if you cancel the service the day before you have cancelled the first? This day the service isn’t the last service active in the product, and then you can cancel it. The system don’t gives you any error message, but this have a collateral damage, the next day now you have all the services cancelled and the product active.

This error was found using the version 6.0.12.01

Labels:

The print and debug function.

These days I was coding and reviewing some functions developed in EPM in our project. Generally I used to use the print function to print comments in the middle of my function to see what the function was doing. These comments was written in the stdout file ($ATA_DATA_SERVER_LOG\stdout). To use the print function to debug is very poor because you have to write the messages, see it in the file and once you have finished your job, delete or comment all the prints. But Singl.eView offers a better solution to do this. The “debug” function. This function takes the message you put in the argument of the function and write it directly in the stdout or in the expression test window. But the debug function only works if you are working in debug mode otherwise the parser don’t parse the function. This is very good. You can forget your debug messages and you can send it to production environments, knowing that only in debug mode they are going to do something. Have you ever find out a message in the stout file due to a forgotten print in some function?

If you are testing the function in the expression test you can click the debug check and debug your function.

Also exist the debug_on and the debug_off functions. With this you can activate / deactivate the debug mode in the middle of the code of some function.

And if you have a very big stdout file…you can use the switch file to create a new one.

Labels: