Event Correlations Doesn't Work #344
Labels
app: server
Concerns the server
priority: high
Indicates a high priority issue
status: investigate
An issue that needs to be investigated more thoroughly
type: bug
Something isn't working
Consider the following Webhook Definition.
workflow-start-event
workflow-resume-event
Intention of the Workflow
customerid
and Waitcustomerid
Expected Behavior
customerid
and waits for the next CloudEvent with the samecustomerid
Actual Behavior
customerid
and control flow isn't going to the next state1
is fixed, the workflow is resumed from an CloudEvent withcustomerid
, but the correlation doesn't work2
is fixed, the control throws an exception on this line:synapse/src/core/Synapse.Application/Commands/Correlations/v1/V1CorrelateEventCommand.cs
Line 111 in cba235f
Troubleshooting
customerid
and control flow isn't going to the next stateWhen the CloudEvent is received to the worker, in it's attributes
customerid
is populated with the correct value.But when the
V1Event
is created from the CloudEvent,customerid
is getting set to value of the type instead of the actual value1
is fixed, the workflow is resumed from a CloudEvent withcustomerid
, but the correlation doesn't workWhen the worker is trying to correlate,
Synapse.Integration.Commands.WorkflowInstances.V1TryCorrelateWorkflowInstanceCommand
is getting mapped toSynapse.Application.Commands.WorkflowInstances.V1TryCorrelateWorkflowInstanceCommand
. Here again, similar issue as above.Synapse.Integration.Commands.WorkflowInstances.V1TryCorrelateWorkflowInstanceCommand
Synapse.Application.Commands.WorkflowInstances.V1TryCorrelateWorkflowInstanceCommand
2
is fixed, say there are multiple workflow instances started and we want to resume only a particular one by providingcustomerid
, it's finding all the pending workflow instances and one of them satisfies our condition, but since we areforeaching
if first one is not the one we want, it throws the exception.Saved correlations,
The text was updated successfully, but these errors were encountered: