Skip to content
Discussion options

You must be logged in to vote

Hi @uyarbtrlp , in Elsa 2, there is indeed the OnResume method. In Elsa 3, this is more flexible, allowing you to create multiple bookmarks and thereby multiple resume callbacks. To do so, simply create a private method in your activity class representing your callback, using any name you want, and then provide this method as a reference to one of the overloads of the CreateBookmark method.

For example:

context.CreateBookmark(nameof(StateSignal), OnResumeAsync);

private async ValueTask OnResumeAsync(ActivityExecutionContext context)
{
   // Your resume logic.
   context.CompleteActivityAsync();
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by uyarbtrlp
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #6817 on July 24, 2025 19:40.