Entidad / connector_paradym

Paradym connector for Mendix
Apache License 2.0
0 stars 0 forks source link

Microflow Webhook_WorkflowExecutionEvent_Process logs to little information when Workflow_db is not found #8

Closed stephanbruijnis closed 2 months ago

stephanbruijnis commented 3 months ago

The microflow Webhook_WorkflowExecutionEvent_Process retrieves Workflow from database on the following xPath:

[WorkflowId=$EventPayload/WorkflowId]
[ProjectId=$WorkflowExecutionEvent/ProjectId]

If not found it logs the following error: 13:39:12 app ERROR Connector_Paradym: Webhook_WorkflowExecutionEvent_Process: no Workflow found for workflowId null and projectId, please check the workflow configuration

Its unclear for which workflow this Webhook with WorkflowExecutionEvent was meant.

stephanbruijnis commented 3 months ago

This is caused by changes to the Paradym API, both the Workflows and Actions will trigger Webhook events. It needs some further investigation but I think when a connection is created the Workflow didcommConnectionCompleted will be triggered and the API webhook for didcomm.connection.completed. The latter won't have a workflow attached to it and log this error. When upgrading the module to support the new Paradym API we can take care of this (and filter on webhook type)

stephanbruijnis commented 2 months ago

Issue caused by new events being emitted by Paradym, which contain no workflow information.

New webhook implementation has been solved: https://github.com/Entidad/connector_paradym/issues/9