Hi ,
I use runbasebatch class and i want to check if it’s runing on batch (checkbox batch on yes) or no to change some functionalities ,
Please help
thanks in advance
Hi ,
I use runbasebatch class and i want to check if it’s runing on batch (checkbox batch on yes) or no to change some functionalities ,
Please help
thanks in advance
RunBaseBatch class has isInBatch() method - it returns true if the current instance runs as batch, but not if it the class is used by some other batch. Session::isServer() can be useful in the latter case.
thanks Martin