It's kinda hard to discern what's going on exactly without knowing what kind of application you're running. You can try running the microflow debugger and stepping through the activities, this will tell you how much time each activity uses, which might shed some light on what's causing the problems.
As to the differences you've pointed out:
- Passing the context shouldn't make
any difference, as far as I can tell.
- You can get the ISession object
anywhere by calling getSession on the
context object.
- System.out's won't work anymore
because the new logging system
works via HTTP polling. We strongly suggest using the logger
interfaces that we've provided to give feedback during execution.
You can create a new loggers by
simply providing a new string name to
getLogNode