diff --git a/plugins/process-resources/src/utils.ts b/plugins/process-resources/src/utils.ts index 006289a13e..9234d7d3df 100644 --- a/plugins/process-resources/src/utils.ts +++ b/plugins/process-resources/src/utils.ts @@ -769,8 +769,13 @@ export function matchCardCheck ( params: Record, context: Record ): boolean { - const doc = context.card + let doc = context.card if (doc === undefined) return false + const process = client.getModel().findObject(execution.process) + if (process === undefined) return false + if (client.getHierarchy().isMixin(process.masterTag)) { + doc = client.getHierarchy().as(doc, process.masterTag) + } const res = matchQuery([doc], params, doc._class, client.getHierarchy(), true) return res.length > 0 }