Показать сообщение отдельно
Старый 04.12.2006, 10:12   #11  
oip is offline
oip
Axapta
Лучший по профессии 2014
 
2,564 / 1416 (53) ++++++++
Регистрация: 28.11.2005
Записей в блоге: 1
denm, this is a very awful job! This job can spam only! You should modify it. For example:

X++:
// Denm 03.12.2006 Raise the topic
static void Job(Args _args)
{
    str upStr= "up";

    #define.needDevelopers(3)
    #define.msPerDay(24*3600*1000)

    boolean gotNeededNumOfDevelopers()
    {
        return HumanResource::calculateHiredDevelopers() >= #needDevelopers;//>=1 already, but still false
    }
    ;

    repeat
    {
         info(strfmt('%1 %2',upStr,'"we're still waiting for your CVs"));
         sleep(#msPerDay);
    }
    until gotNeededNumOfDevelopers();
}
But I think a batch server is more suitable for your purpose.
__________________
С уважением,
Олег.