Wait activity attributes

Hi,
I am using WF 2.6.x for my project. I am facing a problem in using WAIT (standard) activity.
I have set wait mode as "RELATIVE TIME" and given relative time as "0.001". This means the wf engine has to wait for about 1 min 30 seconds from the time wait activity started.
When this process is run, the wait activity is still running even after 20 minutes.
Please help me what is wrong and why the wait is not complete after such a long time.
Regards,
Vinay

Raja,
See below output of wgbkgchk.sql
ItemType ItemKey ACTID Activity Label     Begin Date Status
VK_ORD 4 124338 WAIT           27-APR-04 18:50:00 DEFERRED
VK_ORD 5 124352 WAIT           27-APR-04 19:20:00 DEFERRED
VK_ORD 6 124366 WAIT           27-APR-04 19:20:00 DEFERRED
I executed the wfbkg.sql, but no luck.
Please help.

Similar Messages

  • One question on WAIT activity

    Can I get the wait parameter (ex. PT10M) from a variable?
    I've tried with this, but it don't seems to work:
    <wait xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" for="bpws:getVariableData(&quot;pippo&quot;, &quot;payload&quot;, &quot;/tns:ProvaCatapultResponse/tns:result&quot;)" name="wait"/>
    Variable "pippo" contains the value for my wait activity.
    This is the normal sintax for the wait activity:
    <wait xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" for="PT10M" name="wait"/>
    Thank you
    Andrea

    the args for getVariableData needs be escaped using single quote ('), like:
    <wait xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" for="bpws:getVariableData('pippo', 'payload', '/tns:ProvaCatapultResponse/tns:result')" name="wait"/>
    Attribute "for" takes literal xpath expression, here you need to esacpe using single quote ('), like
    <wait xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" for="&quot;PT10M&quot;" name="wait"/>

  • Wait Activity

    I am doing a proof of concept. I created an async. BPEL process that issues an email, then has the wait activity for 2 mins., and then is suppose to issue a second email. The second email keeps erroring with the following <faultInfo>java:comp/env/ejb/services/NotificationServiceBean not found in ActivityManagerBean. Does anyone know what would cause this? If I take the wait activity out, both emails are sent and there is no error.
    Bonnie
    Here is the total Fault message...
    InvokeNotificationService (faulted)
    [2008/01/15 11:31:08] Faulted while invoking operation "sendEmailNotification" on provider "NotificationService".less
    -<messages>
    -<input>
    -<varNotificationReq>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="EmailPayload">
    -<EmailPayload xmlns="" xmlns:def="http://xmlns.oracle.com/ias/pcbpel/NotificationService" xsi:type="def:EmailPayloadType" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <FromAccountName xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">Graebel_BPEL_Email
    </FromAccountName>
    <To xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">[email protected],[email protected]
    </To>
    <ReplyToAddress xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
    <Subject xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">test
    </Subject>
    -<Content xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
    <MimeType>text/html; charset=UTF-8
    </MimeType>
    <ContentBody/>
    </Content>
    <EmailHeaders xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
    <Cc xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
    <Bcc xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
    </EmailPayload>
    </part>
    </varNotificationReq>
    </input>
    -<fault>
    -<NotificationServiceFault xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
    -<part name="faultInfo">
    <faultInfo>java:comp/env/ejb/services/NotificationServiceBean not found in ActivityManagerBean
    </faultInfo>
    </part>
    </NotificationServiceFault>
    </fault>
    </messages>
    [2008/01/15 11:31:08] "{http://xmlns.oracle.com/ias/pcbpel/NotificationService}NotificationServiceFault" has been thrown.less
    -<NotificationServiceFault xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
    -<part name="faultInfo">
    <faultInfo>java:comp/env/ejb/services/NotificationServiceBean not found in ActivityManagerBean
    </faultInfo>
    </part>
    </NotificationServiceFault>

    would this post be of help ?
    Email Error When using Wait activity

  • Access to variables in an until clause of a wait activity

    Hi,
    I want to write a wait activity waiting for a variable to be set to a specific value. My code is something like
    <process name="VacationRequest" targetNamespace="http://xmlns.oracle.com/Test" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
    <variables>
    <variable name="isDataFollowedUp" type="xsd:string"/>
    </variables>
    <wait name="Wait_For_DataFollowedUp" until="bpws:getVariableData('isDataFollowedUp') = string('true')"/>
    </process>
    The process is valid but compiling it I get the folowing warning:
    Warning(110):
    [Fehler ORABPEL-10070]: ungültiger deadline-Ausdruck
    [Beschreibung]: in Zeile 110 von "C:\Programme\cygwin\home\hhuber\cvs-out\mywork\VacationRequest\process\VacationRequest.bpel", deadline-Ausdruck "bpws:getVariableData('isDataFollowedUp') = string('true')" in <wait> hat ein falsches Format.
    [Mögliche Behebung]: wenn der deadline-Ausdruck ein Literal ist, vergewissern Sie sich, dass der Literal-Ausdruck in einfache Anführungszeichen oder &quot; gesetzt ist. Beispiel: "'bpws:getVariableData('isDataFollowedUp') = string('true')'".
    (sorry for german output, essentially it states that the deadline expression does have the wrong format and if it icomprises a literal I should make sure it is surrounded by single quotes).
    I cannot figure out what's wrong with my code (and I've already tried some quoting stuff...), so I would be grateful for any hints.
    Thanks in advance,
    Hans.

    just first idea.
    define boolean variable isValid. initiate to false.
    define boolean variable isFinished. initiate to false
    put while activity with expression not isFinished
    place inside while pick activity. Into pick activity place two onMessage activity, one for user action1 and another for user action2. You can remove onAlarm flow.
    onMessage action1 will be responsible for validating user input and seting isValid to true if input is correct.
    onMessage action2 will check whether isValid is true and if yes then it will perform required operation and after that it will setup isFinished to true. Otherwise it will ignore user input.
    Does it solve your scenario?

  • 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

  • Problem with Wait Activity in OBPM 10GR3

    Hi all,
    I have a set of automatic activities and then an exception path which when entered has a Wait Activity which waits for the process for a few minutes before resuming and going back to the automatic activity where the exception occured.
    Now, I have changed the Number of Concurrent Executions for all my automatic activities to 20 in Advanced Properties of Automatic Activities.
    Now , there is no such option to change the Number of Concurrent Executions for Wait Activities in Advanced Properties of Wait Activities.
    So now, all instances keep on waiting in the Wait Activity inspite of the wait time being surpassed and do not move forward.
    Why is that so?
    Any idea?
    Do I need to change back to Unlimited Concurrent Executions especially for all activities in the exception flow?

    Well here is the problem..
    I have a Wait Activity with a Wait Interval of 5 mins.
    It was working fine before. It used to wait for 5 mins and then continue with the rest of the process. At that time I had not changed the Number of Concurrent Executions in the Advanced Properties of all Automatic Activities. The Number of Concurrent Executions were Unlimited.
    Right Click on Any Automatic Activity---> Select Properties --> Select Advanced and you should see that option i.e. Number of Concurrent Executions .
    Now I have made it Limited and given a number of 20 Concurrent Executions instead of Unlimited.
    Somehow now I find that the Wait Activity waits for more than 5 mins. Sometimes even 20 to 30 mins. Not sure why?
    Any idea?
    Is it because I changed the Number of Concurrent Executions for Automatic Activities from Unlimited to 20? Or is there any other reason? And how to fix this problem?

  • 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

  • How to implement wait activity in OWB process flows?

    Hi,
    I am using OWB 10G R1.
    There is no wait activity in process flows.
    My scenario is, whenver a trigger file is created, I want to proceed with the process flow. If the trigger file doesnot exist, then I want to put the process flow in a wait state, until the trigger file is created.
    Here I used File_Exists activity. But it is checking for the file only once. And it returns warning.
    After that, I want to add an wait activity for certain period of time. How can I do this? Is there is any package,procedure or function to do that?
    Any help is appreciated.
    Thank you,
    Regards,
    Gowtham Sen.

    Gowtham,
    Well the following hint is provided by oracle warehouse builder help.........
    The time-out setting for the workflow engine determines how long the File Exist activity waits for a file. If the file does not arrive before the time-out setting expires, the File Exists activity terminates with errors.
    well someone with deep workflow knowledge can answer this one...
    If you get the answer please share with us.....
    Regards,
    Suraj.

  • 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.

  • Process Notification and Notification Wait activity - External Relationship

    Hi,
    I have a query relating to the Process Notification and Notification Wait activity.
    In my Process Creation after finishing 2 interactive avtivities I need to send notification or inform the instance
    waiting in a Notification Wait activity.
    For this Im using ALBPM Predefined Process Notification activity to send Notification.
    Im defining instance variable and mapping it as argument to Notification Wait activity.
    I have set the type of event to wait for as External relationship.And defined a correlarion
    at Notification Wait activity by setting initiate property as Yes and defined association with
    argument mapping.And selected the same correlation from the Process Notification activity.
    When im trying to execute the same always im getting the exceeption as Instance was not found for notification.
    Please help me to resolve this issue.
    Thank You,
    ~Kavitha

    Hi Matthias,
    What you have experienced is exactly how it works, the notification is processed after the screenflow is finished.
    I tested a lot some time ago and also really happy that worked well.
    Regards

  • 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

  • Wait Activity not waking-up on time

    Hi,
    We have several flows that utilise Wait Activities to wait until a specific time. Occassionally we have noticed that the flow remains within the Wait Activity after the wait time has passed.
    A specific example occurred today where at "2009/10/20 09:06:25" the Wait started with expiry time of "2009/10/20 11:47:55" - it is now 20/10/09 12:16:26, and flow is still within the wait. Given enough time I know the flow will awake, but I am unsure how to investigate the cause.
    we on BPEL version 10.1.3.1.
    Thanks - Anit

    Anit, This might have been happening because of heavy load on bpel server. Pls refer to metalink doc ID 561172.1

  • Wait activity not getting expired

    Hi All,
    I have included a "wait" activity in my BPEL process. It will wait for 30 min. The time has expired, even then it is waiting in the same state and the flow is not proceeding futher. Kindly help me in resolving this issue.

    Please recheck ur wait activity. Default time which comes in wait activity is one day.
    So please make sure that u have removed that 1 while specifying the wait time

  • Wait activity does not expires after giving time frame

    Hi all,
    We are using SOA suite version 11.1.1.5. In our process, we use a wait activity so that the process will wait for a certain time frame (say 1 min) and again proceeds when the wait activity time expires.
    The above process was running successfully for some months. But suddenly the instances are getting stopped in the wait activity and they are not proceeding after the given time.
    The audit trail shows wait activity pending. And the wait activity does not expires even after the respected time.
    Kindly suggest the possibilities of this scenario.
    Regards,
    Gopi

    Hi Gopi,
    You can look at the logs to see if there are for any errors/warnings during the wait activity execution.
    A possible explanation can be due to an error in a later on activity (like invoke or assign). If you have an error that you didn't catch, the process will try to rollback to the last dehydrate point (in your case the wait activity) and stuck there.
    Thanks
    Arik

Maybe you are looking for

  • Error : (does not begin with '%PDF-'. ) when print report in pdf

    Hi all, http://www.oracle.com/technology/obe/apex/apex31nf/apex31rpt.htm using the example in the above link, I have created a report and tried to print in pdf format, But does not begin with '%PDF-'. this error is appearing when the adobe reader is

  • How do I transfer my pictures from one iPhone to another

    How do I transfer pics from an old iPhone to a new one?

  • Problem in writiing data to UTL_File

    Hello Friends, I'm using UTL_FILE to write the data into csv file, but in the table 1 description column is there which contains 3000 characters. My problem is i'm not able to write more than 750 characters in csv file and if i tried to do so then ge

  • DMS Tab it's not visible in Project Management (PPM 5.0)

    Hello Gurus; I have been active the SAP DMS option in: SPRO --> SAP Portfolio and Project Management --> Project Management --> Structure --> Define Project Types And configured the document settings: SPRO --> SAP Portfolio and Project Management -->

  • Wsdl to xi to proxy

    Hello experts, I have a scenario where i will be given a wsdl, that will be sent to XI and from there to proxy. So from XI perspective, do i just add the wsdl as external definition , use the sender SOAP adapter and and XI adapter for proxy? or do i