Access Message Wait Activity from PAPI-WS

Hi,
I am trying to access BPM Studio Message Wait activity using PAPI-WS. Am sending object as an argument but the argument values are not available in BPM.
MessageWait1 - Activity Name
In - Argument Set Name
Arguments - Contains object values.
InstanceInfo instance = session.processGetInstances(processId).get(j);
session.processSendNotification(instance.getId(), "MessageWait1", "In", arguments);
Let me know If i am missing anything.
Thanks,
Sanjay
Edited by: Sanjay_21 on Sep 14, 2009 5:32 PM

Hi Daniel,
Yes session.processGetInstances(processId) will return array and that's the reason accessing single instance using get(index).
InstanceInfo instance = session.processGetInstances(processId).get(j);
I remember, I was able to pass complex argument in ProcessCreateInstance method but unable to pass similar object in Notification method. Can't we pass complex object as did in ProcessCreateInstance.
Is it possible to provide sample on how to pass complex object
Thanks,
Sanjay

Similar Messages

  • System Exception in Message Wait Activity

    I have process A which sends a message to process B upon its completion.
    What happens when the instance is at a Message Wait Activity of process B , process A sends a message successfully to process B but process B enters into a system exception at that point of time?
    What happens to this message? Is it lost or recovered?
    Lets assume that the System Exception is handled and the instance returns back to the Message Wait Activity.
    Then will process B will still receive the message sent by process A after resumption from the System Exception or is the message lost ?

    If we're talking about notifications, not messages, and process A and B are running in the same engine, then Process A should be configured to send a notification to process B. The instance in process B can be sitting at a notification wait. Equally process B could have an instance sitting in any activity as long as the process has a notification wait in an interrupt mode. Processes with notification waits in an interrupt mode are waits that run alongside a process. The Wait is part of the process but interrupts the instance sitting anywhere in the process. After the execution the wait activity, the instance can return to the process with an Action = BACK statement. This statement is located in some automatic activity following the notification wait interrupt flow.
    Process A has a notification activity located before the end of the process. If process B cannot process the notification, the engine will retry the notification again in Process A at a latter time. So messages are not lost because the notification activity in process A is not complete until it successfully sends the notification to process B and process B receives it. Process A doesn't end until this activity is successful.
    HTH
    Mark

  • Message Wait Activity Or Notification Wait Activity for Web Service Wait

    Hi,
    I have a Message Wait Activity Or Notification Wait Activity which waits for a message from my Web-Service. But this Activity keeps on waitinf for the message even if the web-service is down. How do I make it invoke a System Exception if the web-service is down or the web-service cannot be connected?

    Hi,
    I suspect you've put a lot of thought into this and decided to take this approach, but could you describe why you're thinking your web service might be down frequently enough to do this?
    Here's one approach to having the Message Wait activity discover when something outside its control occurs. Put the Message Wait activity inside of one of two transitions going through a Split/Join. For the other transition going through the Split/Join, add a Timer activity (if you are using Oracle BPM 10g). Set the Timer activity to some period that you want to use to periodically hit the web service to ensure it is up (e.g. '5m' to test to see if the web service is up every 5 minutes). Don't have this occur every few seconds or your Engine's performance will be degraded.
    From the Timer activity there would be one transition. This transition leaving the Timer activity would be an unconditional transition going to an Automatic activity. This Automatic activity would have an unconditional transition going back to the Timer activity, and a conditional transition going to the Join activity. The logic in the conditional transition leaving the Automatic activity could be just a single boolean instance variable (e.g. "wsDown"). When the Automatic activity discovers that the web service is down, this copy of the work item instance will flow to the Join activity.
    The logic in the Automatic activity will invoke a dummy web service running on the same machine you're worried about. If an exception is thrown and caught inside the Automatic activity indicating the web service is down, you'd set a boolean flag "wsDown = true".
    The Join activity would have the logic:
    this = copy
    action = RELEASE If the "wsDown" instance variable is set to true when it leaves the Join activity, then the web service was down and the Message Wait activity was never notified from the outside web service.
    Hope this helps,
    Dan

  • How to notify a Notification Wait activity using PAPI

    I am trying to use Papi code to release an instance waiting in the notification wait activity of a process deployed in the enterprise server .... for this I am running the papi code from main method of a java class running in eclipse using the notify.send(........) method ........but when the code hits the notify.send(.......) method it is giving the following error :
    Exception in thread "main" java.lang.IllegalStateException: The component must be invoked on a server-side method.
         at fuego.components.ProcessInstance.getCurrent(ProcessInstance.java:590)
         at fuego.components.Notification.send(Notification.java:229)
         at PapiCode.main(PapiCode.java:61
    Can someone point out the error and how to resolve it ??

    Hi,
    I am a little confused with the package name of the classes and components you are invoking. If you are using the Client API PAPI, then the package name should be fuego.papi.*.
    I think you are using the internal components that should be used within a process implementation that assume running in the context of the Engine instead of a pure client application.
    Unless I am interpreting this incorrectly, you should use a client Java Application using PAPI to connect to a deployed process into an OBPM Engine.
    I would recommend you take a look at the very good introduction document that talks about PAPI, explains how to compile a program and also talks about how to write your first PAPI program client. It will also outline all the needed jar files need to include from a client application perspective. The link is: http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/papi/index.html.
    You may alternatively like to check the main Oracle BPM 10gR3 Documentation page through this link: http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/index.html
    HTH,
    eduardoc.

  • Accessing Message Header fields from envelope

    I am doing an interface with the RNIF adapter. They want me to pull the delivery header information, which is in the RNIF envelope, not the payload document and map it into some fields that exist in the inbound schema. Can this be done in message mapping? I would suppose that this question would apply if one wanted message header fields from the SOAP envelope also.
    Kind Regards,
    Chris

    Have you checked this ?
    http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm
    Regards,
    Amol

  • Message Waiting Signal from ONT - Digital Voice

    We use an Avaya IP office, that detects the MWI indicator that is being refreshed every 30 minutes from the ONT.  We have voicemail, completely turned off on our Digital Voice service because we prefer to use our own voicemail.  Problem is that even though it's all off - the ONT still does this refresh signal every 30 minutes at about 5 minutes past the hour, and the system thinks it's an incoming call. 
    Trying to explain this to support is brutal, but based on research, it actually CAN be turned off somewhere in the ONT to stop this refresh signal.  How do I explain this in a service ticket? They don't seem to understand the issue.

    Nope, we already did that in the settings on digital voice.  It gets a bit technical here, which is why it's hard to explain in a service ticket.
    Check out THIS post in relation to this:
    http://www.tek-tips.com/viewthread.cfm?qid=1701754
    Specifically down towards the end where another user quoted this:
    "Ok , I have this issue resolved but still requires more data to present to Avaya. Thanks to yankblan for pointing me in the right direction. This is a MWI burst of information. The fibre fed ONT device has a back end(at least with Bell) of Broadsoft as opposed to dms-100. I spoke to our techs in that department and they had run into a similar situation in Quebec. He was able to turn off the MWI indicator. Note that the customer did NOT have voicemail active on the line. The MWI is separate and left on whether or not they have have voicemail. After having it disabled I remained on site and no phantom rings for over an hour. He confirmed that this is standard operation of the Fibre to the business line. The burst occurs every half hour.
    Going forward the people in that department will be testing with Our Avaya support group to see what can be done in future releases to stop the Avaya from ringing. Obviously there is an issue here with the Avaya as it only rings on certain releases. If I hear any more info I'll post here."

  • I can't access messages or facetime from my mac

    I've been using messages and facetime on my macbook air for almost a year now. I am currently running OS X Mountain Lion 10.8.4. Recently I've had trouble getting onto facetime and messages from my mac. I have no problems getting on either from my iPad, but I can't seem to get on from my mac. When I try to login to messages or facetime, I get this message; "The registering device does not have appropriate credentials". I can still get on the app store from my mac, and everything else is working fine, I just can't get into messages or facetime. Does anybody know a way to fix this problem? Any help would be greatly appreciated, thanks!

    Sign out of iMessage in the Accounts tab of the preferences dialog, then sign back in. If there's no change, log out of your user account, log back in, and try again.

  • Wait Activity Problem in OBPM 10GR3

    Hi all,
    We have a recent problem with our Wait Activity.
    We have a definite interval of 5 mins to the wait activity passed on through a business parameter.
    But for some reason, the Wait activity is behaving awkwardly.
    It sometimes, waits for less than 5 mins i.e. 1 or 2 mins or sometimes waits for longer than 5 mins.
    Any idea why?

    Hi User 8752903,
    Are you talking about of Timer or Message Wait activity? I assume you are using timer since it is the only activity where you can define an Interval Constant. In this case the timer start will work only when the transition has reached the timer i.e. 5 minutes from timer start. You will have to review your process model to see if there are any scenarios where the transition to the timer is not completed.
    Regards
    Ricky

  • I get an error message "waiting for activation" while trying to turn on imessage

    I had to reset my Apple ID password. After doing this i now have to log back into everything that requires an Apple ID to operate on my 5C. I dont currently have cell coverage as im traveling in Italy for work and don't have international coverage. Is there a way for Imessage to  verify my new AppleID password without recieving an SMS from Verizon. My phone is currently in Airplane mode with date and all roaming shut off to keep from getting an expensive charge. I have Wifi through a hot spot i carry with me but the Imessage gives an error message saying "waiting for activation" From everything i have found i guess it's waiting for network (Verizon) verification. Back to my question, is there a way to have Imessage verify my new Apple ID password over wifi using my email address instead of carrier verification? This seems to have worked for Facetime but i know facetime only uses Wifi.

    Hey Andrew, 
    That is interesting issue. If you are still not activated with iMessage, then you will probably need to turn your cellular data on so it can be linked with your phone number. Go over the article below to walk you through some general troubleshooting to get it going.  
    If you get an error when trying to activate iMessage or FaceTime
    http://support.apple.com/en-us/HT201422
    Take care,
    -Norm G. 

  • Trying to transfer purchases from my 3gs onto a new PC (Vista).  Keep getting the message "Waiting for changes to be applied".  HELP!

    Using the latest version of iTunes and iOS5 on my iPhone.  Backup of the iphone seems to work fine.  My old PC died and I want to transfer my apps to my new PC.  But when I start Transfer purchases from my iPhone, it just keeps giving the message "Waiting for changes to be applied" and doesn't do anything.  I'm getting worried as I have an iPhone 4s coming and I want to move my 3gs stuff over to my new phone.  Anyone know how to fix this?

    Had the same thing happen to me a few weeks back when I switched computers and migrated.  Here's what worked on my iMac, so maybe it'll work on your iPad, too.  Go to User(your home folder)/Music.  Select/highlight your "Music" folder.  Then do Command-I ("Get Info" from the File menu), click on the padlock icon in the lower right of the new window.  Enter your user password.  Click on your username just above the now-open padlock.  Select "Read & Write" if it's on "Read Only," "Write Only," or "No Access."  Now having your user account with "Read & Write" privileges (it may have been this way already; still do this next step), click on the gear on the bottom-center of that window.  Click on "Apply to all enclosed items."  When the pop-up says "Are you sure?" (or the equivalent), say "yes."  This will grant access privileges to your user account for all the music files inside your music folder--all your iTunes stuff included).  Then you should be good to go.

  • Won't print from iPad - message: printer out of paper

    I just bought an HP Envy 7645. I set up printing on my home network through my MacBook Air (Yosemite) computer and it prints fine from the computer. But everytime I try to print from my iPad, I have failed. Air print finds the printer on the network, and sometimes it has stated it was connected and sending the document to the printer, but nothing reaches the printer and nothing gets printed. But now when the print dialog appears it states that the printer is ut of paper - but there is paper loaded in the printer and I immediately am able to print from my computer. Now when I open the printer preferences on my computer,  it says the tray is out of paper, but then I can print from the computer without problem.How can I solve this? Now on the MacBook in the dialog box it claims it is out of paper, but then prints a document.I have not been able to photocopy.THanks for any help. I have spent a couple of hours setting up this printer and trying to make it work.

    Hi Alameda, From what i understand is you are getting out of paper error message when printing from iPad using the AirPrint.Can you help me with the application from which you are trying to print. Is it a Photo or a document that you are trying to print. First lets do a sequential boot, Turn off your iPad, Router and Printer... wait for 30 sec and Turn it back on first Router, Printer and iPad.Open the input tray on the printer, make sure you have paper loaded correctly and the guides are adjusted appropriately.When closed you would get the change paper type message, make sure correct media is selected on both regular and photo tray.(If you just have media on regular tray, try to load something on phototray for testing)Try to Print and see if it works. If fails can you try downloading the HP ePrint from the AppStore and try printing with the same. Thanks...  

  • Does iCloud save voicemail messages from my iphone 5 when I back up? More specifically I am trying to access messages that were in my deleted folder at the time I last saved, that have since been cleared.

    Does iCloud save voicemail messages from my iphone 5 when I back up? More specifically, I am trying to access messages from my now deceased father that were in my deleted voicemail folder at the time I last saved, that have since been cleared.

    The iCloud backup includes visual voicemail messages.  I'm not sure if it includes the deleted ones or not, but I would assume it does.

  • Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit

    My core.log file keeps showing these errors everytime I start to stream. My streams are not viewable on PC's and only viewable on iOS devices.
    Is there something wrong with the libf4f.dll file? I'm using FMS 4.5 on Windows 2003 Server.
    2011-12-28    15:44:09    4020    (e)2611178    Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit.    -
    2011-12-28    15:44:09    4020    (e)2611423    Failed to record bbc2011-BBC73 (Unknown Error).    -
    2011-12-28    16:02:00    4020    (e)2611178    Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit.    -
    2011-12-28    16:02:00    4020    (e)2611423    Failed to record bbc2011-BBC71 (Unknown Error).    -
    2011-12-28    16:57:12    4020    (e)2611363    Server detected a backward timestamp from 5006873 to 0 in file: C:\FMSHOME\applications\livepkgr\streams\_definst_\bbc2011
    2011-12-28    17:18:21    4020    (e)2611178    Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit.    -
    2011-12-28    17:18:21    4020    (e)2611423    Failed to record bbc2011-BBC83 (Unknown Error).    -
    2011-12-28    17:36:12    4020    (e)2611178    Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit.    -
    2011-12-28    17:36:12    4020    (e)2611423    Failed to record bbc2011-BBC81 (Unknown Error).    -
    2011-12-28    18:38:09    4020    (e)2611363    Server detected a backward timestamp from 5420086 to 0 in file: C:\FMSHOME\applications\livepkgr\streams\_definst_\bbc2011-BBC82    -
    2011-12-28    19:12:44    4020    (e)2611178    Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit.    -
    2011-12-28    19:12:44    4020    (e)2611423    Failed to record bbc2011-BBC92 (Unknown Error).    -
    2011-12-28    19:23:38    4020    (e)2611178    Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit.    -
    2011-12-28    19:23:38    4020    (e)2611423    Failed to record bbc2011-BBC91 (Unknown Error).    -
    2011-12-28    20:41:50    4020    (e)2611363    Server detected a backward timestamp from 6390123 to 0 in file: C:\FMSHOME\applications\livepkgr\streams\_definst_\bbc2011-BBC93    -
    2011-12-28    21:12:05    4020    (e)2611178    Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit.    -
    2011-12-28    21:12:05    4020    (e)2611423    Failed to record bbc2011-BBC102 (Unknown Error).    -
    2011-12-28    22:49:23    4020    (i)2581247    Core (4020) disconnected from edge.    -
    2011-12-28    22:49:23    4020    (i)2581233    Core (4020) disconnecting from admin: 200.    -
    Thanks,
    Dave

    There is a concept of Absolute Time Code which enables the encoders to publish the livestream based on absolute system time rather than starting the messages from timestamp 0 everytime you append to a recording.
    I suspect you encoder is starting everytime from 0 timestamp but since the server already has recording till some time - say x, for the server these are backward timestamps and hence the continous warnings.
    Also to safeguard FMS against such conditions and cause memory crashes, we only allow messages with backward timestamps to accumulate in the process queue upto a limit and then the recording is stopped. Thats why you are observing the errors - 
    "Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit.    - 
    2011-12-28    19:23:38    4020    (e)2611423    Failed to record bbc2011-BBC91 (Unknown Error).    -"
    Try to check your encoder settings for stream synchronization or ATC settings and enable them.

  • I just upgraded to 10.9.5 and now I get a message I can't access impt emails imported from my Power Mac

    I just upgraded to 10.9.5 and now I get a message I can't access impt emails imported from my Power Mac

    What version of Microsoft Office for Mac do you have?
    Pete

  • Imassage and face time says waiting for activation from 5 days, imassage and face time says waiting for activation from 5 days

    imassage and face time says waiting for activation from long time i tried reboot ,on/off but it says same

    Read here:
    http://support.apple.com/kb/TS4268

Maybe you are looking for