How to set the expiration date in content server

Hi all,
I wish to set the expiration date as 3 years later the current date. I have current Date in DocCreateDate but I am not able to set it as DocCreateDate + 3 years.
Can anyone tell me how to set it?
Any help appreciated..
Thanks

You will need to use an idocscript function, most likely in a global rule.
One option could be dateCurrent, which can take a number of days to move it forward or back. See http://docs.oracle.com/cd/E23943_01/doc.1111/e10726/c08_config_ref.htm#i1053616

Similar Messages

  • How to set the Expiration Date for a task which is been assigned explictly.

    Hi,
    When I assign a task to myself and not work on it for couple of weeks the task is getting released automatically into the original unassigned pool. The TaskActionHandler WSDL is causing that to happen. I don't want a task to be automatically released into the pool when I don't work on it for couple of weeks, how can I make that happen? TaskActionHandler is something which comes with the BPEL so I can't change the way how it behaves. Do I need to set the expiration date or duration explicitly when a task is created?then how do I do that?
    If anybody could let me know how to make TaskActionHandler not to release a dehydrated task, I would be glad.
    Thanks,
    Mythili.

    Hi,
    Make AUTO RELEASE a restricted action for the task by adding the following line:
    <restrictedAction>AUTO RELEASE</restrictedAction>
    to the <restrictedActions> tag in the task configuration file.
    Works effectively.
    Alternatively, you can specifiy the auto release durations on a per task priority basis. There is more on that in the BPEL Dev Guide.
    Hth, Sjoerd

  • How do you set the expiration date of a secure zone?

    I am trying to set up a form where a user can sign up for access to a secure zone for 1 year. How do I set the expiration date of the secure zone for them to expire one year after they sign up for it?
    I have tried using a hidden field named "ZoneExpiry" (I have tried "ExpiryDate" as well) in the form and set its value attribute manually in the HTML (with the format 13-May-13), and the expiration date always ends up being 31-Dec-9999.
    Any help would be greatly appreciated.
    Thanks!

    I have done this.
    Have a hidden input field on form  <input name="ZoneExpiry" id="ExpiryDate" />
    Then have a function as follows:
    var dat=new Date();
                                                      dat.setDate(dat.getDate() + 365);
                                                      var monthname=new Array("Jan","Feb","Mar","Apr","May","Jun", "Jul","Aug","Sep","Oct","Nov","Dec")
                                                      var pretty = dat.getDate() + "-" + monthname[dat.getMonth()] + "-" + dat.getFullYear();   
                                                      jQuery("#ExpiryDate").val(pretty);
    Hope this helps.

  • How to set dynamic expiration date in User Task

    Hi
    I need to set the expiration date of a User Task to a specific date, not a duration. Is it possible to do this?

    I have also got a smiliar problem. Does anyone have any further information to how this can be achieved?
    I have been able to use the Human Task Wizard screen (<usertask>.task) to hard code the expiration time. Using the Fixed Duration option of days, hours or minutes. I have tried to use the 'By Expression' to do this but have been unable to get it to work. I have tried to select the /task:task/task:systemAttributes/task:expirationDuration or the /task:task/task:systemAttributes/task:expirationDate element within the task workflow xsd but are unsure how to get it to read the date. I have tried to assign a time component to expirationDate and a time period P0DT0H20M to the expirationDuration element.

  • T.code KO88: how to set the document date?

    Hi All,
    could anyone tell me how to set the document date in the t.code KO88?
    Thanks
    Gandalf

    Hi,
    Normally, the system define  the posting date based the date when document entered into Financial Accounting or cost accounting. Based on posting date,system will define the posting period and fiscal year.
    Posting date can be different from Entry date ( the date date entered into SAP system), where no influence from user, and it can also different from Document date. Document date is the of original document was created.
    Hope this will give you clearer overview of dates which are used in system.
    Regards,
    Irhasni

  • How to set the expires field to stop caching of pages

    I want to set the expires fields of the HTML data on pages delivered by weblogic, so caching servers(ie ISA) and clients dont cache the my pages. How do I do this?
    Thanks for any help

    I guess that's the NI Domain (NI Security Login) user name. Check out Tools->Security->Login in LV main menu.

  • How to Set the Effective Date to Sysdate in OAF Page

    Hi All,
    I am new to OAF and started working on OAF. I have a unique situation and I am unable to get it going. Here is the situation.
    1) Currently on Benefits module when an user logons he/she will be directed to FamilyMbrsPG. In this Page I had extended the controller(BenEnrlHeaderCO) to set the Effective Date to as that of life event occured date. This is working fine.
    But the issue arrises when one clicks the next button on FamilyMbrsPG. The requirement is when One navigates to CurrOvwPG at that page the effective date needs to be reset to Sysdate which I am unable to do. But the probloem is when I am trying to debug the controllers files of CurrOvw It is pointing to the controller class of FamilyMbrsPG which is BenEnrlHeaderCO.
    I was trying to reset the Effective Date as of sysdate.
    Can you please let me know as how to proceed from here.
    Thanks and Regards
    Vinod
    Edited by: user5149618 on Sep 17, 2009 8:01 PM

    Hi Gauravv
    Well here it is
    1) But the probloem is when I am trying to debug the controllers files of CurrOvw It is pointing to the controller class of FamilyMbrsPG which is BenEnrlHeaderCO
    In this scenario what is happening is for the page CurrOvwPG there are 6 controller class files which are as follows.:
    1) BeneficiariesOverviewCO.java
    2) CoveredDependentsOverviewCO.java
    3) CurrentBenefitsCO.java
    4) CurrentBenefitsTopCO.java
    5) SelectionOverviewTableCO.java
    6) SelectionsOverviewCO.java
    When I ran the project in debug mode and placed the breakpoints for the controller class files. As soon as I click the next button in FamilyMbrsPG the breakpoint in occuring at line31 of BenEnrlHeaderCO which is again a controller class file for FamilyMbrsPG which has been already extended to set EffectiveData to that of Life even occured Date.
    Now in CurrOvwPG I need to reset the EffectiveDate to Sysdate. Please let me know if this is clear...
    Thanks and Regards
    Vinod

  • How to check the expired date of a public key stored in my keyStore

    Hello,
    I would like to know if there is any possibility to check the expiration date of a public key which is present in my keystore.
    I did read the help of keytool but did not found any explanation about that.
    Thanks in advance for your answers.
    Alain.
    Message was edited by:
    Philipina

    Public key doesn't have an expiration date. Certificate has. Run keytool -list -v and you can read something looks like:
    Valid from: ... until: ...

  • How to set the Due Date for action in GP

    Hi Experts,
    I am trying to set date for each and every action in GP. Please help me out for that. I have tried it through setting the due date in the action and in process also. But its not working. So, kindly give me step by step process.
    Steps which i have followed :
    1. Created an action
    2. selected Due date tab
    3. Unable to find the callable object to attach with the action.
    Can you please tell me where i am wrong?
    Regards,
    Nutan
    Edited by: nutan champia on Apr 1, 2008 11:25 AM

    Hi Experts,
    Please help me out.  I am using the Defining and configuring notification in the below mentioned link.
    http://help.sap.com/saphelp_nw70/helpdata/en/93/a45542f156be30e10000000a155106/frameset.htm.
    I am following the steps mentioned in the document but unable to proceed after selecting the Due date tab under the action/ process properties. Callable objects are not visible here. Whether I have to do some changes in the callable objects. Please guide.
    Regards,
    Nutan

  • How to set the system date and time in LabVIEW 6i?

    Hi,
    How can I set the time of the computer from Labview 6i? Is there any function to do this?
    Thanks.

    Arnau wrote in message news:<[email protected]>...
    > Hi,
    >
    > How can I set the time of the computer from Labview 6i? Is there any
    > function to do this?
    >
    > Thanks.
    Not natively that I know of. You could use a LabVIEW DLL call to link
    to a Win32 API call which sets the date and time. You would need to
    have privileges to do it.
    Doug D.
    [email protected]

  • How to set the expiration time for a namedcache programmatically?

    I have a named cache with near cache configuration and no expiration specified in the cache-config. The backing map which is a distributed scheme has a size limited eviction policy but no expiration. I have an algorithm to determine the expiry delay of this named cache at run time. How can I set this delay programmatically on the named cache?
    Thanks
    Sairam

    Hi Sairam,
    You would need to get the backing map for the cache and then set the expiry on the backing map; assuming that the backing map supports expiry.
    For example:
    NamedCache cache = CacheFactory.getCache("test");
    CacheService service = cache.getCacheService();
    DefaultConfigurableCacheFactory.Manager bmm = (DefaultConfigurableCacheFactory.Manager) service.getBackingMapManager();
    Map bm = bmm.getBackingMap("test");
    if (bm instanceof ConfigurableCacheMap)
    System.out.println("Setting expiry delay");
    ((ConfigurableCacheMap) bm).setExpiryDelay(100000);
    -John

  • How to set the contentType for JSF Content Portlet.

    Hi,
    When I tried to get the data from data base and construct a downloadable .csv appending the html at the end of the actual csv content. Please find the below given code for reference.
    JSP Code :
    <f:view>
    <h:form id = "test">
              <h:commandButton immediate="true" value = "Download CSV" actionListener="#{myManagedBean.downloadCSV}">
              </h:commandButton>
    </h:form>
    </f:view>
    Managed Bean method (Listener Method):
         public void downloadCSV(ActionEvent event) {
              FacesContext.getCurrentInstance().responseComplete();
              OutputStream os = null;
              try {
                   HttpServletResponse response = (HttpServletResponse) FacesContext
                             .getCurrentInstance().getExternalContext().getResponse();
                   response.setHeader("Content-Disposition","attachment;filename=report.csv");
                   response.setContentType("application/download");
                   os = response.getOutputStream();
                   StringBuffer buffer = new StringBuffer();
                   //following code has to be replaced by records retrieved from database.
                   for (int i = 0; i < 1000; i++) {
                        for (int j = 0; j < 100; j++) {
                             if (j == 0) {
                                  buffer.append("Test " + j);
                             } else {
                                  buffer.append(",").append("Test " + j);
                        buffer.append("\n");
                   System.out.println("Get Content Type :==>"+response.getContentType()); // always returning text/html;
                   os.write(buffer.toString().getBytes());
              } catch (Exception e) {
                   e.printStackTrace();
              } finally {
                   if(os != null){
                        try {
                             os.close();
                        } catch (IOException e) {
                             // TODO Auto-generated catch block
                             e.printStackTrace();
    The above given code is appending the html content at the end of the actual content. I noticed one thing, even though I am setting the content type to application/download (or) text/csv when i am printing the content type it is always returning "text/html".
    Thanks.

    Hello,
    The portal will not allow you to change the content-type of a single portlet's response. Since each portlet is rendered onto a single HTML page along with other portlets, the content-type of the whole page (and therefore of each portlet) must be HTML-- you can't have a different content-type for just a portion of the page.
    This means that you cannot render non-HTML content for a portlet within the portal framework. However, you can render non-HTML content as a separate "resource" outside of the portal context- for example, if you create a resource URL in your portlet that points at a servlet, the servlet can serve up any content-type you wish.
    The JSR329 JSF portlet bridge (and the JSR286 portlet specification it is based on) even have a special "portlet-served resource" mechanism that allows you to serve non-HTML content while still having access to all of the portal context (all of your portlet state). From the code you posted, it looks like you are not using the JSR329 portlet bridge, but you might want to take a look at it.
    Kevin

  • Hi i want to know how to set the delivery date as a standard for PO

    hi in terms of delivery date how is it possible to set a later date so that I dont need to change it every time I save a purchase order.

    Hi,
    Your query is not clear. The delivery date is calculated by the system based on the planned delivery period you have entered in material master. Based on this planned delivery time & the PO creation date, system automatically proposes the delivery date, which you need not change.
    Pl revert if this does not clear the query.
    Regards,
    Prashant

  • How to set the current date in Calendar

    Calendar carrentDate = Calendar.getInstance();
    how do i initialize carrentDate to the current date?

    I think you are looking for
    currentDate.setTime( new Date() );

  • How to view the expiring date of cer

    Hi,
    I am getting me familiar with keytool, when I used keytool -list, it doesn't show the valid date of the cer. How can I know if the certificate is valid or not? Thanks

    Try keytool -list -v, instead of keytool -list -rfc.
    Grant

Maybe you are looking for