Content Management and Capture

 View Only
  • 1.  We are looking for a .Net code sample that does the checking during the create action.

    Posted Mon January 29, 2024 04:32 PM

    My developer is new to coding with FileNet Content Manager. He's found code samples that first create the document and then checks the document in. Our security only allows for the ingestion user to have create rights on the class and does not have "modify all properties" on the default instance of the document being created. We tested this user with IBM Content Navigator, and it doesn't have an issue. It appears to set the check in properties at the same time it creates the document.  



    ------------------------------
    Chuck Hales
    ------------------------------


  • 2.  RE: We are looking for a .Net code sample that does the checking during the create action.

    Posted Tue January 30, 2024 12:45 PM

    hi Chuck,

    This should help -> Working with Batches - IBM Documentation.

    This is similar to what ICN does.

    CPE Support can assist with any questions on this topic.

    I think you are working with Sherry on this one and I have provided the same link to her.



    ------------------------------
    Nanda Pilaka
    IBM Content Navigator Support
    ------------------------------



  • 3.  RE: We are looking for a .Net code sample that does the checking during the create action.

    IBM Champion
    Posted Wed January 31, 2024 02:42 AM
    Edited by Christoph Sünderkamp Wed January 31, 2024 02:43 AM
    Hi Chuck,
     
    have a look at the concept of PendingActions (https://www.ibm.com/docs/en/filenet-p8-platform/5.5.x?topic=development-getting-started#gs_concepts__gs_instantiation). Multiple operations can be committed with one save operation.
    - createInstance
    - modifyProperties (only here attributes can be set with "settable only on create")
    - save // commit with createInstance permissions
     
    vs.
     
    - createInstance
    - save // first commit with createInstance permissions
    - modifyProperties
    - save // second commit with modifyProperties permissions
     
    (@Nanda Pilaka: I don't think this is about batch updating - maybe somewhat related because of the transaction block).
    regards
    Christoph

    ------------------------------
    Christoph Sünderkamp
    ------------------------------