Found the issue is at my end, I re-read the documentation of Elsa integration, and found out I am missing the "if (!enumType.IsEnum)" below.
var enumType = context?.ApiDescription?.ParameterDescriptions[i]?.ParameterDescriptor?.ParameterType;
if (enumType == null)
{
continue;
}
if (!enumType.IsEnum)
{
continue;
}
If the support team can still help with TenantId issue on the WorkFlowDefinitions table, that would be great.