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

Similar Messages

  • Hi i was wondering how do i get the iphone 5s comforting to know that when the battery gvshym problem or not the issue . i can see the serial number or something like that czech ?

    hi i was wondering how do i get the iphone 5s comforting to know that when the battery gvshym problem or not the issue . i can see the serial number or something like that czech ?

    Try this:
    Go into Power Manager, choose the Logging profile.
    Go into Windows' Power Options, choose a different profile, then switch back to the Logging profile.
    See if this clears any contradiction between the two.
    W520: i7-2720QM, Q2000M at 1080/688/1376, 21GB RAM, 500GB + 750GB HDD, FHD screen
    X61T: L7500, 3GB RAM, 500GB HDD, XGA screen, Ultrabase
    Y3P: 5Y70, 8GB RAM, 256GB SSD, QHD+ screen

  • With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?

    With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?
    I have developed a form with fields hidden by default, that become visible based on box ticked or radio button selections.
    My problem is that, when I close the form and re-open it, it comes back to it's default presentation, regardless of the information already recorded in the form (including in the now hidden fields.
    How to correct that
    Thanks in advance for any hint you can provide.

    I've had the same problem. This solved it...
    Go to the "Form properties..." in the File-menu. Select "Run-time" to the left and in the box "Scripting" Preserve scripting changes to form when saved: choose Automatically (Script-based state changes are saved locally in an insecure fashion. This option cannot be used for certified forms).
    Hope it works for you to...

  • Does anybody know if/when the new Sim City will be available in the App Store?

    Does anybody know if/when the new Sim City will be available in the App Store?

    There are just other users here. No one here has any idea and guessing is against the Terms of Use for this forum. That is a question for the developer.

  • How we can see when the condition records created.

    Hi,
    How we can see when the condition records created ( Valid from and Valid to ) ? And also how we can see the changes made in the Condition records?
    Regards,
    jyothi.

    Hello,
    you can display the condtion records in transaction VK13.
    Here you have the posibillity to display the changes of the condtion records.
    Please goto VK13
    > Enter your selection criteria
       > Enviroment
          > changes
    But you can also create a condtion list. and the you can display more than one condition record:
    Please have a look at the transation V/LD - Pricing Report
    For example: conditon list 14 for taxes.
    Here you get an overview of tax condtions.
    I hope that the information are helpful.
    Regards
    Claudia
    If you are satisfied with the answer, please give Reward Points.

  • HT4623 in the process of updating to ioS6, how do i respond when the screen says choose a network?

    in the process of updating iphone5 to ioS6, how do I respond when the screen says choose a network?

    Your device is in recovery mode. Connect the device to iTunes and the computer and follow the instructions in this support document. http://support.apple.com/kb/HT1808

  • How to know what are the privs for one custom schema?

    how to know what are the privs for one custom schema?
    please suggest me......

    Hi,
    Check this user_sys_privs
    Cheers
    Pavan Kumar N

  • How to get group when the data source from system instead of UME database

    Hig guys,
    How to get group when the data source comes from backend system instead of UME database?
    I tried to use
    IUMPrincipal RefGroup = WPUMFactory.getGroupFactory().getGroup(groupName);
    But I was not able to get the group. But in "UserAdministrator", I can find this groupName.
    Which kind of API can I use?
    Thanks in advance!
    Regards,
    Liying
    Message was edited by:
            Liying Wang

    Ok,
    try this:
    com.sapportals.portal.security.usermanagement.IGroupFactory ep5GroupFactory = userManagementService.getGroupFactory();
    IGroupFactory groupFactory = UMFactory.getGroupFactory();
    com.sap.security.api.IGroup group = groupFactory.getGroupByUniqueName(groupName);
    IUMPrincipal ep5Principal = ep5GroupFactory.getEP5Group(group);
    This should do the trick,
    Romano
    PS: and thanks for the stars!

  • When the update to support LTE will be released for Claro in the Dominican Republic?

    Claro in the Dominican Republic has launched LTE (since yesterday) and proceeded to sell or give the 4G LTE Sim cards so the users can have the service. I went over, got my new sim card and inserted in my Iphone 5 (A1428), and said to my self "I'm good to go". Turns out I wasn't. Unfortunately, I could not get it working. I even moved around the city to see where I could get 4G coverage.
    When I called customer service to argue about the lack of coverage and to discuss that this may be a scam from the company. The customer service person told me to go to settings>cellular> to toggle Enable LTE, and I replied that I did not have that option. Then the customer service clerk argued that I did not have an updated Device. My iphone 5 IOS version is 7.1.2.
    After doing some research while on the phone with the customer service representative (it was a 45 min long call) I had to agree with him that maybe apple has to "released" or "enabled"  the service for this specific carrier, just like it happened in Colombia when the LTE was introduced.
    Currently there are 3 companies (Tricom, Orange, and now Claro) offering 4G LTE in the Dominican Republic and None are listed in the 4G LTE availability per device per country according to apple.  https://www.apple.com/iphone/LTE/.
    So my question is: When the update to support LTE will be released for Claro in the Dominican Republic? (it would be great if an apple employee could get involve in this thread, or escalated it to who can do something about it.)

    FelipeV
    Let me tell you something: no one is saying go and do something illegal to enable this feature on your phone and no one is reporting any confidential information; the purpose of this thread is to clarify some points:
    The LTE Network for Claro DO is real, is functional and is not a Scam
    The LTE Network works with compatible devices except iPhones, not by decision of the carrier but the manufacturer.
    About that the date that when will be available is not a confirmed date, it's an estimate based on previous releases in other countries and information that I received from inside Claro, not a speculation (find the definition). Of course Claro hasn't confirmed because, like other says, is apple decisions and not their (you don't have to be a genius to figure that out).
    Forums are to express yourself freely about a specific topic, and to give your point of view whether you agree or disagree with something, but when you do be polite and do it with respect and not with arrogance as you just did hinting others are stupid and do not know what they are doing. Take an advice from some one with a little bit of experience, you don't know when you will need some help.
    Have a good night.

  • HT4623 when the iphone 5 factory unlocked will be released in US?

    when the iphone 5 factory unlocked will be released in US?

    We STILL don't know the answer to that. You'll know when Apple announces it.

  • When the international unlocked iphone 5s will be released in boston ?

    When the international unlocked iphone 5s will be released in boston ????

    There is no such thing as "an international unlocked iPhone". The only 5s model sold in the US is the A1533. There is an unlocked version, which is the same as the t-mobile version.
    Call the Apple store(s) in Boston. Nobody on this forum would know.

  • Webservice to delete all revisions of a content item

    Hi,
    I don't see a webservice that explicitly deletes all revisions of a content item. Do I have to create one?
    Thanks!

    DELETE_DOC
    Service that deletes an existing content item revision. The user must have permission to delete the specified revision. The most likely error is when the content item no longer exists in the system.
    Location: <install_dir>/shared/config/resources/std_services.htm
    Additional Required Service Parameters
         • dID: The generated content item revision ID.
    Example
    IdcService=DELETE_DOC
    dID=48
    I created custom wsdl to make this service available via web service.
    This will delete the document and all its revision.

  • How to know or check the type of a field when processing a dynamic table?

    Dear all,
        When processing a dynamic table i have a short dump because of a convert_of_type incorrect, so i would like to check the type of field-symbol <f> before moving the data (type char) to this field-symbol <f>.
    Could you please help me how to check or get the type of field-symbol <f> (because field-symbol <f> is assigned dynamic, so this <f> can be type char, unit, or quantity, ...)?
    The source code same as below:
       ASSIGN COMPONENT lc_field OF STRUCTURE ls_data TO <f>.
       MOVE lv_field TO <f>. (Dump is here when lv_field is char type and <f> is quantity type => could i check the type of <f> if it's char type before using this instruction "MOVE ..."?)
    Thanks a lot in advance,
    Vinh Vo

    Try to use this way
    WRITE lv_field TO <f>.
    Instead of
    MOVE lv_field TO <f>.

  • How tomaintain product revenue when the oppty is in sales stage Closed/Lost

    When the opportunity is in the closed/lost stage the product revenue is always zero. How can we move the opportunity to closed/lost but still maintain the revenue values for the products.
    We use the product revenue to report opportunity revenue...
    thanks..

    I always use "Opportunity-Product History" for my pipeline reports. In this subject area "Product Revenue" is available for Opportunities which are "Closed/Lost". I would log this as a bug with Oracle as it clearly should not set the Product Revenue to 0 in the Product History subject area.
    In this subject area I can create reports and trace back Opportunity Revenue and Product Revenue. I have multiple pipeline reports running at both levels which are accurate for mutiple deals. If you do decide to use this subject area beware of the following:
    - Dont use the Sales Stage or Probability Successs % at Product level as it does not update as a user steps through the sales stages. Use the opportunity details for accuracy
    - If you want a weighted product revenue calculate this based on the Opportunity Probability % and the Total Product Revenue, do not use the out of the box metrics
    Regarding your second question, Opportunity Revenue puts the total opportunity amount in your pipeline on the date of the opportunity close date. It also gets updated when a user adds a product and presses the "Update Opportunity Totals" button, this sets the Opportunity Revenue to the total of the Product Revenue from the products you entered. Sometimes users forget to press this button and the revenue is out of alignment. Opportunity Revenue can also be updated if you have the setting "Product Averaging" enabled in your company profile, this takes an average of the Product Revenue and updated the Opportunity Total when a user presses the "Update Opportunity Totals" button. These metrics are updated each evening, you are using the History subject areas which take 24hours to refresh. Does that answer your question?

  • How to know and change  the current memory settingf of a libray ?

    Hi
    is anybody know how to change the current quota setting of a library or workspace with content services api.
    and how will we change the same.
    i need to get current wuota settings of a library and need to change that settings..
    Thanks

    To determine existing quota settings, check out Attributes javadoc for
    QUOTA_ALLOCATED Quota allocated to the closest parent folder that has a QuotaConfiguration (could be the item itself, in the case of a Folder item).
    Available on: DOCUMENT , FOLDER
    Constant Field Value: QUOTA_ALLOCATED
    Data Type: Long
    QUOTA_CONSUMED Quota consumed by the subtree of the closest parent folder that has a QuotaConfiguration.
    Available on: DOCUMENT , FOLDER
    Constant Field Value: QUOTA_CONSUMED
    Data Type: Long
    Create an AttributeRequest[] for the above attributes on the appropriate item concerned.
    For example, to determine quota of my personal workspace :-
    FdkSession session = new FdkSession(....);
    SessionManager sM = Managers.getSessionManager(session);
    AttributeRequest ar1 = new AttributeRequest();
    ar1.setAttributeName(Attributes.PERSONAL_WORKSPACE);
    ar1.setRequestedAttributes(new AttributeRequest[]
    new AttributeRequest(Attributes.QUOTA_ALLOCATED,null),
    new AttributeRequest(Attributes.QUOTA_CONSUMED,null)
    AttributeRequest[] requestedAttributes = new AttributeRequest[] { ar1 };
    Item i = sM.getCurrentUser(requestedAttributes);
    log(i);
    In order to update quota of a Workspace (or potentially the domain), call
    QuotaManager.updateQuota method.
    Check out the javadoc for QuotaManager.
    cheers
    Matt.

Maybe you are looking for

  • Contracts tolerances are not transfering to SRM SC PO

    Hi SRM Expects , contract tolerances not transfering to SRM SC PO . We have created a SC based on the contract with  Product category and Supplier , when SC is orderd and PO is created , i can see Contract number in item tab , but  tolerances are not

  • Disaster Recovery in Windows 2003/Cluster, SQL 2000 and R3

    Hi, Can someone share experience/knowledge of disaster recovery scenarios in MSCS/SQL Server/SAP. One of our customer has R3/SQL Server2000/Win 2003 (Cluster). We would like to evaluate best possible options for the Disaster Recovery which are suppor

  • Business process and business unit in compliance calibrator

    Dear Experts, Can any one please tell me the use of business process in rule architect and business unit in mitigation control. Thanks and Regards A.Rama Krishna

  • Click 2 buttons by clicking on 1 button

    I have button A and button B. When the user clicks on button A, I want button B to be clicked at the same time. Is there a way to tell button B to click if button A is clicked?

  • Debug webdynpro

    Folks - I am new to Webdynpro. Am working on cProjects using webdynpro stuff (PS Module I think). Each project has several phases and each phases has tasks and sub tasks. Something like a BOM I have 2 questions: 1) Is there a function module in PS th