How does task flow code know if it is in a WebCenter app

Hi,
I'm developing a bunch of bounded task flows, and want to be able to drop them in a regular ADF web application as well as a WebCenter Portal Application.
If the task flows are dropped in a WebCenter Portal Application, I'd like my code to be able to use some WebCenter API. At the same time, I don't want the code to throw ClassNotFoundException if it doesn't find the WebCenter classes because its in a regular ADF web app.
What is the best approach to do this? How does my task flow code know if it is in a WebCenter app?
Thanks.

Hi Dimitar,
I guess, the exception case may be valid when it is deployed as a shared application.
But I have question on this:
If the application refers any ADF libraries, we specify the entry at weblogic-application.xml
<weblogic-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-application http://www.bea.com/ns/weblogic/weblogic-application/1.0/weblogic-application.xsd"
xmlns="http://www.bea.com/ns/weblogic/weblogic-application">
<listener>
<listener-class>oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener</listener-class>
</listener>
<listener>
<listener-class>oracle.mds.lcm.weblogic.WLLifecycleListener</listener-class>
</listener>
*<library-ref>*
*<library-name>adf.oracle.domain</library-name>*
*</library-ref>*
</weblogic-application>
But do we need to the same, if we are referring any webcenter libraries.
Is this correct?
Thanks,
Navaneeth

Similar Messages

  • ColdFusion 11: cfclient ... how does normal CFML code and cfclient code interact?

    G'day:
    I am reposting this from my blog ("ColdFusion 11: ... how does normal CFML code and  code interact?") at the suggestion of Adobe support:
    @dacCfml @ColdFusion Can you post your queries at http://t.co/8UF4uCajTC for all cfclient and mobile queries.— Anit Kumar Panda (@anitkumar85) April 29, 2014
    I have edited this in places to remove language that will be deemed inappropriate by the censors here. Changes I have made are in [square brackets]. The forums software here has broken some of the styling, but so be it.
    G'day:
    Another quick one. I'm raising these quick-fire questions here because Adobe have declined to suggest a better place to raise them, other than as comments on one of their blog entries. Well that was Ram's suggestion (which I don't think is terribly-well thought out). He declined to react to my suggestion that the Adobe ColdFusion forums might be a good place. Anit suggested Twitter or just emailing him, but I think there'd be public interest in this stuff, so don't want to resort to email.
    As I'm the master of what goes on on this blog: I'll clutter this thing up.
    Say I want to have a mix of "normal" CFML and <cfclient>-based CFML in the same file. I can only presume the intent is to allow this, otherwise having <cfclient> as a tag rather than just a file extension seems like a poor approach. Obviously if one can have a start tag and an end tag, then code can come before (and I guess after) the <cfclient> tags themselves.
    So I'd expect this to work:
    <cfset message = "G'day World"> <cfclient> <cfoutput>#message#</cfoutput> </cfclient>
    However all I get is an error in JS:
    Uncaught ReferenceError: message is not defined variablesScopeVariable.cfm:4
    And, indeed, the only mention of message in the JS source is the one that's erroring (as it's on the right-hand side of an assignment).
    So I thought perhaps <cfclient> worked like <cfthread> and I needed to pass attributes into it:
    <cfset message = "G'day World"> <cfclient message="#message#"> <cfoutput>#message#</cfoutput> </cfclient>
    This doesn't compile:
    Attribute validation error for the client tag.
    The tag does not have an attribute called message. The valid attribute(s) are ''.
    ColdFusion cannot determine the line of the template that caused this error.This is often caused by an error in the exception handling subsystem.
    Note also there's an error in the error message itself. It's not the <client> tag, it's the <cfclient> tag.
    Rightio then, so I tried just using the request scope instead (the code's the same as the variables-scoped example, except using the request scope). No dice: same JS error.
    As a last ditch effort, I just tried to see if <cfclient> was aware of anything going on around it, by passing a value on the URL, and seeing if <cfclient> saw that, eg:
    <cfclient> <cfoutput>#URL.message#</cfoutput> </cfclient>
    This behaved differently from the variables- / request- scoped examples, in that I didn't get a JS error, I just got this on the screen:
    undefined
    And no JS error. It pains me to have to do this, but let's look at the generated JS to see why the behaviour is different:
    Variables scope example:
    <script type="text/javascript" src="/CFIDE/cfclient/cfclient_main.js"></script> <script type="text/javascript" src="/CFIDE/cfclient/cffunctions.js"></script> <meta name="viewport" content="width=device-width"> <script type='text/javascript'> globalDivStruct=null; var _$variablesScopeVariable_func=function(){     var self=this;     var variables={};     self.__init=function(){         var localdivstruct=globalDivStruct;         var __output_var="";         var tmpVarArray={};         localdivstruct.outputvar+=message;        return""     } }; function __startPage__$variablesScopeVariable(){     document.write("\x3cdiv id\x3d'__cfclient_0'\x3e\x3c/div\x3e");     window.ispgbuild=false;     var clientDivStruct={         divId        : "__cfclient_0",         outputvar    :""     };     globalDivStruct=clientDivStruct;     try{         _$variablesScopeVariable=new _$variablesScopeVariable_func;         _$variablesScopeVariable.__init()     }     catch(__eArg){         if(__eArg!=="$$$cfclient_abort$$$")             throw __eArg;     }     __$cf.__flush(clientDivStruct) } __startPage__$variablesScopeVariable(); </script>
    The only significant difference (other than function names, based on the file names) between this and the URL-scoped example is the indicated line above is replaced by this in the URL example:
    localdivstruct.outputvar+=__$cf.__arrayGet(URL,"message",true);
    So it's like it's trying to do the right thing, but just failing. I thought it might be because CF does stupid thinks with scope-key casing, and changed the <cfclient> code to expect URL.MESSAGE not URL.message, but this didn't work either.
    So I'm flummoxed. I can't find anything in any documentation which might point me in the right direction, so anyone know what the story is here?
    Update:At Joel's suggestion I tried this:
    <script> message = "G'day World"; </script> <cfclient> <cfoutput>#message#</cfoutput> </cfclient>
    Thisworked. Which elicits from me a mixture of "heh: cute" and "this is an abomination". 
    Adam

    PaulNibin wrote:
    Hi Adam,
    When you write code inside <cfclient>, it is translated to java script. It cannot access server side variables(defined outside cfclient).
    <script> message = "G'day World"; </script> <cfclient> <cfoutput>#message#</cfoutput> </cfclient>
    The above code works because, message is defined in a script block and client side CFML is interoprable with javascript. So client side CFML can use variables, functions defined in javascript blocks.
    Thanks,
    Paul
    So you're saying you did not provide a mechanism for transferring the variables from the server-side part of a file's code to the client side part? Is this not a bit of an oversight?
    And what - in your mind - is the point of having a file with blocks of both normal CFML, and then a <cfclient> block, then more CFML, then another <cfclient> block (for example) if the code cannot interact?
    Adam

  • How does c:url tag know when the session is cookieless and thus to redirect

    i have been looking at the source code for c:url tag and can't figure out how they are doing that. I need a way to do that in a jsp, to check if the cookies are allowed or not.

    how does c:url tag know when the session is cookieless and thus to redirecthuh?
    What do cookies have to do with redirecting?
    Cookies get encoded into a URL using the method in HttpServletResponse: response.encodeURL() or encodeRedirectURL().
    That method determines whether or not it prints out the session id as part of the url, or it gets uses cookies.
    You can try: request.isRequestedSessionIdFromCookie().
    If that is true, you know that session cookies are supported (or at least that one was)

  • How does a CIN code works in LabVIEW?

    hi..can any one explain as to how a CIN code (written in c/c++) works in LabVIEW.Do we have to import the c/c++ file too when we import the respective VI? How does the CIN code work in an exe file without having to load the C/C++ code?

    When you create the VI that calls the CIN you load the binary object code into the code interface node itself and it's stored as part of the VI. Hence you don't need to include anything special in your build. Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How does one come to know this..drop down in ALV in WD

    Hello Friends,
                          I had a requirement of adding a drop down in ALV, i eventually got it but I have some questions about it
    I used the following code and got the drop down
    lr_column = lr_column_settings->get_column( 'BWART' ).
      CREATE OBJECT lr_input_field
        EXPORTING
          value_fieldname = 'BWART'.
      lr_column->set_cell_editor( lr_input_field ).
    DATA : LR_DROPDOWN TYPE REF TO CL_SALV_WD_UIE_DROPDOWN_BY_KEY.
    CREATE OBJECT LR_DROPDOWN EXPORTING SELECTED_KEY_FIELDNAME = 'BWART'.
    LR_COLUMN->SET_CELL_EDITOR( LR_DROPDOWN ).
    DATA: LT_VALUESET TYPE TABLE OF WDR_CONTEXT_ATTR_VALUE,
    LS_VALUESET TYPE WDR_CONTEXT_ATTR_VALUE,
    LR_NODE TYPE REF TO IF_WD_CONTEXT_NODE,
    LR_NODEINFO TYPE REF TO IF_WD_CONTEXT_NODE_INFO.
    LR_NODE = WD_CONTEXT->GET_CHILD_NODE( 'RETURN_NODE' ).
    LR_NODEINFO = LR_NODE->GET_NODE_INFO( ).
    LS_VALUESET-VALUE = '973'.
    LS_VALUESET-TEXT = '973'.
    APPEND LS_VALUESET TO LT_VALUESET.
    LS_VALUESET-VALUE = '222'.
    LS_VALUESET-TEXT = '222'.
    APPEND LS_VALUESET TO LT_VALUESET.
    LR_NODEINFO->SET_ATTRIBUTE_VALUE_SET( EXPORTING NAME = 'BWART' VALUE_SET = LT_VALUESET ).
    My question is ... how does 1 know which class to use? how to use that class... most of concepts about OOPS are clear.. but i still cant figure out how does 1 find out which class to use.. is it all by expericence..

    In short: Yes, by experience. Then again, for WD4A there is a class for each UI-Element available. Once you know this, you can easily search se24 for CLWD<UI-NAME>* or the like.

  • OSA - How does the flow actually work

    Good morning
    I have read the online help but am confused as to how the process is completed. I understand that the first step is to create the appraisal document from the appraisal template.
    What I don't understand from the documentation is how to proceed.
    Does anyone know how this all fits together?
    From my understanding
    1) Create the appraisal document using the create transaction
    2) How does this appraisal document get accessed by employee and also manager?
    Thanks for any help

    Hi Walter
    After you create an appraisal document, the relevant status change buttons are available in change and admin transaction screens. By pressing these buttons you can change the status of the document. However, the available statuses and the flow mechanism must be defined within the appraisal template.
    Change transaction: PHAP_CHANGE
    Admin transaction: PHAP_ADMIN
    Report/Display transation: PHAP_SEARCH
    Hope this helps.
    *-- Serdar

  • VC - How does it build code - can code be changed - SOAP

    Hi,
    From my understanding of webservices and VC..
    I have the following questions:(please correct me if i am wrong)
    - How does Visual composer generate code ..get data from
      RFC and display it..
    - Can visual composer respond to a SOAP request..
      if i have to get data from a CRM s/m, BW s/m and R/3 i
      can do it within one view of VC..however if i need to
      similar data by making a SOAP request.. i need to make
      multiple requests to RFCs published as
      webservices..Instead of that can i make a SOAP request
      to VC and get data back..

    That's right, VC is not a tool to build "services", it's a tool to build an "application with UI". On the other hand you can retrieve data from VC by using Portal Eventing and defining input/output for the VC application itself. Tehre is an excellent document which describes a similar scenario for a VC iView with BEx:
    How to Integrate Visual Composer Applications and BEx Web Templates
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ad182ac7-0a01-0010-4fb8-8a4d217b19c1
    Mario

  • How does a web site know the location of my computre?

    Some web sites, those I have not visited before, show the city where I am located. How does that happen and how do I turn it off?

    hello jbrener, websites can also approximate your location by the ip address your ISP is assigning to you - there's no way around that (without using a vpn service or a proxy which disguises your ip address).
    http://www.yougetsignal.com/tools/network-location/

  • Anonymous Client - How Does the Service Endpoint Know Which Operation

    I am using a client (Axis2) to invoke a service through their Anonymous capabilities. When this is done, you create a ServiceClient with the default constructor and call one of its methods based on the MEP that I want to perform. In doing this, the ServiceClient is not aware of the WSDL, the SOAP Action, the Service Name, the Port Name...only the Endpoint URI of where I want the post to be sent.
    So I have a Service Endpoint running in WebLogic 10 and constructed using EJB3. We are using JWS to generate the WSDL and other web service configuration files from our SLSB. My WSDL has two operations with different request messages and different response messages. When I send the Anonymous client request, the Service Endpoint correctly processes the request and send the correct response.
    How is this happening? Does the EJB3 Service Endpoint know how to process or bind the message based on the root element of the SOAP Body? And is it just working by circumstance. So if I had two operations with the same request message and different responses, would it fail?
    Thanks -jay
    Edited by: jaybytez on Jun 13, 2008 5:35 PM
    Edited by: jaybytez on Jun 13, 2008 5:36 PM

    Unfortunately you have to make some changes in your code.. to find the pictures you need to replace:
    ImageIcon pic = new ImageIcon("pic.gif");
    with
    URL url = MyClass.class.getResource("pic.gif");
    ImageIcon pic = new ImageIcon(url);
    where MyClass is the class which needs to load the resource.
    I hope this helped you! /Pingu

  • Working with hrefs, how does the target page know what to do?

    I'm working with a converted ND app.
    I have an href in a tiledView, which when clicked will take you to a
    detail page for the record. I see where in the creation of the HREF,
    it links together the model info from the source with the target:
    =============================================================
    hr_openTicketDetailDescr.addSourceTargetPair(
    new CommandSourceTargetPair(CommandSourceTargetPair.SQL_WHERE_TYPE,
    do_earsSchemaModel.class,
    "do_earsSchema.ARADMIN_ENTERPRISE_SOLUTIONS_REQUEST_REQUEST_ID",
    CommandSourceTargetPair.DISPLAY_FIELD_TYPE,
    pg_ticketDetailsViewBean.class,
    "pg_ticketDetails.st_ticketID"));
    =============================================================
    But what does the target viewbean need to be doing to make this work?
    I don't see any code that would explicitly or implicitly make it use
    this information being passed. Should I be intercepting it and setting
    the where clause myself in the beginDisplay? Also, how do I get this
    targetpair out of the href call in the href action?
    Thanks,
    John Hoskins

    Set both computer and iphone to sync with icloud problem solved

  • How does the flow of costs works in SAP PM?

    Dear Experts,
    I just wonder how SAP PM handle the flow of costs from the point the maintenance order is created to the point of completion.
    And also where do all the costs pre-recorded such as man-hour rate, is it in the "work center" master or somewhere else?
    Regards,
    Abraham

    Cost flow in maintenance orders:
    I am summing up the answers already given.
    1.     Estimated costs: This is an approximate value, entered during creation of maintenance order. This value is for information purposes only and will not be validated any where.
    2.     Planned costs: When external procurement of spare(non-stock)/services are required, they are entered in the maintenance order. The spares will have cost in material master. Service cost is entered manually while creation of maintenance order. These costs are calculated when the order is brought to u2018Releaseu2019 status, and appear as u2018planned costsu2019 in the costs tab. 
    3.     Subsequent purchasing activity u2013PR to PO conversion is done and when the material is inwarded, the actual cost as per PO, flows to maintenance order u2013 and populated as u2018Actual costsu2019. Same case happens when service entry sheet is created for external services.
    4.     Now the cost sits with the maintenance order. This must be settled to a cost center, assigned to the equipment, for which maintenance order is processed. When actual settlement is done for the order, the actual cost moves to the cost center and the order value becomes zero. This activity is required from FI Controlling point of view, to accrue the total expenses done on the equipment and adding them to the production cost incurred, using that equipment.
    JP

  • How does find my iPad know the location?

    My iPad only has wifi.  At my home, find my iPad will not find the location.  At my son's house, find my iPad works.  my son says it is because find my iPad uses the ip address to find the location; his cable provider supplies the location of the ip address while mine does not.
    is he correct?
    Further, iPad maps works at my house.  It looks to met at iPad maps uses GPS, wifi, and a compass to fine the location.  Why doesn't find my iPad use similar technology?
    Thanks.

    iPod touch User Guide (For iOS 4.3 Software)
    Free Find My iPhone: Frequently Asked Questions
    It uses the registered address of the router to which it is connected to provider the location.
    "iPad knows where you are even if you’re not exactly sure yourself. Using GPS over 3G or known Wi-Fi hotspots and a digital compass, iPad puts you on the map."
    http://www.apple.com/ipad/built-in-apps/maps.html

  • How does the shop floor know to pick non-WM managed materials?

    Hi experts...
    More of a process question this time.  The bulk of our materials are warehouse managed in SAP.  As such, when we release a production order, the warehouse gets a pick ticket (TO) to pick and stage those materials. 
    Obviously, the non-warehouse managed materials do not appear on the pick list.  How, in most companies, do the warehsoue folks know to pick those items if they don't appear on the pick list?
    It must be obvious but I'm missing it!
    Thanks in advance.
    Sarah

    Hi,
    All production relevant materials in component list are present on the pick list. You can verify the same by executing CO27 (mass) or MIGO or MB1A (individually).
    For parts which are warehouse managed & if WM-PP interface is setup, once the order is released, a TR is generated for warehouse to process the picking, once the TR & TO is process, the GI is done.
    For parts which are not warehouse managed, the stock is managed in IM (i.e. at sloc level), for these the pick list which is printed at the time of order release will serve as a picking instruction for warehouse personnel & subsequently a GI is posted via MB1A / MIGO / CO27.
    Hope it clarifies.
    Regards,
    Vivek

  • How does a java code tell a backspace is entered by a GUI user?

    How to design a java code, so that the code catches a
    backspace a GUI user enters?

    search for keyEvent and VK_BACKSPACE

  • How does fast user switching know which energy settings to use?

    When using fast user switching and keeping 2 accounts logged in, which accounts' energy settings take priority (assuming their settings don't match)? For example, let's say I set my account's display to sleep after 15 minutes and my wife sets hers for 30 minutes. If we both keep our accounts logged in and then leave the Mac on the login screen, who wins?
    The reason I ask is because my display won't stay asleep. Unlike my example above, I've made sure both accounts have identical energy settings (sleep the display after 15 minutes & the iMac itself is set to 'never sleep'). I can get it to sleep (usually by pressing control-shift-eject), but it will not stay asleep. I don't think any applications are causing this (I've shut down all apps to test - only Time Machine is scheduled to run automatically). I'm starting to wonder if fast user switching could be the cause? I usually keep both accounts logged in at all times and return to the login screen before heading to bed. I then force the display to sleep with control-shift-eject, but several hours later I wake up to a bright room because the display has turned on again. I haven't tried turning off fast user switching yet, but I can see where that might confuse the OS?
    Oh, I've also disabled waking on bluetooth activity just in case my wireless mighty mouse was losing its connection & waking the display upon reconnection - no luck.
    Any thoughts or suggestions are appreciated - it's driving me nuts, especially since I can't just turn off the iMac display itself without powering down the entire system.

    Energy Saver settings are system-wide and not specific to the user. If one user changes the settings, it's changed for everyone. Screensaver settings are user-specific.
    That said, the reason that the system wakes by itself can be one of several things: the system is set to wake up (you can set this under energy saver) by preferences or some application/service, the system receives a wake-up message from something on the network (you can configure this under Security, I believe, or Network, I don't recall), or you have "chatter" related to a device plugged into your computer.
    "chatter" is when a USB device or FireWire device sends a signal to the computer it's connected to. Normally, peripherals are quiet if not actively in use, but some things (cheap USB hubs, certain mice, etc) will spuriously send a signal to the connected computer and cause it to wake.

Maybe you are looking for

  • How do I delete an email address in Tbird?

    I want to delete one of my email addresses, because, ever though it is the "Default" email address, I can't use it. I don't get all my emails from friends or colleagues that I had before switching to Thunderbird???

  • Error occurred while trying to access desktop

    Dear friends, <br><br> I'm working with Composition Environment 7.1 trial version.<br><br> I read some other related posts, but they don't apply to our situation.<br><br> The problem is: while trying to login into the Portal (with any user) the follo

  • Why does LabView dll not work in C Thread?

    Hello Everybody, I want to use a LAbView Application as Dll in a Console Application. There is an Example Available (DLL_Example.zip)in (Displaying the Front Panel of a LabVIEW-Built DLL Function) When I use this Example in a Windows Console Applicat

  • One of the OUs won't appear in Sharepoint MySite

    Hi guys, I recently created corporate employee directory in SharePoint Foundation 2010 I have several OU's in my AD. One of the OU's won't appear in SharePoint MySite but all other OU's will and I can't figure out why. Where should I start looking? T

  • Help needed : Creating snapshots in Oracle8i

    I am facing errors while creating a snapshot in an Oracle8i Database with master table in an Oracle7.3 Database. One is that snapshot name cannot be same as the table name(master). Other is that it gives an error : ORA-12018: following error encounte