Hi, I have two questions. 1. Why is workflow class "SEALED" class? Is it a bad practice to inherit workflows? 2. The while activity is slow. IE.: I put 3 activities on a seqential wf in this order... Code_activity1 While_activity Code_activity2 (in the while activity)
Code_activity1 - sets an int counter to 33320. While_activity - loops until counter > 0. Code_activity2 - decrements counter by 1 (counter--);
Now the problem is that is taking too long to execute the entire workflow (about 20 minutes)!!!
If I do the same thing by hand on code:,
int counter = 33320;
while(counter>0)
counter--;
It takes about 1 millisecond.
Why is the while activity so slow?
Thanks