FYI: 10g_network_data_model_sample

In the 10g_network_data_model sample file
$ORACLE_HOME/md/demo/network/examples/java/LoadAndAnalyze.java,
the call "NetworkManager.withinDistance(..."
shoud be corrected to "NetworkManager.withinCost(..."

Why can't I find the demo in $ORACLE_HOME/md?in Oracle 10g, examples are found on the companion cd, which is separately installable.

Similar Messages

  • FYI -- Tab Index and Safari 4 (Mac)

    I finished building a website recently and had incorporated Tab Sets on a few different pages.  Additionally some Accordion Sets as well.  Didn't think anything of it and finished off the project - let the site go live and haven't thought much about it since - except to tweak a few things and make some minor edits at the request of the client.
    One thing I had noticed repeatedly during the last half of the project as I was testing was all of a sudden this semi-translucent - grey - maybe 6px thick border would appear every time I clicked on a Tab or Accordion Tab (see screenshot below - No - the project was not for IHOP - just an example to show).  During this time the Safari 4 Beta had come out and I had grabbed a copy to play with.  Lots of interesting stuff in the Beta and several things I have noticed there and in the Final release.  For one thing Safari 4 Beta/ Final both handle Color Profiles different than Safari 3 or FF 2.x and 3.x.  I had this muted green background image (PNG file) that would show up fine in FF or Safari 3 but Safari 4 Beta/ Final both had it showing up as this bright Lime-green color.  Even IE 7 had it showing correctly - and Explorer doesn't typically play nice with PNGs - even version 7.
    Anyway - back to the Tabs.  That prompted me to pay more attention to the differences in the versions.  At first - I thought it might simply be some testing mechanism in the Beta.  As it was also showing up in the WebKit Nightlies (look it up).  But when Safari 4 Final was released this same grey box surrounding the Tabs/ Accordion Panels was still there.  It was bothering me but I had more important things to tend to.
    Tonight - I was testing something unorthodox with Tabbed Panels (no dirty thoughts) - just trying something out a client had mentioned they'd like done with their site.  Leave it to a random client to ask for the impossible and expect it to happen.  Yay!  Well as I was testing stuff out there this grey border/ box was again.  I went out to Adobe's Site - Apple's Site - Yahoo - and a couple of other big names that I knew had some form of Tabbed Paneling.  Their websites weren't doing it.  Well - I couldn't vouch for anyone other than Adobe using the SPRY Framework and wondered why Adobe had no problem getting rid of this grey border but I couldn't.
    The main site code was a little chaotic  to start with - knew this from previous experience - so I jumped to the Labs and looked at the Tabbed Panels Samples:
    http://labs.adobe.com/technologies/spry/samples/tabbedpanels/tabbed_panel_sample.htm
    Very interesting results.  I found that some of the examples were showing the grey border while other were not - on the same sample page.  Much easier than the main site as the code on the Labs Sample pages is straight forward and there for everyone to use.
    Turns out it's the tabindex="0" element that gets listed along with the TabbedPanelsTab Class in the Tabbed Panels or the main Accordion DIV.  I don't know whether there is a way to disable this or not - but it's what was default when I built my pages and inserted the SPRY Frameworks.  And with a simple "Search and Replace" - it goes away rather easily.  Once I figured that out - it was gone and that makes me like my client's new site just a little bit more.
    Anyway - thought I'd share. I'm not following up on this or tracking it or whatever this forum has to do that sort of stuff with - like I said just an FYI (on the fly).  The TabIndex element is good for Compliancy and Accessibility stuff - so it's nothing to totally kick to the curb.  And I'll probably have to later go back and figure out a balance between the annoying grey border and compliancy demands at some point in the future - but I'll jump off that bridge when I get there.
    Later!

    The border that you are referring to is called the outline. It usually helps the users to identify where they have clicked.
    You can simply delete the outline by adding the following to affecting css selector in your style sheet:
    outline:none;

  • Hi. I am using the iPhone 4S and when I'm searching for places using Google it does not automatically detect my location. How do I change this?  FYI...under settings i

    Hi. I am using the iPhone 4S and when I'm searching for places using Google it does not automatically detect my location. How do I change this?  FYI...under settings i

    If you are missing using google maps - try the Nokia map app called "here"

  • Hi. I am using the iPhone 4S and when I'm searching for places using Google it does not automatically detect my location. How do I change this? FYI...under settings i have it set at "Use new precise locations from my device."

    Hi. I am using the iPhone 4S and when I'm searching for places using Google it does not automatically detect my location. How do I change this? FYI...under settings i have it set at "Use new precise locations from my device."

    If you are missing using google maps - try the Nokia map app called "here"

  • I got problem when trying to contact my iphone 4 using facetime,it did ringing,but my iphone 4 did not receive that call as if nothing happen.But,when the call ended,that call appeared in the missed call list.fyi both are connected to internet.

    i got problem when trying to call my iphone 4 using facetime with my Macbook Pro 13',it did ringing,but my iphone 4 did not receive that call as if nothing happen.But,when the call ended,that call appeared in the missed call list.fyi both are connected to internet.Help!! thank you in advance

    i got problem when trying to call my iphone 4 using facetime with my Macbook Pro 13',it did ringing,but my iphone 4 did not receive that call as if nothing happen.But,when the call ended,that call appeared in the missed call list.fyi both are connected to internet.Help!! thank you in advance

  • New Multi-OS/CPU aware virus broke through virtualbox. For a reason.FYI

    FYI (all)
    Dear sir (RMS @ GNU),
    my apologies. That e-mail concerned the embedding (secretly) of personal information during the make process of certain gnu software but there's a new developent and I'm extremely mad : I have been looking for ways to de-obscurify certain (gnu) Make processes. During my search I found a certain GITHUB repo that provided a way to do that. It was not "AO" but another... In reality it was a virus and/or a magic trigger that broke and destroyed All my systems in a manner of 2 hours or so.
    It's a special case, methods used are not mentioned anywhere on internet. This one is multi-os aware and broke through a running virtualbox installation (I suppose via I/O hooks exploits yet unknown ). Both host and guest gets destroyed, independant of OS!
    from what I have seen:
    - the maker has somehow trojaned the Freedesktop.org desktop-daemon- input dbus helper software to gain and maintain root via init. Virtually everydebian based is thereby vulrenable.
    - the maker has found a new way (unknown to every antivirus software) to gain Admin acces to windows system via lowlevel IO and/or abused "signed drivers" - and mmaps itselfs there to propagate..
    - the virus broke through running virtualbox installations (latest installation, new installations, old VDI's) and they got all destroyed, first guest and hours or days later both host and guest installations.... also new.
    - the virus injects itself on every network IF / download / and propagates on installation (triggered) within the virtualbox installation. This happens on the host too, but hours later.
    - it eventually kills every document on every OS by spawning hundreds of processes to kill documents (overwrite, move, symlink)
    The strange thing about this, is that GNU sources / software like the sourcecode for GLIBC and GCC was left alone! Because of that and the mentioning of GNU on that repo I contacted GNU. On my windows system there was even a special message "Thanks to Freedesktop and embedded Ruby".
    The virus was obviously not meant for worldwide propagation but to target a certain audience (I suppose people like me), it's been engineered beyond belief and I triggered it somehow. In order to clean my system I tried a ISO/USB boot from AVG (linux based.) I booted from that USB and it got infected upon scanning... amazing.!!
    Anyhow.. sorry to have bothered you.
    Regards,
    To microsoft: Windows : is trojaned via virtualbox Usb I/O and/or other lowlevel I/O trickery. Obviously new methods are used, hard to reproduce and I can only mention a few details : virtualbox breakage like this is not yet mentioned anywhere and no admin priviledges are needed to reproduce. this "virus" has no signature known to clamav/kaspersky/mssc/avg/macafee. New exploits are obviously used, unknown and/or used in a similar manner. Microsoft should investigate this on their own.
    To FreeDesktop DBUS daemon: has been abused (and this darn thing is used in many debian based INIT scripts etc, in order to gain and maintain root (or worse). There was a note left on my system "thanks to freedesktop and embedded...": every Linux instance, new or old (2.6 to 3.2xxx was infected immediately). FreeDesktop: I *** your** because similar trickery is mentioned since 2009.
    To certain people at Debian: thanks for not taking me seriously or even understand what you are doing. Clueless.
    To Oracle: Every HOST that mounts an infected VDI, gets infected immediately upon boot. Or the other way around: upon scanning the filesystem. The scanning OS itself gets trojaned (reproduced via multiple USB installations/Gpart ISO, AVG iso) and gets destroyed . Even within virtualbox ..... the ISO grows to hunderds of gigs. Virtually. I suppose it's hooked via USB transport to gain accces over keyboard and mouse. In fact it doent matter what OS is used, the killing process is "universal" because it happens within the hooked kernelspace.
    To reproduce : I cannot give much details and its hard to traceback or reconstuct the order of events but I wanted to look for a way to de-obscurify a certain gnu-make process (in particular a piece of GNU software (for ..keys) from which I suspected to embed privacy information about the user and this software is used on virtually every OS and in many software packages as building block. And I certainly found one. I guess some magic 0xUL that passed my system or action I did -triggered this OS independant chainreaction or "OSkiller" process. I should have suspected this.. well. Even github trickery was (AB)used ~/.git / gitprocesses are used for some reason because every new download got the "make" process treatment instantly. Tricks to use parts of sha1 signatures (actually the gitters identification. Some people are aware of these methods and are abusing this system, not to "watermark" but to pull off this kind of work?
    The result: all my virtual Linux / Freebsd VDI/VMDK installations were completely destroyed within a manner of minutes and later the host (windows7, regular update cycle, well maintained and secured) too. It was hard to traceback and/or/try forensics because the host got infected too -- obviously no way to sandbox. (maybe I'm not clever enough). Mounting from another OS is killing that OS too. Amazing. The reason I wanted to traceback or mount a certain partition was because it contained my work on my research. I had backups (even incremental) of some instances and they all got destroyed too (unaware of the systemhooks that were luring for the magic).
    Reproducable? Yes. But hard to pull off and therefore I suppose this "virus" is not meant to propagate worldwide but targetted at a certain audience. The maker(s) has/have deep profound knowledge of windows internals, virtualbox exploits,, linux exploits, methods not seen by any anti-vir software I got running. It means there's a whole bunch of multi-os exploits, application exploits, not used or mentioned anywhere, bundled in a well prepared trap for anyone who gets the magic. I still have the infected VDI's. cannot tell if they are completely destroyed because I dare not mount it in ANY way. (I tried virtually every way possible!!!!!). Forensics could do some work on the raw material.
    Here's a brief list of software that must have already been trojaned / to kill the running OS's (on host/guest) of a target:
    - "nonfree" linux-firmware. Certain IO/dev (dbus?) userspace layers (linux)
    - linux or windows virtualbox guest addition(s): CERTAIN debian updates (* triggers the killing process). Especially the RE-make of IO kernelmods process caused a chainreaction in one case. The maker(s) did some magic there because one should assume that KERNEL code is well maintained (like Theo.d.r. does :-) )
    - (gnu) remake processes of kernel mods (RT/Pre-emt) -> guest additions. I could only reproduce this a few times because my host got killed.
    - github trickery....
    - techniques: callbacks via IO hooks on both HID and available network devices and injects itself via sockets (because every download was infected)
    - I suppose no known shellcode was used or not recognised. Every virusscanner that I got running got killed and infected upon scan, both windows and linux based, clamav and AVG mssc, macafee, kaspersky etc etc. Even a simple mount gets a host killed. Amazing.
    and all of this must have been "packaged" for a special occasion? Its profoundly layered, multi-disciplined and networked (I guess there are more related triggers to this network) and this OS killer must have been ready or "waiting" for months, none of the exploits I've witnessed are mentioned on internet or have been used on seperate occasions (except for the dbus trickery: there have been rumors but no real actions by ubuntu or debian etc etc). All these multi-cpu/os/software exploits (means transports) events that happened on my systems, both metal and virtual, are not mentioned anywhere or seperately used on other occasions or else someone would have mentioned it? Even the slightest kernel breakage or trojaned kernel in this respect should gained prestige for certain w/b hat hackers. This is beyond belief. The guest/host breakage is amazing, multi-os and the killer does its work profoundly.
    - so oracle can deal with this virtualbox breakage from host to guest and vice versa
    - linus gets his multi-OS io / kernelspace breakage, kills of every mount or gets triggered by even mmapping.
    - microsoft no idea.... no blame this should have been recognised within the security framework, but there's obviously not yet a signature known.
    I don't know if I should call this a virus. It uses virus-like techniques but on so many levels happening at once. I dont think oracle or microsoft or linux / freebsd /solaris is targetted. It looks like a well contained (only propagating on the host/guest, even socks are targetted only at localhost) - trap, the killing process is very persistant and for a reason. If this was used in a network-propagating carrier virus it should raise a Major worldwide alert. I think this unknown network of suddenly revealed exploits are means to immediatly shutdown/completely kill the running system(s) of a certain audience (like me). It's like a network and eventually a killswitch, a "destroyer" which I happened to trigger while I was investigating some things concerning privacy issues (in fact building blocks for signing of public keys). This message should raise some questions.
    And about that github repo. It's not AO.
    Thats all folks.
    0X

    We would really like to debug your problem but the provided information is not sufficient and very hard to parse. A few questions:
    - Which version of VirtualBox are you using?
    - What host systems did you use to test, only Windows 7 or also other systems?
    - Did you try to use an infected .vdi disk with a fresh installation of VirtualBox on a fresh host?
    - Which guest is affected (exact version please)?
    - You report that even your host will be infected (breaking through from a VirtualBox guest to a host). Did you do scan your host for viruses before you started your guest so you can be 100% sure that your host was clean before it was infected by the guest?
    - When scanning the infected system with a Linux-based virus scanner: Did the scan report any problems? If so, which? And did you consider to use a virus scanner on a read-only boot medium? In the latter case it is impossible that the virus scanner gets infected.
    I would appreciate if you could answer these questions, there could be more questions once I have the answers to these. But please, try to be precise and short when answering the questions.

  • How to hide "Request Information" in FYI?

    Hi all,
    Please tell me how to hide "Request Information" in FYI. I know we can do it through Workflow. But i created a FYI using AME. Is it possible to do it on functional level.
    Regards,
    Pradeep

    Found the answers:
    1. The service Impl should implement the javax.xml.rpc.server.ServiceLifecycle interface.
    In this way you get access to a javax.xml.rpc.server.ServletEndpointContext, which gives access to amongst others javax.xml.rpc.handler.MessageContext, which gives access to request information
    2. In the Handler it is possible to store information on the MessageContext, which can be accessed in the service Impl (see 1.).
    Groeten,
    HJH

  • OT: FYI - DVCPRO 50 and sync

    Just a little FYI to all those out there using the Panasonic DVCPRO 50 format at 24p...
    Audio and video will be off by one frame. The audio will occur one frame earlier than video. This has been confirmed by two Panasonic reps.
    I discovered this little tidbit when trying to group (multisync) two clips together by using the slate (clapper) as a common reference. I noticed that each and every single time the slate was closed, the audible clap came BEFORE the slate was closed. One frame before...each and every single time.
    We are shooting a pilot using the Panasonic SDX-900 camera in the 24p mode. The Panasonic reps stated that the processing of the video to get it to 24p delays it 1 frame after audio. This is normal for the camera.
    Their suggestion? Fix it in post. When you finalize (lock) picture, and are ready to output, shift the video one frame backwards to get things in sync. or, if you are going thru an audio mixer, have them shift the audio.
    Or fix it before you begin editing. How am I doing it? Well, I am cheating and using an Avid with an AUTOSYNC feature which allows me to shift the audio in the timeline then make that shift a new subclip, now in sync.
    If someone comes up with a good solution for this in FCP, I will give them a Green Star (SOLVED!)
    Thanks
    Shane
    "There's no need to fear, UNDERDOG is fixing audio so that it is in sync with video, one clip at a time!"

    I saw a Volkswagen commercial being edited...shot with the Varicam AND Sony HDV camera. They used the HDV camera for the interior of the car as it did a 180 degree pan...the Varicam wouldn't fit.
    It matched RATHER well. Then again, it was captured with the Kona 2 and in the hands of a professional colorist.
    I also heard they used the camera for one shot on JAG.
    So yeah, it has it's uses.
    Sorry, I should have just let you have your jab...
    Shane
    "There's no need to fear, UNDERDOG is shooting HDV!"

  • FYI: Extension Builder project w/ LCDS: channel-definition endpoint having context.root

    This is an FYI of an issue and its workaround.
    If developing a CS SDK Extension in Flash Builder / Extension Builder and the project is configured to use LCDS (LiveCycle DataServices), then if your services-config.xml contains Channel definitions having the variable {context.root} in the endpoint URL, then the following error will occur.  This will happen even if you are not using that Channel in your Destination channel list.
    The services-config.xml laid down when using LCDS integrated into ColdFusion has by default some channel definitions using context.root in the endpoint URLs.   This is how I encountered the issue.  On the other hand, the free developer edition of LCDS on Tomcat puts down a services-config.xml that does not have any reference to {context.root} in channel definitions, so the problem will not be encountered there.
    Since I was not using a context root (was using the default of just "/"), I commented out the offending channels in services-config.xml to resolve the issue.  One could also leave the (unused) channel definitions and then remove the {context.root} part from the endpoint.
    ERROR
    The services configuration includes a channel-definition 'java-amf' that has an endpoint with a context.root token but a context root has not been defined. Please specify a context-root compiler argument.
    CHANNEL DEFINITION
    <!--  Java Based Endpoints -->
            <channel-definition id="java-amf" class="mx.messaging.channels.AMFChannel">
                <endpoint uri="http://{server.name}:{server.port}{context.root}/flex2gateway/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
            </channel-definition>

    Make sure your context root is defined in the project properties.  This is at "project/properties/Flex Server" from the menubar or package explorer context menu.  Alternately, you can hardcode your context root in the services-config.xml file/channel definition.

  • Internal Muxing Error - How I Fixed Mine - FYI

    FYI: I received the "internal muxing error" message during a build. I thought I'd post what happened, what I found and how I mixed mine in case it helps someone else.
    I was building a project using a "project template" that I've used many many times in the past. (I just drop a new menu and new assets into an old project thats been saved without any assets). The project consisted of a menu connected to 4 tracks. Each track contains a 30 min film.
    About 70% of the way through I received the "internal muxing error" and the build stopped. This was when muxing Part 3. This happened each time I re-tried the build.
    To cut a long story short:
    I checked the built project which was 3/4 complete. I had a look at the build log and it indicated which VOB was the last and thus which one had the problem. Oddly enough a VOB for the next track had been created.
    In each track I placed 1 second of black, (a special mpeg2 and ac3 assst), at the start of the track,followed by the main asset, followed by 1 second of black again. The always worked and looked good on playback.
    I traced the probelm, through some trail and error to the 1 second of black at the end of track 3. eg; removing it resulted in a clean build, putting it back resulted in the build failing.
    I wanted to keep the 1 second of black at the end of the track, so I ended up trimming the video asset just enough so that it was about 1/2 second shorter than the audio asset, and adding back the 1 second of black at the end of the track.
    Oddly enough, this build worked. I burnt the dvd and it was fine. Everything worked.
    I really don't understand what causes the "internal muxing error" message. (I've printed some other posts and will read through them in detail when I get the chance). And I really don't understand how what I did fixed it. And as I've used this "project template" dozens of times in the past I don't understand why it suddenly failed, besides new assets everything was the same, and even the new assets were "standard", nothing new about them.
    So there it is. Weird.

    Jay, thanks for the summary.

  • Stopping FYI notification

    Now, requester enters a requisition and the Buyer autocreates this requisition to a Standard Purchase Order and approves it. When approving the PO, Buyer communicates document by transmitting it to his or her email. This way, the approved document can be forwarded to the Supplier from her mailbox.
    Often, the requester and Buyer are one and the same. Then, Buyer gets two notifications – one sent by Oracle automatically and the second with PO in it.
    The company and its Procurement group find the 1st FYI notification unnecessary. Oracle already informs the requester when his purchasing request is approved and this is enough and sufficient. The automated messages to subsequent approvers should be stopped.
    Just looking for your thoughts on how to get this done.
    Thanks,
    Sanjib

    Pl post details of OS, database and EBS versions.
    Pl see if these MOS Docs can help
    How to suppress FYI email notifications?          [Document 561752.1]
    How Not To Receive FYI Notifications in Workflow Cartridge          [Document 281889.1]
    11.5.10 How to Automatically Close Specific FYI Notifications For A Buyer?          [Document 393572.1]
    HTH
    Srini

  • Add Sur Peru & Drop FYI

    You guys just added some more channels to the guide to the spanish package today many of which are all from the same country even though there must be at least 50 channels from that country. Channels 1511, 1550, and 1666 just got added where they are all from mexico where the content on there is pretty much the same as all of the other channels that you have from mexico. There are other spanish speaking countries out there besides mexico with content that you can add. Canal sur peru for example is a channel that all providers have but verizon does not where it is an all peru channel 24/7. Whether a provider has sur peru or not it is a big factor as to who many spanish speaking families decide that they will go with for their services. Some other channels that can be had are peru magico, tv venezuela, htv musica and latino america tv. If your goal is to be the number one provider of mexican channels then i think that you have succeeded. Now i know that this post will be marked as a duplicate and that i will be directed to vote for it in the ideas section of this website but before someone does that please pass on the suggestion first and realize that you will be making my point for me when you mark it as a duplicate that sur peru is the most requested channel but verizon continues to not give their customers what they want plus they are adding channels that are similar to what is already on the guide. There are a lot of people who would add you as their provider if you had canal sur peru as part of your spanish package i can guarantee you that. Another thing that you should do is drop your guide provider FYI who is so incompetent that it is a joke that you guys actually pay them to make sure that your guide is up to date. There are so many things that are wrong with the guide that it is now a game of where's waldo where you have to try to figure out things on your own by trying to guess correctly when it is that a show will be on as opposed to when the guide claims that it is on.

    Well said alejozurdo. Verizon needs to add peruvian content to their spanish package not only for people in the washington dc area but for everyone who has their spanish package throughout the country. It is a motivating factor for spanish speaking people as to who they will have as their tv provider whether someone has canal sur peru and peru magico. If you google "fios sur peru" or "fios peru magico" you will see that a lot of people have gone online to see whether verizon has sur peru or peru magico before they choose a tv provider. The demographics of the country have changed where a company has to provide people with the things that they are asking for and if they do not someone else will. Verizon just sent out a huge press release where they boasted about how they are the number 1 tv provider in america of spanish programming which is odd since their content in the spanish package sure does not reflect the diversity of the spanish speaking community. Verizon has canal sur but that is not enough for people who want peruvian programming as there are only a few shows there. When comcast, cablevision, time warner and other tv providers were offered both canal sur along with canal sur peru they all jumped at the opportunity to add them because they know how huge a market/audience there is for peruvian content.

  • FYI: 1 possible solution and cause to Access Denied on opening PDF on network shares with Reader XI

    FYI
    Hi.
    Updated in May to another release of Reader XI.
    Got the problem stated in the titled of this post - with access denied for PDF on network shares.
    Reason:
    Long time error in Adobe Reader with shares and thumbnails causes me to use the thumbnail and preview fix done by a third party. Has worked for years - while Adobe has not seemed to care about fixing this problem ...
    That's the real reason ...having to use an almost out-dated fix now.
    However, if using the thumbnail and preview fix:
    Then its legacy interaction with Adobe Rader is probably the cause of this error - reinstall (reregister) the preview and thumbnail fix - and the problem will go away.
    ... and Adobe Reader XI is back up with protected mode working - on Network shares ... with the thumbnails there.
    Now if anybody is reading this from the Adobe staff ... please add the thumbnail and previews to Adobe Reader?
    May you forgot this did not work on shares ... like forgot "forever" ... and meanwhile users got a third party fix they reinstall everytime from the age of Adobe Reader bloatware creating the FoxIt Reader spinoff.
    Since then Reader has come a long way in tearms of realibility ... however, the missing thumbnail and preview on shares and x64 platform needs to be fixed.
    Then these "cannot" open PDF on Network shares reports may go away ...?

    If you have any bugs to report, this is where to do it: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • My iPhone 6 plus screen was crashed, how much is the cost if I want to repair it at Apple? FYI: I didn't bought Applecare

    My iPhone 6 plus screen was crashed, how much is the cost if I want to repair it at Apple? FYI: I didn't bought Applecare+. I bought my iPhone 6 plus 3 months ago in Singapore.

    $129 US. https://www.apple.com/support/iphone/repair/screen-damage/ For local pricing call your nearest Apple store. If you live somewhere other than Singapore you'll have to send the phone to someone you trust in Singapore and have them take the phone in to have it repaired. iPhone's do not have an international warranty and can only be serviced in the country they were purchased.

  • Worklist FYI task is not visible after updating protectednumberattribute2

    Hi,
    I need you guys help please. The case is that or bpel process is creating a FYI task for user notification where a custom worklist screen is created to retreive FYI tasks for the users.
    If any of the FYI task is later updated with the API, the task becomes invisible in the worklist application and also cannot be retreived with the worklist API.
    Below is the code for retreiving and updating the task. Its an struts action and the init method is executed the first time to display all tasks.
    Later the delete method is invoked and again the init method to see the remaining tasks.
    import java.sql.Connection;
    import java.sql.SQLException;
    import java.util.ArrayList;
    import java.util.Date;
    import java.util.List;
    import javax.naming.NamingException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import oracle.bpel.services.workflow.IWorkflowConstants;
    import oracle.bpel.services.workflow.StaleObjectException;
    import oracle.bpel.services.workflow.WorkflowException;
    import oracle.bpel.services.workflow.client.IWorkflowServiceClient;
    import oracle.bpel.services.workflow.client.WorkflowServiceClientFactory;
    import oracle.bpel.services.workflow.query.ITaskQueryService;
    import oracle.bpel.services.workflow.repos.Ordering;
    import oracle.bpel.services.workflow.repos.Predicate;
    import oracle.bpel.services.workflow.repos.TableConstants;
    import oracle.bpel.services.workflow.task.ITaskService;
    import oracle.bpel.services.workflow.task.model.Task;
    import oracle.bpel.services.workflow.verification.IWorkflowContext;
    import org.apache.commons.dbutils.QueryRunner;
    import org.apache.commons.lang.StringUtils;
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.action.DynaActionForm;
    @SuppressWarnings( { "unchecked", "deprecation" })
    public class Crud extends BaseAction {
         private Log log = LogFactory.getLog(getClass());
         private String getRemoteUser(HttpServletRequest request) {
              boolean isDevMode = Boolean.valueOf(System.getProperty("DEV_MODE"));
              String remoteUser = null;
              if (isDevMode) {
                   if ((remoteUser = request.getParameter("remote_user")) != null)
                        request.getSession().setAttribute("remote_user", remoteUser);
                   else
                        remoteUser = request.getSession().getAttribute("remote_user").toString();
              if (remoteUser == null)
                   remoteUser = request.getHeader("REMOTE-USER");
              return remoteUser;
         public void init(ActionMapping mapping, ActionForm form, HttpServletRequest request,
                   HttpServletResponse response) throws WorkflowException {
              log.debug("init");
              IWorkflowServiceClient wfSvcClient = WorkflowServiceClientFactory
                        .getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT);
              String remoteUser = getRemoteUser(request);
              log.debug("remote user: " + remoteUser);
              IWorkflowContext wfCtx = WorkflowUtils.getWorkflowContextOnBehalf(AppProperties
                        .getProperty("weblogic.username"), AppProperties.getProperty("weblogic.password"),
                        AppProperties.getProperty("identityContext"), remoteUser);
              log.debug(wfCtx.getClass());
              ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
              // category is CRUD
              Predicate crudPredicate = new Predicate(TableConstants.WFTASK_CATEGORY_COLUMN,
                        Predicate.OP_EQ, "CRUD");
              // should not be a stale task
              crudPredicate.addClause(Predicate.AND,TableConstants.WFTASK_STATE_COLUMN, Predicate.OP_NEQ,
                        IWorkflowConstants.TASK_STATE_STALE);
              log.debug(crudPredicate);
              List queryColumns = new ArrayList();
              queryColumns.add("TASKID");
              queryColumns.add("TASKNUMBER");
              queryColumns.add("TITLE");
              queryColumns.add("PRIORITY");
              queryColumns.add("STATE");
              queryColumns.add("PROTECTEDNUMBERATTRIBUTE1"); // trxTypeId
              queryColumns.add("PROTECTEDNUMBERATTRIBUTE2"); // trxStatus
              queryColumns.add("PROTECTEDTEXTATTRIBUTE1"); // trxNo
              // List optionalInfo = new ArrayList();
              // optionalInfo.add("PAYLOAD");
              Ordering ordering = new Ordering(TableConstants.WFTASK_TITLE_COLUMN, true, true);
              ordering.addClause(TableConstants.WFTASK_PRIORITY_COLUMN, true, true);
              List<Task> tasksList = querySvc.queryTasks(wfCtx, queryColumns, null,
                        ITaskQueryService.ASSIGNMENT_FILTER_MY, null, crudPredicate, ordering, 0, 0);
              request.setAttribute("CRUD_TASKS", tasksList);
              logTaskAttributes(tasksList);
         public void delete(ActionMapping mapping, ActionForm form, HttpServletRequest request,
                   HttpServletResponse response) throws WorkflowException, StaleObjectException {
              log.debug("delete");
              DynaActionForm deleteForm = (DynaActionForm) form;
              IWorkflowServiceClient wfSvcClient = WorkflowServiceClientFactory
                        .getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT);
              ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
              String remoteUser = getRemoteUser(request);
              log.debug("remote user: " + remoteUser);
              IWorkflowContext wfCtx = WorkflowUtils.getWorkflowContextOnBehalf(AppProperties
                        .getProperty("weblogic.username"), AppProperties.getProperty("weblogic.password"),
                        AppProperties.getProperty("identityContext"), remoteUser);
              log.debug(wfCtx.getClass());
              // category is CRUD
              Predicate crudPredicate = new Predicate(TableConstants.WFTASK_CATEGORY_COLUMN,
                        Predicate.OP_EQ, "CRUD");
              // assigned to the remote user
              crudPredicate.addClause(Predicate.AND, TableConstants.ASSIGNEE_ASSIGNEE_COLUMN,
                        Predicate.OP_EQ, remoteUser);
              // task is assigned
              crudPredicate.addClause(Predicate.AND, TableConstants.WFTASK_STATE_COLUMN, Predicate.OP_EQ,
                        IWorkflowConstants.TASK_STATE_ASSIGNED);
              // trxNo
              crudPredicate.addClause(Predicate.AND,
                        TableConstants.WFTASK_PROTECTEDTEXTATTRIBUTE1_COLUMN, Predicate.OP_EQ, deleteForm
                                  .getString("trxNo"));
              // is a draft
              crudPredicate.addClause(Predicate.AND,
                        TableConstants.WFTASK_PROTECTEDNUMBERATTRIBUTE2_COLUMN, Predicate.OP_EQ, Double
                                  .valueOf(Constants.TrxTypeId.DRAFT.getTrxTypeId()));
              log.debug(crudPredicate);
              List queryColumns = new ArrayList();
              queryColumns.add("TASKID");
              queryColumns.add("PROTECTEDNUMBERATTRIBUTE1"); // trxTypeId
              queryColumns.add("PROTECTEDNUMBERATTRIBUTE2"); // trxStatus
              queryColumns.add("PROTECTEDTEXTATTRIBUTE1"); // trxNo
              Ordering ordering = new Ordering(TableConstants.WFTASK_TITLE_COLUMN, true, true);
              ordering.addClause(TableConstants.WFTASK_PRIORITY_COLUMN, true, true);
              Task draftTask = null;
              List<Task> tasksList = querySvc.queryTasks(wfCtx, queryColumns, null,
                        ITaskQueryService.ASSIGNMENT_FILTER_MY, null, crudPredicate, ordering, 0, 0);
              logTaskAttributes(tasksList);
              if (tasksList!=null && tasksList.size() > 0)
                   draftTask = tasksList.get(0);
              if (draftTask == null)
                   return;
              try {
                   // settting the task status to Constants.TrxTypeId.DELETED
                   log.debug("update from: "
                             + draftTask.getSystemMessageAttributes().getProtectedNumberAttribute2());
                   draftTask.getSystemMessageAttributes().setProtectedNumberAttribute2(
                             Double.valueOf(Constants.TrxTypeId.DELETED.getTrxTypeId()));
                   wfSvcClient.getTaskService().updateTask(wfCtx, draftTask);
                   log.debug("updated to: "
                             + draftTask.getSystemMessageAttributes().getProtectedNumberAttribute2());
                   c.commit();
              } catch (Exception e) {
                   log.error(e, e);
         private void logTaskAttributes(List<Task> tasksList) {
              // log.debug("task:" + task + " payload: "
              // + (task.getPayload() == null ? "null" :
              // task.getPayload().getContent()));
              log.debug("***********");
              for (Task task : tasksList) {
              log.debug("\ttask owner:" + task.getOwnerUser());
              log.debug("task state:" + task.getSystemAttributes().getState());
              // log.debug("task assigned date:" +
              // task.getSystemAttributes().getAssignedDate());
              log.debug("task status :"
                        + task.getSystemMessageAttributes().getProtectedNumberAttribute2());
              log.debug("task id :" + task.getSystemAttributes().getTaskId());
              log.debug("***********");
    Please help,
    Regards
    Mehdi

    Hi ,
      I am executing the WEbservice using WSNAVIGATOR but its not execute , its getting HTML log error as  below..
    1-Web service returned error. Fault Code: "(http://schemas.xmlsoap.org/soap/envelope/)Server" Fault String: "Could not retrieve SDO HelperContext for service_id nsn.com/claimbpmproject/PRINVOKE"
    2-
    HTTP/1.1 500 Internal Server Error
    server: SAP NetWeaver Application Server 7.20 / AS Java 7.20
    content-type: text/xml; charset=utf-8
    date: Sat, 26 Nov 2011 11:40:56 GMT
    transfer-encoding: chunked
    Set-Cookie: <value is hidden>
    2e4
    <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>Could not retrieve SDO HelperContext for service_id nsn.com/claimbpmproject/PRINVOKE</faultstring><detail><yq1:com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException xmlns:yq1='http://sap-j2ee-engine/error'>Could not retrieve SDO HelperContext for service_id nsn.com/claimbpmproject/PRINVOKE</yq1:com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
    0
    Thnaks
    Sudhir

Maybe you are looking for

  • Certificate for server is Invalid ??

    Hi, Never had a problem with my mail before, but suddenly seems to have completely screwed up. Every time i try to send something it says Mail was unable to verify the identity of this server, which has a certificate issued to "______". The error was

  • Problem with mod_rewrite

    I have been trying to work on mod_rewrite for our site. I did get some VERY good help on the mod_rewrite forum but now I am hitting a wall trying to use the [P,L] condition on my Xserve. ( [L] alone works) Here is my issue from the other forum: http:

  • Want to download iPhoto on my MacBook Air.  Told I need IOS 10.10.  can't work out how to get it.  Told my updates are up to date.

    I am trying to download iPhoto on my MacBook Air.  I am told I need IOS 10.10.  I cannot work out how to get that.  I am told that my updates are up to date when I check.

  • Updated iphone 4 to 4.2.1

    I have just updated to 4.2.1 and now my phone is disabled,Error message 23 and it wont restore??? any advise??

  • Good receipt process

    Hi Gurus, At what level one step or two step good receipt process can be controlled e.g. Plant, Storage Location, Material etc. Need this info urgently. regards, raju