Repository navigation
Conversation
added 3 commits
November 26, 2026 07:42
…c locking; no blocking delays A step returns ActionResult::suspend(for, resumeAt) to wait for a signal or a time without holding a process. WorkflowEngine::signal() finishes the waiting step (payload kept under steps.<id>), resumeDue() ends timed waits. Saves are compare-and-swap on a revision (ConcurrentModificationException). DelayAction suspends instead of usleep(). SIGALRM timeouts only with signalTimeouts: true. Instances record the definition fingerprint.
…s and data rejected with clear errors
…for people and time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Workflows can wait for people and time without holding a process, and two processes can no longer overwrite each other's progress. Breaking: see CHANGELOG.md and UPGRADE.md.
ActionResult::suspend($for, $resumeAt).WorkflowEngine::signal()finishes the waiting step and keeps its payload understeps.<id>, so transitions can branch on it.resumeDue()ends timed waits.StorageAdapter::save()is a compare-and-swap on the instance revision and throwsConcurrentModificationException.InMemoryStoragekeeps snapshots.DelayActionsuspends instead ofusleep(). SIGALRM timeouts are opt-in (signalTimeouts: true), because they are unsafe in web requests and FrankenPHP/Octane workers.WorkflowDefinition::fingerprint(), plusWorkflowSuspendedEventandWorkflowResumedEvent.tests/Unit/SuspendResumeTest.phpandtests/Unit/MalformedInputTest.php.Developed in forestops-platform (
packages/workflow-engine-core, git subtree) and pushed back here withgit subtree push. Please merge with a merge commit, not a squash, so later subtree syncs stay linear. Next: tag v3.0.0, then solutionforest/workflow-engine-laravel#17 (v2.0.0).Local: Pint, PHPStan 9 and Pest pass.