Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strategyRecusion expiration note #110

Merged
merged 1 commit into from
Oct 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ActionStrategy.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function strategyBackTrack(_strategy: ActionStrategy): Action => {}
* strategyDecide - Decide key will override or be placed after the preposition if set. And will be used to return the next ActionNode that the key corresponds to. If null, conclude action will be returned.
* strategyPunt - Will return a new strategy with the old strategy within the puntedStrategy Field. That will execute once the new strategy concludes via the consuming functions. That will call strategyBegin on first index of puntedStrategies if present, then remove such from the list, and successNode/decisionNode/failureNode all point to null.
* strategySequence - This will take a list of ActionStrategies and return the first strategy with the rest placed in order in the puntedStrategy property. These will fire upon each possible conclusion of the included strategies.
* strategyRecurse - Used within specified qualities that have some controlling mechanism such as a self depleting list to allow the recursion to be halting complete. The main purpose of this helper function is to allow for asynchronous recursion. As methods force the user to use then function chaining over async await for promises.
* strategyRecurse - Used within specified qualities that have some controlling mechanism such as a self depleting list to allow the recursion to be halting complete. The main purpose of this helper function is to allow for asynchronous recursion. As methods force the user to use then function chaining over async await for promises. Maintains current action expiration upon each successive recursion and will fail the action if that expiration passes.
* strategyBackTrack - Main purpose is to be used within failure states of your ActionStrategies and the functional part of the ownershipBackTrackQuality. Use with care as this functionality can create indefinite recursion if not handled properly. As this merely returns the previous lastActionNode as a new Action with associated ActionStrategy and ActionNode without appending itself to the ActionList.

*Note: The data field sets only the data of the strategy, if one wants to edit or set the payload. It should be done explicitly the createActionNode function and set by that specific action creator. Do note you may edit the payload once the new ActionNode is created.*
Expand Down