-
Notifications
You must be signed in to change notification settings - Fork 40
Description
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: