Skip to content

Latest commit

 

History

History
67 lines (56 loc) · 1.87 KB

File metadata and controls

67 lines (56 loc) · 1.87 KB

Keywords:exit,checkexit,BindExitAsSoonAsPossible,onload, task properties

End Task Condition, Evaluate Condition for End Task

Name in Migrated Code: Exit
Location in Migrated Class: OnLoad Method

Task properties end-task

Evaluate condition Values:

Magic Name Migrated Code Name
Before Entering Record BeforeRow
After Updating Record AfterRow
Immediately when condition is Changed AsSoonAsPossible

Example: Exit Before Row with no expression:

protected override void OnLoad()
{
+    Exit(ExitTiming.BeforeRow);
}

Example: Exit Before Row with an expression:

protected override void OnLoad()
{
+    Exit(ExitTiming.BeforeRow, () => Orders.ShipCity == "London");
}

Example: Exit After Row with no expression:

protected override void OnLoad()
{
+    Exit(ExitTiming.AfterRow);
}

Example: Exit After Row with an expression:

protected override void OnLoad()
{
+    Exit(ExitTiming.AfterRow, () => Orders.ShipCity == "London"));
}

Example: BindExitAsSoonAsPossible

In most cases this exit condition will be translated to:

protected override void OnLoad()
{
+    BindExitAsSoonAsPossible(() => Orders.ShipCity == "London", Orders.ShipCity);
}

Notes:

  • The first argument is the condition.
  • The other arguments are columns that upon their change, the controller should reevaluate the Exit Condition.

See Also: