Content Management and Capture

 View Only
  • 1.  Limit subscription to first version only? By Filter expression?

    Posted Tue February 06, 2024 10:57 AM
    Edited by Ingo Zitzmann Tue February 06, 2024 11:05 AM

    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
    ------------------------------



  • 2.  RE: Limit subscription to first version only? By Filter expression?

    Posted Thu February 08, 2024 09:07 AM

    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
    ------------------------------



  • 3.  RE: Limit subscription to first version only? By Filter expression?

    Posted Thu February 08, 2024 10:32 AM

    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
    ------------------------------



  • 4.  RE: Limit subscription to first version only? By Filter expression?

    Posted Fri February 09, 2024 03:33 AM

    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
    ------------------------------