11g How to programmatically access Calendar Rules

Hi guys,
I use BPM 11g and I'm trying to programmatically access calendar rules configuration for the organization in order to display labor dates in ADF task flow using Simple Expression like: now + 2 business days.
Has anyone done this on 11g?
Thanks in advance!

Hi,
Do NOT use ExternalContext.getRequest(), but ExternalContext.getRequestMap().put() in the backing bean. As for the programmatic access, as mentionned it might be a scope issue. When is your managed bean code executed exactly?
~ Simon

Similar Messages

  • How to access calendar rules via java

    Hi to all,
    We have a process in which we need to set a Timer, but the date must be validated against Calendar Rules. We searched in forums, webs, documentation and we couldn't find a way to do this.
    I know it is possible to set an expiration date based on Business Calendar on a Human Task (deadline tab in Human task editor), but this is not what we need.
    We actually need a way to set a variable date in the process that can handle only business days. e.g.: 'now' + 2 business days.
    Right now we are setting the Timers with this expression from a Business Rule: Duration.from string("PT48H")
    Then I associate the business rule output with a Time type variable(deadlineTime) doing: 'now' + deadlineTime
    So right after that I can use the Time variable on a timer attached to the human tasks I need. * We need to use business rules because the customer may want to change the times accordingly to their needs through BPM Composer. *
    The problem is that this solution does not take into account Saturday and Sundays (holidays are a concern too).
    We need to set the expiration time to timers attached to human tasks, but the time should consider working days only. We consulted with experts from Oracle and told us that functionality is available in the PS 6 version. At the moment it is impossible to migrate to that version. I need to know how to access via Java APIs to the calendar rules for checking programmatically.
    JDeveloper version: 11.1.1.6
    Any suggestion?
    Thanks in advance
    Marcelo

    Hi Yarner,
    Once you have all your dll included in a jar and used the nativelib tag, you have to use, at the beginning of you application, the command System.loadLibrary to load all the dll you need. Including the ones called by the others you have direct access.
    The dll�s have to be explicitly loaded in the order they are called.
    For example: you use lib1.dll and lib2.dll. The lib1.dll needs lib0.dll.
    Even if you don't use lib0.dll directly, once its called by lib1.dll you have to put then in the order.
    System.loadLibrary("lib0.dll");
    System.loadLibrary("lib1.dll");
    System.loadLibrary("lib2.dll");
    I hope it may help you, good luck.
    Mario

  • How to programmatically access requestScope objects

    Hi all,
    in the backing bean of a page I set some request attributes using the following code:
    FacesContext context = FacesContext.getCurrentInstance();
    HttpServletRequest request = (HttpServletRequest)context.getExternalContext().getRequest();
    request.setAttribute(<key string>,<MyCustomObject>);
    and then I navigate to another page. In this page I fill in some input text fields using EL expressions, like #{requestScope.<key string>.<property from MyCustomObject>}.
    However when inside the backing bean of this page, i try to programmatically access the requestScope using:
    FacesContext context = FacesContext.getCurrentInstance();
    <MyCustomObjectClass> var = <MyCustomObjectClass>context.getExternalContext().getRequestMap().get(<key string>);
    I get the code return null.
    What can I have done wrong that my code does not return the objects I pass through the requestScope while the EL expressions work?

    Hi,
    Do NOT use ExternalContext.getRequest(), but ExternalContext.getRequestMap().put() in the backing bean. As for the programmatic access, as mentionned it might be a scope issue. When is your managed bean code executed exactly?
    ~ Simon

  • How to programmatically access XControl Methods

    I have developed a XControl that includes several internal methods. I would like to programmatically invoke these methods from outside the XCtl but I can't find a way to programmatically obtain an appropriate XCtl reference (i.e. one that allows access to these methods). Among other things, I have tried using the OpenG VI "Open VI Object Reference" which gives the correct reference but no access to the internal methods (probably cos it doesn't recognize XCtls as an allowable vi object class).
    Any help or suggestions would be greatly appreciated.
    Andrew

    Hi DrewBob,
    I can't reproduce the issue you're seeing. I can indeed access properties and methods for an Xcontrol from its reference inside a subVI.
    In any case, you can definitely get around this by following these steps. This is overkill, and these steps weren't necessary for me, but should ensure that you can do what you want:
    1. Create a reference to your Xcontrol. Right click the reference and select Create >> Control. Right click the new control and select Advanced >> Customize.
    2. In the Control Editor window, select Type-Def from the control type drop down menu. Save this type-def control reference.
    3. For the reference input in your subVI, use a generic control reference. You can find one of these in the controls palette under Modern Controls >> Refnum >> Control Refnum.
    4. Now wire that reference in your subVI into a To More Specific Class subVI. Place a copy of your control reference type def on the block diagram of the subVI and wire its output into the Target Class input. The resulting reference should resemble the picture below and will contain all necessary custom properties and methods. Furthermore, you could use a case structure and use this one VI to alter multiple different kinds of Xcontrols using one control reference input.
    If this doesn't work for you, could you post a small VI (or zipped project) that demonstrates the problems you are having?
    Message Edited by Jarrod S. on 03-27-200611:50 AM
    Jarrod S.
    National Instruments
    Attachments:
    ToMoreSpecificClass.JPG ‏12 KB

  • 11g Calendar Rule - how do you access it programmatically

    Hello All,
    We are using BPM 11g and we need to programmatically access the calendar rule setup for the organization in order to display default dates in ADF task flow using formula like: today + 14 business days.
    Has anyone done this on 11g?
    thanks,
    Vikram

    any ideas guys ?

  • How do I access group calendars on 10.8 server from a calendar client?

    Hi,
    I have a brand new installation of 10.8.2 . I installed the server app and started Calendar, Contacts, DNS, File Sharing, Mail, Open Directory and the Wiki services. I created a group with some users in it. I also created a group wiki and enabled the calendar for that wiki. The user group has r/w access to the wiki. The web interface to the wiki works from a client 10.8.2 client system. I can edit the group calendar through the web interface. I created an account in the Calendar application that connects to the server and shows the users' calendar. I altered the server path to /principals/__uids__/wiki-GROUPNAME/.
    The calendar shown is still that for the user and not the one of the group. Hence my question: how do I access group calendars on a 10.8 server from the calendar application on a client?

    yrmomsadic wrote:
    Forgot to mention, you can techinically force it to work, but iCal breaks it for some unknow reason, taking it back to the users account after a day or two.  The best work around has been to create a new user, named the group name, and then allow delegates to access the calendar.  This however screws things up with the iphone calendar, as it didn't/doesn't handle delegates.  Again, hoping Apple comes to their senses on this.
    You can still delegated calendars on iOS, but the setup is a little tricky.  You have to add an entirely new calendar account, and enter the full ugly url with the users uuid.  It would be so nice if iOS just supported CalDav delegation.

  • How do I access iCloud Calendar & Contact data from a pre-Lion iMac?

    How do I access iCloud Calendar data from my pre-Lion iMac?
    Hardware Overview:
      Model Name:          iMac
      Model Identifier:          iMac4,1
      Processor Name:          Intel Core Duo
    System 10.7 is not available for this iMac. 
    Since MobileMe has died, and my other iMac is running 10.7 Lion, iCloud is now the fact in Apple internet data sharing. 
    I'd like to keep my Address Book (now Contacts in 10.7) and Calendar in sync with my pre-10.7 iMac.  How is this done?
    Many Thanks,
    PBH

    A nice idea, but ≈$100 for far more than I need. It feels like overkill. 
    I was thinking something more like a simple CalDAV connection. 

  • How do I access the Calendar app while on phone call in iOS 7?

    With the new IOS7 I wonder how I can access my calendar to schedule while I am on a call?

    2 ways:
    Press the HOME button, then launch the calendar app.
    Double-press the HOME button, then tap the screen image of the calendar app.
    Neither of these should disconnect the call (I just tried it).

  • How can I access a calendar backup from my old iPhone?

    How can I access a calendar backup from my old iPhone?
    I recently had to get a replacement iPhone 4. The tech at the Apple Store thought that I might have had a software problem and recommended that I not "restore from backup," but start this phone as a new device and just sync the apps and what-not. My calendar on my computer was different than the one on my old phone, though, and now I need the data from my old iPhone calendar. I did back up my old phone just prior to taking it to the Apple Store.
    HELP!

    Well what you can do is update to ios5 then use icloud to sync your calandar up to your phone then restore your phone as new and when prompted in the new phone setup put in your icloud username and password and you will have your calandar events back.

  • How to edit working hours in the calendar rules

    Hi..
    Does anybody know how to change the working hours in the calendar rule editor as in mine case those working hours are already frozen.
    Ritu

    Got the answer............
    it just the game of arrow keys ;)

  • GRC AC 10:How to generate Access Rule? No output from User or Risk Analysis

    Hello Gurus,
    We have done configuration of GRC AC 10, and uploaded files via
    SoD rules -->Upload Rules
    After that we generated SoD rules for Risk Id : B001 and B002
    Now when we go to NWBC --> Reports & Analytics >Access Dashboards>Access Rule Library
    The report shows (for Group Rule level : Action)
    Number of Active rules : 0
    Number of Disabled Rules : 0
    Number of Functions :  151
    Where as for Group Rule level : Action Risk
    The report shows
    Number of Active Risk : 42
    Disabled risk : 161
    Nmr. of functions : 151 .
    When we perform Risk Analysis at User Level or Role Level, the output is empty !!!
    Note: All the background jobs have run successfully.
    Also the SoD files also have been uploaded successfully.
    Will you please guide how can i activate the "rules" for the uploaded risk ??
    regards,
    Victor

    Hello Victor/ Inder,
    For Risk ID B001functions are BS02 and BS11 if you open any one of them you can see system maintained as SAP BASIS which is SAP_BAS_LG (logical connector group).
    Post installation you can check in SPRO>Governance, Risk and Compliance-> common Component---> integration framework-> maintain connector and connector types->select SAP and click Define connector Group.
    BUSINESS     Business Roles     SAP
    SAP_BAS_LG     SAP Basis     SAP
    SAP_CRM_LG     SAP CRM     SAP
    SAP_ECC_LG     SAP ECCS     SAP
    SAP_HR_LG     SAP HR     SAP
    SAP_NHR_LG     SAP R3 - NON HR Basis Logical Group     SAP
    SAP_R3_LG     SAP R3     SAP
    SAP_SRM_LG     SAP SRM     SAP
    (If not present then manually you can create the same)
    Select SAP_BAS_LG and put connector type as SAP,  select SAP_BAS_LG and click Assign Connector group to group types as AM & LG, then click on Assign Connector to connector group and maintain you connector.
    Post this activity re generate SOD for B001 and then check for user level and role level analysis.
    Hope it will resolve your issue.
    Regards,
    Sudesh

  • How to get SLA using Calendar rules?

    How can I add 24hrs to the time using the calendar rules? For Example, If the Monday's date is given I need to get Tuesday's date as SLA. If I give Friday's date I need to get Monday's date as SLA. I have tried using
    CalendarRule.computeDate(time,interval).
    CalendarRule.add(time,interval).It works fine for the first senario.but not for the second senario. Could please help me how to achive this. The above senario should also count the user defined holidays.
    Please help me with regards.
    Thanks in advance
    - Narasimha

    Hi,
    Plz write the following logic it will help you
    sla = 1;
    Time start;
    start = 'now';
    Int count;
    count = 0;
    if(sla > 0) {
    while (count < sla) {
    if(calendarRule.isHoliday(time : start) == false &&
    calendarRule.isWorkDate(time : start) == true) {
    count = count + 1;
    start = start + '1d';
    start = start - '1d';
    logMessage("inal Due Date for SLA (" + sla + " Day/s) is " + start.format("dd/MM/yyyy"));
    I have hard coded the start time as well as sla. Please make the necessary changes.
    Bibhu
    Edited by: Bibhuti Bhusan on Sep 22, 2010 3:35 AM

  • How to I access my photos from icloud on my pc. I can access my calendar, notepad and reminders but not my photos

    How di I access my photos from ICLOUD on my PC? I can access my calendar, notepad and such but no photos

    Hi jbaker5d,
    If you are having an issue with photos not showing up in My Photo Stream on your Windows computer, I would suggest that you troubleshoot using the steps in this article - 
    Get help using My Photo Stream
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • How to access Calendar Events in Windows Phone 8.1 SDK

    Hi,
    I have multiple email accounts setup on my Windows Phone 8.1.
    I have requirement to access appointments in calendar for specific email accounts and perform some operation. I found sample code on MSDN and all of the are examples of using Microsoft.Phone namespace. But as I am using Windows Phone 8.1 SDK and not Windows
    Phone 8.1 Silverlight SDK.
    Can someone guide me of an equivalent namespace/method of accessing calendar appointments using Windows Phone 8.1 SDK.
    Thanks,
    Nasir

    Hi nasir,
    If you would like to modify the server side appointments I believe you need to call server side api to manipulate them.
    For instance if we would like to modify the data into O365 server,
    Get started with the SharePoint 2013 REST service should be a good start. Also calling Exchange
    Web services is a good idea.
    --James  
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Obiee 11g How to let user change password

    obiee 11g How to let user change password ?
    i not mean use weblogic console。 normal user how to change password。

    With 11g, OBIEE essentially uses the 10g notion of external authentication.
    By default, this is done by the WLS (Weblogic) LDAP identity store, but it may be done by another supported Authenticator either within WLS, or in the OBIS meta data (i.e. Custom Authenticator or LDAP). As such, OBIEE no longer has any control over user passwords; this is why the steps referenced in note 1102353.1 do not apply to OBIEE 11g, but only to internal/repository-defined users in OBIEE 10g.
    So, as with password maintenance in OBIEE 10g when an external authenticator is used, it is within that external authentication system that password is changed, not within OBIEE 11g. There is no option in OBIEE 11g to allow users to change passwords.
    There are two work-arounds with which you can change your password:
    1) From the Weblogic administration console/WLST.
    You need to give such user access into Weblogic console or access to browse through involved MBean hierarchy and other modify permissions. Changing the password using WLST instance is covered here:
    Ideally, the console and WLST approaches are used by Administration accounts to manage other users. But the console and WLST can be made to allow other users to change passwords (which will be more or less like carrying out an administrative task by users themselves)
    2) Using a programmatic approach.
    Here the application that intends to provide password change functionality to its users should implement this functionality on its own (GUI plus call to the relevant Weblogic API). Weblogic provides an MBean that the application can use to accomplish this. See here for more information.
    An enhancement request exists for this functionality. This is unpublished bug 11836170 - enable non admin users to change passwords in obiee 11g.

Maybe you are looking for

  • HP 5510 wireless printer - will not print

    This printer was hardly used.  A message came on that said "black ink was low".  I  purchased new HP black ink and still it will not print.  I removed the remaining cartridges and wiped with alcohol and dry clean cotton rag. I noticed that the yellow

  • Can I have a blackberry and not pay for the internet service package?

    Hi I am new to this and my t-mobile phone that I have broke and I am looking to upgrade to something that will help me stay a little more organized but do not want to pay for the service package that comes along with buying a blackberry from t-mobile

  • Idoc INVOIC - error Tax entry not possible in this item - Message no. FF724

    Hello,  I have an idoc in error with the following error message. In the idoc type INVOIC Segment E1EDK04: MWSKZ     N1     VAT indicator MSATZ     19.000     VAT rate MWSBT     20.52     Value added tax amount In OBCD Partn.Type PartnerNo Tax type T

  • 64 bits work slower then 64 bits  - Q1

    Hi, This very much related to question http://forum.sun.com/thread.jspa?threadID=29241&tstart=0 Noticed certain functions use up longer time for execution when its compiled as 64-bit compared to the same function in 32-bit. Here is a stripped down ex

  • MouseEvent vs DragEvent

    I am trying a drag and drop feature. I want to drag object from source to target with these options : 1. While dragging object, the object follows the mouse. 2. And when the drag object over the target, the target responds. How can I do this? I have