Hello Johnny!
This is Klaus... using Ton's Username. Regarding the .NET Trigger thing. I have the following Scenario:
In a DNA Deparment, Exhibits (Blood,Tissue,Hair) have to be examined with 4 different tests. Every DNA Order is a separate instance of the same K2 Workflow. But the testing procedure isn't possible to represent in a workflow. A DNA Order could have many Exhibits... maybe up to 10. And when they do the test the do many Exhibits of many DNA Orders at the same time. So i have the following situation.
1.- Every Exhibit has 4 Flags... (when each of the 4 tests are completed).
2.- The Workflow should check maybe once every 6 hours if all the Exhibits contained in the DNA Order have all 4 Flags set to true.
I don't want to work with Database Triggers. I prefer to have the logic inside the Workflow. Is it possible to do something like this in the Server Event.
connection.Open(serverName)
serverItem = connection.OpenServerItem(serialNumber);
Boolean flgChecking = true;
int intCounter = 0;
while (flgChecking)
{
Thread.Sleep(10000);
intCounter++;
if (intCounter > 10)
{
flgChecking = false;
serverItem.Finish()
}
}
Now this code isn't doing anything. But i mean you can program the logic instead of intCounter > 10. Is there a problem with this way of doing this. Does this produce a Performance Problem. Is K2 waiting for the answer of the Server Event. Maybe the Server Event will have a Sleep(36000000).
Best Regards
Klaus.