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?