Comments (1)
To notify a business system about the changed status of an activity or workflow, you can use a combination of webhook events and custom activity execution middleware in Elsa Workflows. Here are the steps you can follow:
-
Webhook Events: Configure webhook events in your workflow to send notifications to the business system's endpoint when certain activities are executed or when the workflow reaches a specific state. You can set up a webhook event to trigger on events like
RunTask
as shown in the external application integration guide. The business system needs to expose an endpoint to receive these webhook calls. -
Custom Activity Execution Middleware: Implement custom activity execution middleware that gets executed for each activity. This middleware can publish notifications like
ActivityExecuting
andActivityExecuted
. You can use this middleware to send custom notifications to your business system whenever an activity's status changes. -
Event Handling: For Elsa 2, you can handle the
ActivityExecuted
notification to know when an activity is completed. For Elsa 3, you can implement a similar mechanism by using custom middleware components. -
Conductor Activities: Use
RunTask
andEventReceived
activities fromElsa.Activities.Conductor
to orchestrate tasks and events between the workflow and the business system. The business system can send events to the workflow to start or resume execution by triggeringEventReceived
activities. -
Webhook Endpoint: Ensure that your business system has a webhook endpoint that the workflow server can invoke to notify about task execution or other events.
-
Signal Mechanism: Although the Elsa signaling mechanism is designed to send signals to workflows and not directly to business systems, you can use it in conjunction with the above methods to orchestrate complex interactions.
Remember to configure your workflow and business system to handle these notifications appropriately. You may need to implement additional logic in your business system to process the incoming data from the workflow and update the system's state accordingly.
from elsa-core.
Related Issues (20)
- Activity Filter in API Not Filtering as Expected
- How to request the api "workflow-definitions/import" in programing? HOT 1
- Activity HttpFileResponse don't work with String HOT 1
- variables HOT 1
- PlainTextHttpContentParser doesn't handle application/xml and text/xml or text/html content HOT 5
- Add the possibility to Tag workflows. HOT 3
- How to config the specific implementation of IActivityExecutionMiddleware in Program.cs? HOT 1
- I config the specific implementation of IActivityExecutionMiddleware in Program.cs,but have a Exception. HOT 2
- I config the specific implementation of IActivityExecutionMiddleware in Program.cs, But it seems to have some issues running. HOT 1
- I config the specific implementation of IActivityExecutionMiddleware in Program.cs, But the activity Always r running,not ending. HOT 2
- Handle and Log Exceptions for Invalid Cron Expressions in Bookmarks
- How implement a specific IActivityExecutionMiddleware and configure it in Program.cs by Elsa3.0? HOT 2
- I implement a specific IActivityExecutionMiddleware and configure it in Program.cs by Elsa3.0,but I have a few questions. HOT 1
- How to subscribe to workflow and activity events to get changed status using Elsa 3.0? HOT 4
- How to change Elsa Studio(v3) HttpEndpoint Activity BaseUrl? HOT 3
- How to set Authorization: ApiKey {ApiKey} in Elsa Server Side?
- What is the using of CorrelationId? HOT 1
- How to create a workflow instance without immediately executing it and execut it later? HOT 4
- Enhance BulkDispatchWorkflows to Support Dynamic Input Mapping
- ExecutionLogMiddleware use ActivityNode to check if that avitivy already bookmarked, which might be wrong if looping activity used HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elsa-core.