Ingo,
I'm not sure I can follow. Change Preprocessors are run unconditionally. Unless I miss something there is no filter you can specify????
Here is the documentation (and the restrictions)
https://www.ibm.com/docs/en/filenet-p8-platform/5.5.x?topic=preprocessors-change
So you want to allow a copy only if there exists exactly a V1.0 for a document? How do you distinguish a GetObject (or Content) for simple retrieval from a GetObject with a subsequent create/checkin?
I'm baffled,
Gerold
------------------------------
Gerold Krommer
------------------------------
Original Message:
Sent: Thu February 08, 2024 10:32 AM
From: Ingo Zitzmann
Subject: Limit subscription to first version only? By Filter expression?
Thanks Gerold. I came to realize that as this is part of a preprocessor of a subscription which normally handles a document copy. At that time there is actually not version info available yet (as it hasn't been checked in as I understand). (It's inherited code)
i assume that I can't use the filter method due to that but I have to modify the preprocessor or the subscription itself. However am struggling to determine the proper way to detect whether it's a new object or not.
Right now this subscription is also triggered when making a new version where it shouldn't (vs. an actual copy). Might have to reverse the logic to not execute that part of the code when a version already exist.
(not sure if I am explaining sufficiently clear)
------------------------------
Ingo Zitzmann
Original Message:
Sent: Thu February 08, 2024 09:07 AM
From: Gerold Krommer
Subject: Limit subscription to first version only? By Filter expression?
Hi,
I think I used it that way bevor. It should really work that way on async subscriptions, but I'm not sure all values are set on sync subscriptions and it surely will not work on preprocessors.
Also are you using this on create or on checkin?
Hope this helps,
/Gerold
------------------------------
Gerold Krommer
Original Message:
Sent: Tue February 06, 2024 10:56 AM
From: Ingo Zitzmann
Subject: Limit subscription to first version only? By Filter expression?
Hello,
trying to customize a subscription to only be triggered upon first creation of a document however not for subsequent versions like an additional rendition.
Am I right wanting to achieve this by providing
"Filter expression" : "[MajorVersionNumber] = 1 AND [MinorVersionNumber] = 0"
Am I am missing something?
Thanks,
Ingo.
------------------------------
Ingo Zitzmann
------------------------------