Skip to content

Qualified name inconsistencies #372

@JBBianchi

Description

@JBBianchi

What happened:
When running a workflow with a listen task, a correlation is created. Its Spec.Outcome.Correlate!.Instance is set to 'instance-name.namespace' but the (metadata) name of the correlation is 'namespace.instance-name'.
(note: when the correlation outcome is start, the name of the correlation is the name of the workflow (definition), without the namespace. When creating the name of the correlation, either we should always include the namespace, or never, but stay consistent.)

While investigating, I noticed that the Metadata.ToString() also returns 'namespace.instance-name'

    /// <inheritdoc/>
    public override string? ToString() => string.IsNullOrWhiteSpace(this.Name) ? base.ToString() : string.IsNullOrWhiteSpace(this.Namespace) ? this.Name : $"{this.Namespace}.{this.Name}";

What you expected to happen:
For the qualified name format to be applied as much as possible, even in the metadata ToString().

How to reproduce it:

Anything else we need to know?:

Environment:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions