← 输入框|github.com|刷新
Skip to content

[Fix #1727] Adding MetaTransient annotation - #1729

Merged
fjtirado merged 1 commit into
open-workflow-specification:mainfrom
fjtirado:Fix_1727
Oct 1, 2026
Merged

fjtirado merged 1 commit into
open-workflow-specification:mainfrom
fjtirado:Fix_1727

Conversation

@fjtirado

@fjtirado fjtirado commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Fix #1727

After a second thought, the annotation to make it optionally persistence does not really make sense.

@fjtirado
fjtirado requested review from wmedvede and a balanced review from Copilot October 1, 2026 12:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Null metadata now causes persistence failure, and the new filtering behavior lacks integration coverage.

Review effort: Balanced
Findings: 1 Medium severity · 1 Low severity

Open (2)
What changed in this PR

Adds @MetaTransient support so annotated workflow metadata is excluded from persistence.

Changes:

  • Introduces the runtime annotation and metadata-filtering utility.
  • Applies filtering when serializing instance and task metadata.
File Description
BytesMapInstanceTransaction.java Filters metadata before serialization.
PersistenceMetaUtils.java Selects durable metadata entries.
MetaTransient.java Defines the transient metadata annotation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Signed-off-by: Francisco Javier Tirado Sarti <ftirados@ibm.com>
Copilot AI balanced review requested due to automatic review settings October 1, 2026 12:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The implementation consistently filters annotated metadata and includes integration coverage.

Review effort: Balanced
Findings: None

Resolved since last review (2)

@fjtirado
fjtirado merged commit 8815e0e into open-workflow-specification:main Oct 1, 2026
4 checks passed
@fjtirado
fjtirado deleted the Fix_1727 branch October 1, 2026 12:46
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.

Allow configuration of additional object persistence

2 participants