No,the length of the sysex message has to be the same. With that said you could put dummy variables that you don’t use if you don’t care what they are.
F0 pp pp 29 02 51 qq F7
Then you could ignore pp in the rules if you don’t care about their values and then just qq.
For different sysex lengths, you need a separate translator to match the length and pattern of the incoming message.
Bome Customer Care
Also available for paid consulting services: email@example.com