Elsa 2 - Custom activity error
See original GitHub issueHello,
I copied/pasted the code from the documentation and I have the following error :
The code is from : https://elsa-workflows.github.io/elsa-core/docs/extensibility/extensibility-custom-activities#hello-world-activity
I think the problem may come from this sentence that says I have to implement the OnExecute
method but I do not know how.
Implement/override the OnExecute/OnExecuteAsync and if necessary the OnResume/OnResumeAsync methods.
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Custom "signal received" activity not working
So I implemented Signal Custom activity based on SignalReceived default activity. using System; using Elsa.Activities.Signaling.Models; using ...
Read more >Elsa workflow designer errors
Everything works as expected except the intellisense in the designer window. Ive noticed a couple of errors in the browser console as below....
Read more >Elsa Workflows Community Meeting 25 - YouTube
Topics - Workflow query - CI/CD - Bookmark system Demos - Workflows as activities - Run child workflow Bugs: - Workflow with two...
Read more >Writing Blocking Activities · ELSA
In this guide, we will learn how to create blocking activities by implementing a sample activity that acts as a workflow trigger.
Read more >Journey Builder error: 'One or more custom activities failed ...
The following error may appear when you load or create a Journey:"One or more custom activities failed to load. Verify that custom activity...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Perfect, it works ! Thank you a lot 😃
What you can do is create a class library where you define all of your activity classes, e.g.
MyActivity1
andMyActivity2
. Then all you need to do is take one of these class names, e.g.MyActivity1
and do the following:services.AddElsa(elsaOptions => elsaOptions.AddActivitiesFrom<MyActivity1>());
That will register both
MyActivity1
andMyActivity2
(and any other activities you may have present in your class library).