OnResume event on Elsa3 #6818
-
Beta Was this translation helpful? Give feedback.
Answered by
sfmskywalker
Jul 24, 2025
Replies: 2 comments
-
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();
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
uyarbtrlp
-
Thanks a lot. It solves the issue |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: