Starting a resource action on its own

I have heard that it is possible to start a resource action on its own -- ie, not run as a before/after action for any of the normal operations. It makes sense that this can be done but it is not documented.
Can someone please give me an idea of how this can be accomplished?
Thanks,
Allen

     public InvoiceItem(int id, int order, float cost, float quantity, String desc, int task, String dName, int perMverticalID) {
          this.id = id;
          this.order = order;
          this.task = task;
          this.perMverticalID = perMverticalID;
          this.cost = cost;
          this.quantity = quantity;
          this.desc = desc;
          this.dName = dName;
          System.out.println("created invoiceitem: " + cost + ", " + quantity + ", " + amount);
     }

Similar Messages

  • My Mac got hacked. I was working on a word document when the computer suddenly started typing meaningful sentences on its own that describes how the hacker is skillful. At the that time I was on a password protected wifi and file sharing was off.

    This is the first time I get hacked this bad. I was working on a microsoft word document when the computer suddenly started typing meaningful sentences on its own that describes how skillfull the hacker is. At the that time I was on a friends wifi network that is password protected (not sure about the encyrption), the Os X Firewall was on. I was using the admin profile, however, file sharing was off. I'm very careful not to install any suspecious 3rd party software.
    So far I have verified permissions and fixed some errors there, and changed passwords.
    Do I have to erase/format my computer and reinstall the Os? If so is it adequte to use the internet recovery tool or will it use old and possibly infected EFI/Root files?
    Would appreciate the advice of all the Mac experts out there. Thanks

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac. 
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing. 
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects. 
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it. The headings “Step 1” and so on are not part of the commands. 
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply. 
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click anywhere in the line of text below on this page to select it:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}' | open -ef
    Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting. A TextEdit window will open with the output of the command. If the command produced no output, the window will be empty. Post the contents of the TextEdit window (not the Terminal window), if any — the text, please, not a screenshot. You can then close the TextEdit window. The title of the window doesn't matter, and you don't need to post that. No typing is involved in this step.
    Step 2 
    Repeat with this line:
    { sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|cups|isc|ntp|postf|x)/{print $3}'; echo; sudo launchctl getenv DYLD_INSERT_LIBRARIES; echo; sudo defaults read com.apple.loginwindow LoginHook; echo; sudo crontab -l; } 2> /dev/null | open -ef
    This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. 
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step. 
    Step 3
    { launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)/{print $3}'; echo; launchctl getenv DYLD_INSERT_LIBRARIES; echo; crontab -l 2> /dev/null; } | open -ef
    Step 4
    ls -A /e*/{cr,la,mach}* {,/}Lib*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts .la* 2> /dev/null | open -ef
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting. 
    Step 5
    osascript -e 'tell application "System Events" to get name of login items' | open -ef
    Remember, steps 1-5 are all copy-and-paste — no typing, except your password. Also remember to post the output. 
    You can then quit Terminal.

  • Hi guys, the MUSIC app on my 2 iPad IOS 5 starts up playing music on its own very often. Any idea how I can kill the b....rd???

    Hi Guys, Apple's MUSIC app on my iPad 2 iOS 5 starts up playing music on its own frequently, I have to stop it evy time. Any idea how I can kill the b....d?? Thank you!

    Make sure that you have quit the app when you finish using it. To do so press the Home button once to return to the Home screen. Then press the Home button twice to reveal the open apps under the Dock. Tap and hold the Music app until it begins to jiggle and a appears in the upper left corner of the icon. Tap the to quit the app. Tap the screen or press the Home button to return the Dock to it original position.

  • My MacBook Pro starts then shuts down on its own 4 seconds later. An idea on what I should do? Thanks!

    My MacBook Pro starts then shuts down on its own 4 seconds later. An idea on what I should do? Thanks!

    Is the little LED on your adapter's MagSafe plug glowing when it's connected? What color?
    It sounds as though your battery is drained and the adapter isn't charging it. Try resetting the SMC:
    http://support.apple.com/kb/HT3964
    That may start the battery charging again.

  • Mac starts up from sleep on its own

    Every few months, my iMac will start up from sleep mode on its own. Why does it do this, and is it something to be worried about?
    I am  not touching the mouse or keyboard or using any remotely connected devices when this occurs. Thanks!

    There are different things that can wake it up, every few months- I wouldn't worry about it.

  • New iPhone 4S starting to turn off on its own.

    So, I've had my iPhone 4S for day now and today it turned off on its own 2 times now. What could be the cause of this?

    Bump. Still need help.

  • Cube starts up & shuts down on its own

    I've got a G4 Cube, 400 mhz, 80 mb hd, 1 gb ram, OS 10.4.11.
    It's recently developed this odd habit of periodically starting up for no reason at all. There's nothing anywhere near the power buttons on the cube or the display, you didn't touch it, you didn't touch the desk, the mouse, the light switch on the wall, nothing. And suddenly, bing, it's starting up.
    Which isn't so terrible by itself. Spontaneous startups I could live with.
    It's more the spontaneous shutdowns that annoy me. My wife will be checking email, visiting a website, whatever, and suddenly the computer just shuts down. Sometimes it shuts down, then starts up, then shuts down again just for kicks.
    I've reset the PRAM, and that did nothing. I'm thinking I'll try resetting the PMU button on the board, but I'm wondering if anyone has an idea on what might be causing this.
    The Cube has an unusual power button, as some of you know, so I'm guessing there might be something about the touch-sensitive variety that makes this sot of thing possible.
    Anyway, any thoughts?
    Thanks.

    Do you have anything around that is creating static? any of those tesla coils or lighting balls by chance? Pets? Where does the computer sit (desk, floor, etc)?
    see if you can ground the system somehow with a grounding strap or something - my guess it's gotten over stimulated or is failing...

  • Macbook pro keeps changing volume and starting music from itunes on its own.

    Have I got a virus, or is this some kind of poltergiest situation? SEND HELP.

    This is not a virus. Sounds like there's an Apple remote being used in the vicinity of the computer, and it's picking up the signal. If you have an Apple TV, note that the Apple TV remote can also control your MacBook Pro in the manner you describe.
    I had a similar situation myself... turned out to be my 2-year-old playing with my Apple remote.

  • My Macbook Pro started freezing all the time & going to sleep on its own for no reason

    I've been having trouble for a few weeks with my computer freezing way too often for seemingly no reason - I'm using it exactly the same way I always have with no problems, and even actively trying to have less applications open (which seems to have no effect). I can't always load simple webpages without it freezing and giving me the color wheel and it's just MUCH slower in general. It is seriously making it difficult to use my computer for work  or for fun...
    It has also started going to sleep on its own - the screen will just go black (or sometimes BLUE) and the keyboard lights turn off, and the only way to get it to wake back up is to close the computer, wait, open it again and click or press a key. It doesn't respond to any keys/clicks until it has been closed and reopened.
    It seems to overheat really easily lately as well - but it does not always overheat when it freezes.
    SMC reset did not seem to have an effect. Activity Monitor doesn't show anything crazy, everything is pretty much 0% except Firefox around 7-12% as I'm typing this. 246 GB available on my hard drive so that doesn't seem to be the problem either. Right after restarting my computer it seems better but the problems quickly resurface...
    I googled for help before posting this and someone had suggested running the command
    syslog -k Sender kernel -k Message CReq 'Channel t|GPU D|I/O|find tok|n Cause: -' | tail | open -ef
    in Terminal, which they said "Normally the command will produce no output, and the window will be empty." But mine gave this:
    Tue Apr 15 21:04:24 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Tue Apr 15 21:04:42 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Tue Apr 15 21:35:04 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Tue Apr 15 21:35:20 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Wed Apr 16 10:56:46 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Wed Apr 16 10:57:03 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Wed Apr 16 12:11:17 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Wed Apr 16 12:11:35 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Wed Apr 16 12:11:52 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Wed Apr 16 12:23:01 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    I don't know what that means or if that is useful info to help solve my problem? I just want to know what I can do to make my mac go back to normal!
    I ran Etrecheck:
    Hardware Information:
        MacBook Pro (15-inch, Early 2011)
        MacBook Pro - model: MacBookPro8,2
        1 2 GHz Intel Core i7 CPU: 4 cores
        4 GB RAM
    Video Information:
        AMD Radeon HD 6490M - VRAM: 256 MB
        Intel HD Graphics 3000 - VRAM: 384 MB
    System Software:
        Mac OS X 10.6.8 (10K549) - Uptime: 0 days 0:24:42
    Disk Information:
        Hitachi HTS725050A9A362 disk0 : (465.76 GB)
            (null) (disk0s1) <not mounted>: 200 MB
            Macintosh HD (disk0s2) / [Startup]: 465.44 GB (229.26 GB free)
        MATSHITADVD-R   UJ-898 
    USB Information:
        Apple Inc. FaceTime HD Camera (Built-in)
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Computer, Inc. IR Receiver
    FireWire Information:
    Thunderbolt Information:
        Apple, Inc. MacBook Pro
    Kernel Extensions:
        com.digidesign.iokit.DigiDal    (8.0.3f1)
        com.paceap.kext.pacesupport.snowleopard    (5.7.2)
    Startup Items:
        DigidesignLoader: Path: /Library/StartupItems/DigidesignLoader
        M-AudioFastTrack: Path: /Library/StartupItems/M-AudioFastTrack
        PACESupport: Path: /Library/StartupItems/PACESupport
    Problem System Launch Daemons:
        [System]    org.samba.winbindd.plist 3rd-Party support link
    Launch Daemons:
        [System]    com.adobe.fpsaud.plist 3rd-Party support link
        [System]    com.google.keystone.daemon.plist 3rd-Party support link
        [System]    com.microsoft.office.licensing.helper.plist 3rd-Party support link
        [System]    org.eyebeam.SelfControl.plist 3rd-Party support link
        [System]    PACESupport.plist 3rd-Party support link
    Launch Agents:
        [System]    com.google.keystone.agent.plist 3rd-Party support link
        [System]    com.hp.help.tocgenerator.plist 3rd-Party support link
        [System]    com.m-audio.mobilepremkii.helper.plist 3rd-Party support link
    User Launch Agents:
        [not loaded]    com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist
        [not loaded]    com.facebook.videochat.[redacted].plist 3rd-Party support link
        [not loaded]    com.spotify.webhelper.plist 3rd-Party support link
    User Login Items:
        Flux
        iTunesHelper
        RescueTime
    Internet Plug-ins:
        o1dbrowserplugin: Version: 5.2.4.18058 3rd-Party support link
        nplastpass: Version: 2.5.5 3rd-Party support link
        Unity Web Player: Version: UnityPlayer version 3.5.2f2 - SDK 10.6 3rd-Party support link
        RealPlayer Plugin: Version: Unknown
        Silverlight: Version: 5.1.20913.0 - SDK 10.6 3rd-Party support link
        FlashPlayer-10.6: Version: 13.0.0.201 - SDK 10.6 3rd-Party support link
        QuickTime Plugin: Version: 7.6.6
        Flash Player: Version: 13.0.0.201 - SDK 10.6 3rd-Party support link
        googletalkbrowserplugin: Version: 5.2.4.18058 3rd-Party support link
        SharePointBrowserPlugin: Version: 14.4.1 - SDK 10.6 3rd-Party support link
        AdobePDFViewer: Version: 10.1.1 3rd-Party support link
        iPhotoPhotocast: Version: 7.0 - SDK 10.7
        JavaAppletPlugin: Version: 13.9.8 - SDK 10.6 Outdated! Update
    iTunes Plug-ins:
        Quartz Composer Visualizer: Version: 1.2
    3rd Party Preference Panes:
        Flash Player  3rd-Party support link
        Growl  3rd-Party support link
        M-AudioFastTrack  3rd-Party support link
        M-Audio MobilePre  3rd-Party support link
    Old Applications:
        None
    Time Machine:
        Time Machine information requires OS X 10.7 "Lion" or later.
    Top Processes by CPU:
             5%    firefox
             3%    EtreCheck
             2%    WindowServer
             2%    hidd
             1%    mds
    Top Processes by Memory:
        545 MB    firefox
        74 MB    mds
        57 MB    WindowServer
        41 MB    Mail
        41 MB    Finder
    Virtual Memory Information:
        1.88 GB    Free RAM
        818 MB    Active RAM
        458 MB    Inactive RAM
        880 MB    Wired RAM
        190 MB    Page-ins
        0 B    Page-outs

    Eric - I dont understand how I'd use caffeinate.  I am not running any code or particular script.  My system goes to sleep if surfing the web, or running Word or Excel, etc. 
    Or..  Are you saying I should go through and type 'caffeinate X' for all of my applications?

  • How can I stop my iPhone 5 from starting the music player randomly on its own?

    I have an iPhone 5 running the latest version of iOS.  Sometime last year (maybe shortly after I originally upgraded to iOS 7), the phone developed a nasty habit of starting up the music player during phone conversations when I connected to my Mazda's Bluetooth system.  Oddly enough, I can hear the music playing over the phone conversation but the person on the other end of the phone line can't.  To stop the music, I have to open the Music App and then close the App.  Note that the Music App did NOT have to be previously open for the music to start, and the Music App doesn't usually show as an open App even after the music starts on its own.  The problem has persisted through the last few iOS updates and it now happens in a broader range of circumstances (e.g., I have told the iPhone to forget the Mazda adapter, and it now does the same thing with my Plantronics Voyager Bluetooth headset).  I usually have to go through this sequence at least twice per Bluetooth pairing session before the phone stops trying to start the music player on its own during phone calls.
    The problem went away temporarily when I did a full reset of the phone, but it came back after a few days (even when I added apps & music back without restoring from an iOS backup).
    Has anyone found a way to fix this problem once and for all?  If I can find a fix, it's enough of an annoyance that it might convince me to go Android with my next phone.  Thanks in advance...

    I've tried syncing with itunes and icloud.  The missing contacts are nowhere to be found.  I just re-enter them on my iphone and proceed on my not so merry way.  Next time I look for a contact, it might be there or it might not.  It is not necessarily the same contact.  It appears that my oldest contacts seem to be the ones disappearing

  • Ipod Nano Turns off/on on its own

    hey guys.
    My ipod nano works like a champ, but all of a sudden it has started turning on all on its own. It also wont charge when its hooked up to the alarm clock/dock.
    weird.
    Any ideas?
    Thanks for your help!

    Make sure the battery is charged.
    When the iPod shuts itself off, try "resetting" ..
    Hold the On/Off Sleep/Wake button and the Home button down at the same time for at least ten seconds, until the Apple logo appears.

  • Need to paste on/off button in its own event structure?

    I am studying the CLD exam car wash vi attached.
    First question, I noticed the Start button is pasted inside its own event structure. Is this absolutely necessary, can I just paste somewhere else? 
    I guess it was paste there because the Start button has no wiring so it looks neater to paste in its own event structure, am I right?
    Second question, I noticed the Stop button is already wired to the red while loop stop, so pressing it would stop the vi already. But there is also the Stop value change event, this looks redundant, no? Or is it something really necessary??
    Solved!
    Go to Solution.
    Attachments:
    Car Wash LV86.zip ‏73 KB

    Both are necessary.
    1. The boolean's terminal while be read when the event is triggered. This read triggers the latch operation (so the button snaps back).
    2. The event structure would wait for an event and nothing would happen until another event is triggered. Only after the event structure is 'run', the stop value is read.
    Felix
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

  • Why does my iPad shut down out of apps on its own

    My iPad one is starting to shut apps on its own and not run the Internet properly

    No One Knows yet Why It Shuts Out Of Apps Its Not Apple Its The Makers They Are The Bug Fixers It Will Fix The Bug Maybey.If Not Do FeedBack Once Your In The App And tell Them It.If They Dont Do It In The Next Update Then Maybey Emal Them.It Takes A Long Time For Them To FIx That Bug.

  • Dv9933 auto shut down on its own

    my dv9933 laptop is about 15 months old. it worked fine until yesterday. Nothing changed configuration wise, the machine started to shut down on its own. I turned it on, it shuts down in 5 to 10 minutes. Sometimes it even shuts down during windows loading stage. The machine is not hot so i don't think it's a over heat issue.
    I had an issue before and don't know if it was related to this one. The machine used to start up on its own. I don't usually shut down the machine and used to put it into sleep mode.  But sometimes it just starts up by itself. This is not a too serious problem but now, i cannot even get the machine start and running. it just keeps shutting down..... any suggestions is appreciated. 
    Thanks. 
    James

    Take it to an Apple Store for evaluation or call Apple support.

  • When I use the keyboard on my iphone 5, the keyboard takes a mind of its own.  If I press a letter sometimeIs it puts the letter twice.  It puts periods when I don't want it to.  And if I hesitate on a letter it starts erasing everything I just typed.

    When I use the keyboard on my iphone 5, the keyboard takes a mind of its own.  If I press a letter sometimes it puts the letter twice.  It puts periods when I don't want it to and if I hesitate, the keyboard starts erasing everything I just typed.  Is there a setting I need to change to make this go away?

    What user troubleshooting have you tried? The user troubleshooting steps are restart, reset, restore from backup and restore as new. Usually a reset will fix most of the unusual actions by the device.

Maybe you are looking for

  • How do I uninstall adobe cs6 and re install it

    I had to wipe my mac's hard drive. When I went to put CS6 back onto my computer I dragged it from my external hard drive. Now every time I try to open one of the programs I am being told to uninstall it and reinstall it via error 16 When I went to tr

  • LIST_TOO_MANY_LPROS error for alv list output

    Hi All, we are displaying two lists in one output by using resue_alv_list_output by passing  list_append = 'X'  to l  IS_LAYOUT   parameter. when we are using like this we are getting the LIST_TOO_MANY_LPROS  error.please suggest. please find the bel

  • Main Stage 2 Mixing Console plus backing track play list ?

    Is it possible to set up a play list of backing tracks in the 8 channel mixer template ? I need to run 4 sets of 10 songs all within the 8 channel mixer since the band all plug into my presonus and we use the Mainstage mixer as our main board. I need

  • Dragging and Dropping eBooks in iTunes

    I have iTunes 11.0.1 on my MacBook 2,1 that I use to sync my Music to my iPad, third generation.  I am told that I can use iTunes to also sync non Apple Store purchased eBooks purchases to my iPad.  I would do this by just dragging /dropping the eboo

  • Prompt performance and Constrain problem

    Hi All, I am facing a performance issue in the report prompts. For a report i have week start date and week end date and i constrain them in the prompt.So,it fetches only one week end date for a start date. but the requirement is to see all the week