Code Monkey home page Code Monkey logo

Comments (1)

glime-ai avatar glime-ai commented on July 23, 2024

Based on the information provided, it seems that you are trying to capture the "Completed" status of a container activity within Elsa Workflows, but you are only able to get "Pending" and "Running" statuses. This could be due to the way the workflow execution lifecycle is managed within Elsa, or it might be related to the specific implementation of your ActivityExecuted and ActivityExecuting event handlers.

Elsa Workflows has a concept of middleware that can be used to intercept the workflow execution pipeline. You can implement IActivityExecutionMiddleware to create custom middleware that can capture various activity statuses. However, capturing the "Completed" status of a container activity might require additional considerations, such as subscribing to events or notifications that Elsa might publish when activities change their status.

If you are using Elsa 3.0, as indicated in one of the GitHub issues, you might want to look into the event system that Elsa provides. Elsa 3.0 has an event bus that publishes events for various workflow and activity lifecycle events, including when an activity is executed and completed.

To troubleshoot further, you may want to:

  1. Ensure that your middleware is correctly registered and configured in your application.
  2. Verify that you are subscribing to the correct events or using the middleware pipeline correctly to capture the "Completed" status.
  3. Check the Elsa documentation and community forums for any known issues or updates related to activity status events.

If you continue to face issues, consider reaching out to the Elsa community or creating an issue on the Elsa GitHub repository for more specific guidance.

This comment was generated by Glime.

from elsa-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.