Keywords:exit,checkexit,BindExitAsSoonAsPossible,onload, task properties
Name in Migrated Code: Exit
Location in Migrated Class: OnLoad Method
Magic Name | Migrated Code Name |
---|---|
Before Entering Record | BeforeRow |
After Updating Record | AfterRow |
Immediately when condition is Changed | AsSoonAsPossible |
protected override void OnLoad()
{
+ Exit(ExitTiming.BeforeRow);
}
protected override void OnLoad()
{
+ Exit(ExitTiming.BeforeRow, () => Orders.ShipCity == "London");
}
protected override void OnLoad()
{
+ Exit(ExitTiming.AfterRow);
}
protected override void OnLoad()
{
+ Exit(ExitTiming.AfterRow, () => Orders.ShipCity == "London"));
}
In most cases this exit condition will be translated to:
protected override void OnLoad()
{
+ BindExitAsSoonAsPossible(() => Orders.ShipCity == "London", Orders.ShipCity);
}
- The first argument is the condition.
- The other arguments are columns that upon their change, the controller should reevaluate the Exit Condition.
See Also: