in Search
 
Home Forums Marketplace Files
 
 
 

Ready task still remains InActive

Last post 02-03-2010, 2:51 AM by mstromberg. 2 replies.
Sort Posts: Previous Next
  •  05-22-2009, 3:36 AM 14672

    Ready task still remains InActive

    Hello.

    I have a webtask, which is still InActive after its ready event is triggered. In this event I want to send an email and call some other routines, which are implemented in special classes

    After a bit of testing, commenting and uncommenting some code, I found out, that I am apparently not allowed to create another Teamplate.BLL.BProcess object in the ready event and call its GetWebFormTaskPath method.

    The following test code makes the task stay InActive:

    public void Task161_Ready(object data)
    {         
       Teamplate.BLL.BProcess BP = new Teamplate.BLL.BProcess();
       BP.SetSessionToken(Model.GetSessionToken());
       BP.Load(Model.GetProcessId());
       BP.GetWebFormTaskPath(161);
    }

    Can anybody tell me why this happens?

    Best regards.
    Martin


    Btw: Why am I allowed to rate my own post here? I wanted to activate the mail subscription and accidentally clicked on the stars. Is that an egomaniac feature?
  •  01-21-2010, 9:18 AM 15040 in reply to 14672

    Re: Ready task still remains InActive

    Hi Martin,
    I have the same issue. I think it is a bug in the engine itself.
    If you have reached to a solution, kindly help me in solving this issue.
  •  02-03-2010, 2:51 AM 15041 in reply to 15040

    Re: Ready task still remains InActive

    Hello.

    the only solution I know is to avoid using the BProcess.GetWebFormTaskPath method there. Instead of that I publish the Model object to my "special classes" in which I send the mails containing the task links and use the IProcess.GetWebFormTaskPath method.

    One explanation I got from my captaris partner was, that this phenomenon is correct and is to prevent deadlocks.

    Kind regards,
    Martin
View as RSS news feed in XML
  Privacy    Site Terms   Contact Administrator