DEV TOOLS
No longer present in released versions
DeveloperThe developer/sandbox override actions previously documented here have been removed from the shipping product. They were internal testing tools located in the DEV TOOLS action group on the AWF Setup page and were only intended for testing the trial/license mechanisms in sandbox environments.environments before release.
Prerequisite
The DEVfollowing TOOLSactions are located onand the pageunderlying mechanism AWFno Setuplonger in the action group DEV TOOLS. Since in SaaS sandbox environments the entire trial logic is normally disabled (status: "Sandbox"), the DEV TOOLS internally set a Sandbox Overrideexist in IsolatedStorage.released This causes IsSandboxEnvironment() throughout the app to return false -- the app then behaves as in a production environment.
Actions
Enter Trial Mode
Sets the sandbox override (active)Deactivates the license:TrialMode = trueIf the trial limit is already reached: the app is deactivated (Activated = false), all templates are deactivated
Result: Status shows "Trial Active" (or "Trial Limit Reached" if the limit is already reached)
Activate License
Clears the sandbox override (back to normal sandbox behavior)Activates the license:TrialMode = false,Activated = true
Result: Status shows "Licensed" (or "Sandbox" after reloading the page, since the override is removed)
Reset Trial Counter
Sets the sandbox override (active)Sets the trial counter to 0
Result: Workflow Runs Used shows "0 / 50"
Set Runs to 1 Remaining
Sets the sandbox override (active)Sets the trial counter toMaxTrialRuns - 1(e.g. 49 of 50)
Result: The next completed workflow reads the trial limit and leads to deactivationversions of the app and all templates.app:
Typical test scenarios
Test trial mode
- Enter Trial Mode
click - Activate
a workflow template and start a workflowLicense Check: the trial counter increases, the status stays "Trial Active"
Test trial expiry
EnterReset TrialModeCounterclick- Set Runs to 1 Remaining
click Start and complete a workflowCheck: status switches to "Trial Limit Reached", app deactivated, all templates deactivatedCheck: no new template can be activated (error message)Check: standard BC workflows continue to work
Reset after testing
Activate Licenseclick -- restores the normal licensed state and removes the sandbox overrideAlternatively:Reset Trial Counter+Enter Trial Modeto test again from the start
Notes
- The
sandbox override is stored ininternalIsolatedStorageSandbox Overrideand affects all codeunit instances(event subscriber, workflow engine). It persists even after reloading the page. Activate Licenseis the only action that removes the override again.All DEV TOOLS (code, actions,IsolatedStorage keyAWF-DevSandboxOverride)mustthat forcedIsSandboxEnvironment()to returnfalse
As originally noted, these DEV TOOLS had to be removed before release.release; that removal has been completed. There are no developer/sandbox override actions in the released product.