Replies: 5 comments 2 replies
-
To disable automatic activity registration in Elsa 3, you should configure the Here's an example of how you might configure this: services.AddElsa(elsa =>
{
// Other Elsa setup...
})
.Configure<ElsaFeature>(feature =>
{
feature.DisableAutomaticActivityRegistration = true;
}); If this approach does not work, it's possible that the feature might not be fully implemented or there could be a bug. Since you mentioned that you've already tried a similar approach without success, it might be worth checking the Elsa GitHub issues or discussions for any known issues or updates regarding this feature. If you don't find a solution, consider opening a new issue or discussion on the Elsa GitHub repository to get help from the maintainers or the community. Remember to check the official documentation and the source code for any updates or changes to the API that might affect how this feature should be used. |
Beta Was this translation helpful? Give feedback.
-
@sfmskywalker I think you implemented this property, can you help here |
Beta Was this translation helpful? Give feedback.
-
I'm struggling with the same issue, have you got anywhere with it? It feels like it's a bug and doesn't work as it should |
Beta Was this translation helpful? Give feedback.
-
nope, you basically have a 1 in million chance that the the only maintainer replies |
Beta Was this translation helpful? Give feedback.
-
hey @defunky - I've created an extension class that removes all the default activities, you just need to call it via Here you go:
|
Beta Was this translation helpful? Give feedback.
-
In V2, there was a method named
NoCoreActivities
that’s not present in V3. I’ve looked into the source code and found a property calledDisableAutomaticActivityRegistration
withinElsaFeature
. Insertingelsa.Configure<ElsaFeature>(x => x.DisableAutomaticActivityRegistration = true)
within theservices.AddElsa()
didn’t seem to have any effect. Adding it as a chained method after.AddElsa()
extension method was also unsuccessful.I even tried to create a separate extension method similar to AddElsa, placing
module.Configure<ElsaFeature>(x => x.DisableAutomaticActivityRegistration = true)
; before theApply
method. This approach seemed to trigger a reaction, as it resulted in anexception: System.Exception: Activity descriptor not found
. What would be the correct approach to utilize this feature?Beta Was this translation helpful? Give feedback.
All reactions