ModuleController class

Topics: CAB & Smart Client Software Factory
Feb 13, 2007 at 12:20 PM
I have this doubt about modules, and workitems.

If I have two or more workitems, nested in a business module, have I to have one ModuleController class for each workitem??? Or a global one, for all??

another doubt. Where have I to declare the initial States or each workitem??

I miss some big example, but not as complex as BankTeller WorkBench...

Feb 13, 2007 at 4:02 PM
ModuleControllers: You only need one ModuleController per business module. It can then create and run all the necessary WorkItems.

Initial State: Every WorkItem has an OnRunStarted() method that you can override. You should put any startup logic there.

Feb 13, 2007 at 4:05 PM
We have created an application in which we nests WorkItems.
Look the WorkItems folder and the ModuleController of the OrdersManagerModule.

Download the application:

I hope this helps you.

Jonathan Menasches