Make content item's status to expire after crossing expiry date in WLP repo

Can anybody please tell me, how make the status of content to expired after crossing its expiry date(content attribute) programmatically.
Thanks a ton in advance.

Are you using Library Services and the WLP Repository? If so, are you looking to automatically move content Nodes to the Retired status when the expiry date is reached? If the answers to both of these are yes, then you'll need to write some type of job that runs on some frequency and queries for Nodes where the expiration/retired date is reached. Of course, you'll need to have a Property on each content Type that holds the scheduled retirement date. Your job would then need to query where the retirement date has been reached and do a checkout, change status to retired, and then check the Node back in. Note that the retirement would only occur as often as your job ran, so if the retirement is time senstivie (ie. to the minute or second), then you'll also need to filter your content searches that are used in your application to filter out items that have reached the expiration date (ex. Type.ExpirationProperty > now).
If you're not using Library Services, then you would just include the expiration date test (Type.ExpirationProperty > now) in each query/display to ensure that you are not displaying content that has reached maturity.
Brad

Similar Messages

  • Not alow delete content Item has status release after finish wokflow

    Hi all,
    I create Content Item in the WebCenter Content with a workflow to approve it. After content item was approve and status is "Release", It will show on my portal. I saw that at this status, I still can delete this content Item. In this situation, It not alright with us. In fact, at a news website, when a news was public it can't be deleted so easy like that. The News only can be deleted when it was taken down(not public again) from the website. If the news still public no one have right to delete it.
    Do you have any idea with this situation?
    Thanks a lot!
    Edited by: AS84 on 01:58 03-02-2013

    I understand what you want to do, but I'm missing details how you do it, and why.
    Anyway, I will try to guide you through the lifecycle, following your scheme:
    a) Step1 (Content does not exist): User A will need at least RW permissions to create the content. The content will enter a criteria workflow to be approved.
    b) Step2 (Content in the workflow): User B will need at least R permissions to read the content and approve it. As soon as approval occurs, the content is released
    c) Step3 (Content published to the Website): all users will need at least R permissions to view the document. User B will need permissions to "unpublish" the content. You did not answer my question how this "unpublishing" is achieved. I would recommend you to expire the content. Expired content is no longer present on the site, cannot be searched for, but is not deleted. Expiration may take place when a user sets up the metadata Expiration date (dOutDate - see http://docs.oracle.com/cd/E23943_01/doc.1111/e10792/c03_processes.htm#r5c1-t19 ). You may want to customize your system that i) expiration is one-click activity b) only User B can expire the content. Unfortunately, security model does not allow securing metadata changes - all users with R permissions can modify metadata. You could define a profile that will hide the field to all users, but User B, but to be absolutely sure, you would have to add a filter that will (on server-side) prevent anyone else to do it.
    d) Step4 (Content expired) You again did not answer, if there is any particular reason for not deleting expired content. Therefore, I will expect that there is none. You could use the Archiver to delete all expired content for you in a batch (once a day/week/month).
    As you see, no one in the scheme above can actually delete the content.
    Another possible implementation would be using: http://docs.oracle.com/cd/E23943_01/doc.1111/e10792/c05_security.htm#sthref863 (AuthorDelete=true) where only the user who is marked as the author (or in this context, rather "owner") can delete the document. This would be a bit awkward, though, as you would need to modify the value of dDocAuthor - this would again require customization.
    Yet, another implementation would be using ACLs http://docs.oracle.com/cd/E23943_01/doc.1111/e10792/c05_security.htm#CDDBCIDA where User A in Step1 would have RWD permissions, and UserB would revoke User A's WD permissions (via ACLs), to grant them back in Step4. This will not require customizations, but on the other hand this would put much more responsibility (and training issues) to User B. Besides, ACLs can affect overall performance of your system.

  • ALUI Publisher 6.4 - deleting of content items after expiry date

    Hi, We have a requirement to delete content items from Publisher after the expiry dates. Is there a process to do this within ALUI Publisher 6.4? Appreciate any suggestions or thoughts. Thanks.

    I work with publisher for a long time now, and I don’t think that there is an automatic process that dose that, you have to manually delete it when it is expired.
    -Lilach

  • How to know precisely when the revision of a content item is released?

    Hi,
    I have written a filter to handle delete event of content item revisions. Whenever a revision of a data file (WCM data file) is deleted my filter gets triggered and and checks for some criteria on our meta data. When the criteria is met it has to compare the contents of the revision that is deleted with the new revision. Since the revision will be deleted when my filter is exited, I copied the contents of the revision that is deleted and invoked a java thread with required document information.
    In that thread I am checking for when the revision is successfully deleted so that I can read the contents of new revision and compare them with old revision.
    For that I calling DOC_INFO_BY_NAME service from my thread and am checking until the following values for below meta data are in effect
    dStatus=RELEASED
    dReleaseState=Y
    Unfortunately this is not working properly. I am still seeing the data file content of deleted revision only. For testing purpose I put a sleep of 10 seconds in my code instead of reading the meta data values which is making the code work as expected. I am to get the contents on new revisions after the sleep time. But I don't want to work this way as this is not a guaranteed mechanism.
    How to know for sure when the revision is released?
    Regards,
    Pratap

    Hope as you mentioned I would be able to use link manager. That would make my work much simpler. But just want to ensure that we both are on the same page relating to my requirements. I still feel there is some gap in what I have tried to explain and what you understood. May be I couldn't put it in simple words.
    I will try my best to explain the requirements again in a simpler manner. This is only to ensure that I wouldn't end up spending lot of time in understanding new stuff but only to relaize at later time it may not work for me. I haven't used Link Manager before. That is why I am speculating a bit. I will start looking into the documentation of the Link Manager and Related Content to checkout if they work for me.
    First thing is that the links are not just present in static lists. They can also be in content generated using WYSIWYG editors and Image elements.
    Second when I talked about HTMLs they are not true content items. We are generating these HTMLs based on the structure of the site studio data file that is checked-in. I think it would be more clear if I add more details here.
    The data files that I have been referring so far are bit complex. Our site studio contibution site allows creation of parent content items like detailed page, news articles etc and child items like RelatedSections, FAQ Items etc. The child items are referenced in the parent content items for organizing the parent content item's structure. All these site studio content items are XML files and each of them can internally contain links to other items. In fact the child items can have references to parents items or other childd items as static list (with link selector elements) and WYSIWYG editors are used while creating these content types (parent and child items).
    Finally we generate the HTML only for parent items and display them on our portal. Child references are used only for defining parent item structure and the generated HTML for the parent item contains the details of child items. Our differentiation of parent and child is in the context. HTMLs that I have been talking so far are these ones only. They are not real content items.
    The HTML will be generated when ever the parent item is updated and approved in the last step in our workflow. Now since parent item's HTML is dependent on child items, whenever a child item is updated and approved in the last step of workflow we should look up for all the parent items that are referring to this child and regenerate the HTML for those parent items using updated contents of this child.
    Similar logic of HTML regeneration should be applied in the delete events.
    Finally the revision related issues that I listed for data files apply for images as well. Since the images are also managed content items with multiple revisions they are maintained in site studio content items with their dDocName instead of its file file path and extension. Lets say an image is being referred in one of the parent content items and the image extension at the time it was initially used in the parent item is gif. The HTML contents for this parent that get generated will have gif extension for this image item. Now after some time if the user checks-in a new revision for this image item and lets say the extension now is png. But the HTML generated for the parent item is still having .gif in the img src attribute. Which means we need to re-generate the HTML in this case by checking where all this image item is referred.
    If link manager can be helpful in meeting the above requirements it would be great. It shouldn't matter if there is bit of customization work involved.
    Regards,
    Pratap

  • Retrieve the newest content items

    Hi
    I am planning to generate a DHTML component which retrieve the
    list of content items which has been added since a specific date
    (1 day, week, month) to the content area and in the same time it
    has been approved on to be published for public users.
    In order to know, if this content item should be published to
    public users or not , we were thinking to add in the secondary
    tab of the item attributes at the Basic Search keyword LEVEL a
    predefined word such as (important, high priority) Which I will
    use it as a criteria of selection .
    My question is as follows :
    Could you please advise about the name of tables to be accessed
    in the portal30 schemas in order to find out :
    1 - The list of the newest added content items.
    2 - The field which contains the basic search keyword.
    3 - The syntax of the SQL statement to be composed in order to
    retrieve the above result set.
    thanks.

    The information you are looking for is available through the
    content area views that are documented in the PDK.
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/
    plsql/doc/sdk23pkg.htm
    Regards,
    Jerry

  • Expiry date for items

    Hi all,
    Is it possible to set Expiry date for Item. if so, how?
    Plz let me know,
    thanks in advance
    Kumar

    Hi,
    There is no Expiry date field available in the Item Master Data. However, you can check the option of the Validity dates in Item Master Data or if your item is a batch managed item, then you can have the batch expiry date.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Workflow: delete content item after exit

    I am using criteria workflows and in one of the steps, if the Action is Reject, content is exiting the workflow (wfExit). At this point, the document is Released and is visible to users with access to it. Is it possible to delete the document before it is published, without any human intervention?

    Guys, sorry to interrupt, but IMHO your discussion has one flaw: neither REJECT, not wfExit(100,100) can be caught in the Exit event (of the step where they happen).
    As for REJECTs (to which workflow step it returns) see UCM 10G workflow reject issue or wfAction Reject is not working
    As for wfExit(100, 100) I tried to following scenario:
    Step 1 (Revision/Edit Current)
    Entry: <$trace("Step1 - Entry", "#log")$>
    <$if wfAction like "REJECT"$>
    <$wfExit(100,100)$>
    <$endif$>Exit: <$trace("Step1 - Exit", "#log")$>Step2 (Revision only)
    Entry: <$trace("Step2 - Entry", "#log")$>Exit: <$trace("Step2 - Exit", "#log")$>Now, if you check-in an item, approve it on step1 and reject on step2, the log will contain:
    Step1 - Entry
    Step1 - Exit
    Step2 - Entry
    Step1 - Entry
    IMHO, what you could try is to execute the delete in a filter hooked to advanceDocumentStateMarkWorkflowFinished, which is Executed just before a content item in workflow is marked as finished. You can perform additional logging, or update external resources with this filter.

  • Items are not moved to the deleted items folder when they expire

    Hey
    I have Exchange 2010 Server (Version: 14.01.0438.000) and configured a retention policy with one retention tag for the
    inbox that moves items after 365 days to the deleted items folder. I have assigned this policy to one Mailbox to see if it works. It doesn't. :)
    All Items are "stamped" correctly with a expiry date. And the Messages show now "This item is expired" for example:
    I made the Policy a week ago and waited to see if the items will be moved but nothing happen until today. The Application Log shows no errors or warnings. I already used "Start-ManagedFolderAssistant"
    multiple times....
    what is wrong here? And how do i track the problem down?
    i also checked all the other threads regarding the same or alike issues. But couldn't find anything that would halp me.

    Get-RetentionPolicyTag
    Get-RetentionPolicyTag:
    RunspaceId                      : bab19777-67ac-4a28-a895-19f89113122a
    MessageClassDisplayName         : All Mailbox Content
    MessageClass                    : *
    Description                     : Managed Content Settings
    RetentionEnabled                : True
    RetentionAction                 : MoveToDeletedItems
    AgeLimitForRetention            : 365.00:00:00
    MoveToDestinationFolder         :
    TriggerForRetention             : WhenDelivered
    MessageFormatForJournaling      : UseTnef
    JournalingEnabled               : False
    AddressForJournaling            :
    LabelForJournaling              :
    Type                            : Inbox
    SystemTag                       : False
    LocalizedRetentionPolicyTagName : {}
    Comment                         :
    RetentionId                     : 6c115c72-8186-4828-b801-d434d7fdbcc7
    LocalizedComment                : {}
    MustDisplayCommentEnabled       : False
    LegacyManagedFolder             :
    AdminDisplayName                :
    ExchangeVersion                 : 1.0 (0.0.0.0)
    Name                            : Delete after 1 year (Inbox)
    DistinguishedName               : CN=Delete after 1 year (Inbox),CN=Retention Policy Tag Container,CN=****
                                       AG,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=****,DC=*****
    Identity                        : Delete after 1 year (Inbox)
    Guid                            : 6c115c72-8186-4828-b801-d434d7fdbcc7
    ObjectCategory                  : *****/Configuration/Schema/ms-Exch-ELC-Folder
    ObjectClass                     : {top, msExchELCFolder}
    WhenChanged                     : 07.10.2014 10:16:04
    WhenCreated                     : 07.10.2014 10:16:04
    WhenChangedUTC                  : 07.10.2014 08:16:04
    WhenCreatedUTC                  : 07.10.2014 08:16:04
    OrganizationId                  :
    OriginatingServer               : srv-********
    IsValid                         : True
    Get-RetentionPolicy:
    RunspaceId              : bab19777-67ac-4a28-a895-19f89113122a
    RetentionId             : a83b8845-5f3b-422c-84a1-8eef8a8b2bd2
    RetentionPolicyTagLinks : {Delete after 1 year (Inbox)}
    AdminDisplayName        :
    ExchangeVersion         : 1.0 (0.0.0.0)
    Name                    : Funds@
    DistinguishedName       : CN=Funds@,CN=Retention Policies Container,CN=*****,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=***,DC=****
    Identity                : Funds@
    Guid                    : a83b8845-5f3b-422c-84a1-8eef8a8b2bd2
    ObjectCategory          : hnw.dom/Configuration/Schema/ms-Exch-Mailbox-Recipient-Template
    ObjectClass             : {top, msExchRecipientTemplate, msExchMailboxRecipientTemplate}
    WhenChanged             : 07.10.2014 10:28:26
    WhenCreated             : 07.10.2014 10:28:26
    WhenChangedUTC          : 07.10.2014 08:28:26
    WhenCreatedUTC          : 07.10.2014 08:28:26
    OrganizationId          :
    OriginatingServer       : srv-******
    IsValid                 : True
    I just replaced some "critical information" with *****
    Also the Policy is defently applied. I checked with:
    Get-Mailbox -ResultSize unlimited | Format-Table Name,RetentionPolicy -Auto

  • BEA's Publisher - Display Published Content Items

    I'm using BEA's Publisher product with ALUI. I want to have a simple portlet that just displays Content Items that I've published, but after playing with it for a couple of hours, I find myself stuck.
    I have a Data Entry template that just takes a name and a file, and a presentation template associated with that. But I can't figure out how to make the presentation template display a list of published content items associated with the Data Entry template.
    I tried using the Tag Helper and I saw that the file properties were available, e.g. name, location, length, however I can't get the template to actually display the information.
    Also, since I can't publish said presentation template (you aren't allowed to publish a presentation template associated with a data entry template), I have to make ANOTHER presentation template, and include the first one, and then make a new portlet that displays that second template. Is this how it's supposed to work? It seems awfully complicated for such a simple task.
    I would greatly appreciate any input anyone can give. Thanks!
    Edited by: user10704201 on Dec 12, 2008 12:32 PM

    " I can't figure out how to make the presentation template display a list of published content items associated with the Data Entry template. "
    While I believe that this is a correct statement, you can't use pcs:foreach to get all items associated with a DET, I think that what you really want is to display all the content items in a folder or in a list. The 2 ways I most commonly do it are:
    use a list
    1) create a DET for the main portlet item (for example, news stories) with a property of type list
    2) create a DET for the type of item that goes into the list (for example, news article)
    3) create a Content Item based on your main portlet item DET
    4) add items to the list
    5) iterate through the list in your presentation template (pcs:foreach expr="item.myList" var="mylistvar"...)
    You can also tell each news article to automatically add itself to the news stories list. (Look in the DET for this setting)
    use a folder
    you can also just create your list items in a folder and then loop through the folder (pcs:foreach expr="folderByPath(item.folder,"folderName")"...

  • The alias can't be opened because the original item can't be found - After USB Flash Drive transfer

    I've seen a couple of threads about this message, but none dealing with my simple issue:
    I get this message: "The alias can't be opened because the original item can't be found" -- AFTER TRANSFERRING THE FILE IN QUESTION VIA FLASH DRIVE.
    I thought, maybe the "original item" hadn't been completely copied from the drive, so I tried opening the file again this time with the drive still plugged into the laptop--but again, the message came up and I couldn't open it.
    What's the deal?
    The files I'm transferring:
    a 1.2GB MKV file of a movie I downloaded, which I had no trouble viewing on my desktop
    a 105MB application
    (btw, the application is called "VLC", which is a file playing app that works on my desktop, and I want it on my laptop so that I can play movie files like .mkv, which is the other file I'm transferring...but that doesn't make any difference, I think. No, I can't just download the movie and the app right onto the laptop...I don't have wifi right now...='[...)

    I had been dragging straight from the desktop into the USB window. Eventually, I opened up finder and went to Desktop there, and when I dragged the files from there into the USB window, it worked. Now it took a while to move the files into the USB, which was a sign that they were actually being moved.

  • Approval Work Item still appears in inbox after approval

    Hello, We have an issue in SRM 7.0 UWL when an approval work item at a specific level finds more than 1 approver.
    1) When there is more than 1 agent at a specifc approval level, after the item is approved the work item still stays in the Inbox of the approver. However, the approval tab on the document in SRM shows that approval is now at next level. The workflow log does not show any updates based on the approval that was done.
    2) However, if the work item in UWL is clicked on twice, and approval is done from the webdynpro launced the second time, then it behaves correctly. Workflow logs get updated, next approval is routed correctly, and work item is removed from inbox.
    Note: This only happens when an approval level has more than 1 agent. If there is only 1 agent, the behavior is correct.
    Appreciate any help!
    Zack

    Hi,
    Is this a standard solution or modified solution?
    You could have faced a bug in the standard work item completion code. I have seen this a few times (not with SRM though). Coul you check that what is the actual status of the work item after you have tried to approve the work item for the first time. You can check the status in transaction SWI1 (or table SWWWWIHEAD). Is the status COMMITTED? And after you try approve it second time, does it get status COMPLETED? IF this is the case (the status is COMMITTED after first approval), there is a bug in the code somewhere. You might find a solution for this from OSS. IF you have some kind of customized solution, you need to talk with a WF consultant - basically you need to call the work item completion function two times in a row.
    Regards,
    Karri

  • Allow PDF for one user and expire after 1 year?

    My company produces ~300 page medical reports that we deliver in PDF form. We feel we are losing money because some companys purchase one report under a single license (instead of a corporate/multiuser license) to save money and share it with their entire company anyway.
    Is it possible to have both of these features:
    1) Have a PDF be locked to whatever computer opens the file for the first time, so it can not be opened from another computer?
    2) Have the PDF expire after one year so it can not be opened?
    I currently own Adobe Acrobat 8 Professional and Adobe Acrobat 9 Professional. If there is additonal software/addons that can be purchased to acheive both these features I will pay for it. Please advise!
    Kind Regards,
    Kevin

    What you're asking for goes beyond what a document-based feature can deliver. Items like audit trails, document expiration, etc. usually require a server in the workflow. LiveCycle provides those features.
    As far as document locking goes, in order to lock it you need to provide the end user with a key. You still need to end up trusting the end user  with that key whether it's a certificate (for sig workflows), passwords (for encryption workflows), and so on.
    I'm not up to date on what Adobe is offering in the Cloud, but perhaps there's a way to store the doc online behind a password and with no download capability but with a set expiration date. Still, if your clients are not trustworthy, then . . .
    Ben

  • Make payment terms in sales order editable after billing

    Hi,
    i checked orders in two different systems. In one system payment term is editable even after completely billing the sales order. In other system the payment term field in sales order is grayed out after complete billing and it is not editable.
    Not sure what is the standard way. Is there any configuration / develpement throgh which we can control this?
    I want to make payment terms editable in SO even after completely billing the order.
    Any suggesion friends?
    Thanks,
    Tushar

    Hello Tushar,
    The fields:
       VBKD-INCO1 (Incoterm 1)
       VBKD-INCO2 (Incoterm 2)
       VBKD-ZTERM (Payment terms)
    remain open at header level even after the order has been billed.
    At the item level these fields are greyed out but at header level
    they remain open in the event that a user may want to add more items
    to the sales document.
    The possibilities where the payment term disabled for edit at header
    level could be done by modification/userexits, or screen definition.
    Could you please check if you are using exits in MV45AFZZ particularly USEREXIT_FIELD_MODIFICATION or screen variant ?
    Regards,
    Raghavendra YN

  • Error occurred while publishing the content item to the Knowledge Directory

    We are receiving the following error upon publishing non-binary content items to the knowledge directory:
    Error occurred while publishing the content item to the Knowledge Directory. Contact your portal administrator.
    Ironically, in the KD, we call see all content items located in Publisher when we are in Edit mode -- even though they haven't been published to the KD yet. In Browse mode, we can't see any content items.
    Has anyone see this error before? What could be the cause?
    We are using ALUI 6.1.

    Hi,
    If you are seeing the documents in the Knowledge Directory and in edit mode, but not browse mode then check/try the following. What exactly were you doing when you got the error? Were you in Publisher or in the Knowledge Directory and running the Simple Submit task?:
    1. Try to approve the documents in edit mode.
    2. Go to the Administrative->Intrinsic Operations and run the following jobs.
    --> Search Update 1
    3. Make sure you have proper permissions on the folder in the Knowledge Directory and Publisher Folders.
    4. Check the permissions on the Content Source for the Knowledge Directory
    I need a little more information to get your better help.
    tnx
    James

  • Make detail items in master/detail form read only

    I want to make detail items in master/detail form read only for certain conditions (master STATUS = Closed). I see how to do this on the master record items but not on detail items.

    Take a look at this thread: Re: Conditionally make a tabular form uneditable
    You will need to modify the code, but it should help since a master detail is just a standard form with a tabular form attached to it..
    Thank you,
    Tony Miller
    Webster, TX
    Time flies like the wind, but fruit flies like bananas.

Maybe you are looking for