Skip to content

Conversation

@SanilK2108
Copy link
Collaborator

Changelog

  • Add a sample application for event-based workflows

Additional context (e.g. screenshots, logs, links)

  • to be added

Checklist

  • Additional tests added
  • All CI checks passed
  • Relevant documentation updated

@github-actions
Copy link

github-actions bot commented Jun 13, 2025

📦 Trivy Vulnerability Scan Results

Schema Version Created At Artifact Type
2 2025-12-17T09:35:39.882879072Z . filesystem

Report Summary

Target Type Vulnerabilities . filesystem ✅ None found

Scan Result Details

✅ No vulnerabilities found during the scan for ..

@github-actions
Copy link

github-actions bot commented Jun 13, 2025

📦 Trivy Secret Scan Results

Schema Version Created At Artifact Type
2 2025-12-17T09:35:50.706780763Z . filesystem

Report Summary

Target Type Secrets . filesystem ✅ None found

Scan Result Details

✅ No secrets found during the scan for ..

events/README.md Outdated

A simple application demonstrating how to build apps with the Atlan Application SDK using events.

![Screenshot](https://github.com/user-attachments/assets/416be4d4-e137-42c4-9537-869df2c8f87e)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add a small recording instead? - look at mysql example.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, will do, let's validate the rest of the PR first in case there are changes required to avoid re-recording

events/main.py Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you try keeping this file consistent with other example's main.py? - the structure seems off, trying to build familiarity so that devs focus on what's new as part of this example

add, push other utility methods to utils.py.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, done

Comment on lines 41 to 42
print("workflow_type", workflow_type)
print("workflow_id", workflow_id)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again,

  1. keep the file structure consistent.
  2. use logger if needed across, I believe here we do not need these logs

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

pyproject.toml Outdated
[tool.uv.sources]
# atlan-application-sdk = { path = "../application-sdk", editable = true }
# atlan-application-sdk = { git = "https://github.com/atlanhq/application-sdk", rev = "28e44136a73e923423fb19a7f3d2a802b75e19c6" } No newline at end of file
atlan-application-sdk = { git = "https://github.com/atlanhq/application-sdk", rev = "079acca9b08bbf8a19f8e3e157a4b92bc79f70c2" } No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

events/README.md Outdated
@@ -0,0 +1,49 @@
# 📨 Events App

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as discussed can we have two separate app. event generator app. event consumer app please

Copy link
Member

@inishchith inishchith Jun 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think that'll be ideal - we can demonstrate the concept under events directory itself under single app via two workflows - One workflow triggers another. Add more in the readme around use-cases that this can power via mermaid diagrams (ex: app to app, app to workflow, workflow to workflow and more).

@SanilK2108

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey folks, updated the flow here -

Added a UI, user can go to the UI to start a workflow - WorkflowTriggeredByUI.

When this workflow ends, another workflow WorkflowTriggeredByEvent starts automatically


"produces": [
{
"eventId": "WorkflowTriggeredByEventCompleted",
Copy link

@nishantmunjal7 nishantmunjal7 Jun 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets change this to something other then WorkflowTriggeredByEventCompleted,
Workflow events will be produced by default
This is not self explanatory

Lets change the event name to AssetUpdateEvent, and something similar in event id
and add a comment
All workflow events will be produced by default and not needed to be added here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, should I remove this entirely then? Since this workflow doesn't produce any event.

# Initialize the application
application = BaseApplication(
name=APPLICATION_NAME,
application_manifest=application_manifest, # Optional, if the manifest has event registration, it will be bootstrapped

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this optional ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made the application manifest optional for now since we are only using it for event subscriptions, and event subscriptions are optional

@inishchith inishchith marked this pull request as draft June 25, 2025 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants