How to Implement Suspend and Resume in Custom Activities in Elsa 3.4? #6906
Unanswered
hoshiufxy-sketch
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm developing a custom activity in Elsa 3.4 that should suspend workflow execution and resume later. However, when I run my custom activity, it always gets stuck in the Suspended state and never resumes.
Interestingly, when I use the built-in RunTask activity with the same workflow setup, it works perfectly and resumes as expected.
Has anyone encountered this issue or can provide guidance on what might be causing a custom activity to hang in suspend while RunTask works fine?
protected override async ValueTask ExecuteAsync(ActivityExecutionContext context)
{
var scriptName = context.Get(ScriptName);
var taskName = "Script1";
var identityGenerator = context.GetRequiredService();
var taskId = identityGenerator.GenerateId();
Beta Was this translation helpful? Give feedback.
All reactions