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"/>

Similar Messages

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

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

  • 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 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 waiting even after expiration time elapsing

    Hi,
    I have a table containing rows which has a specific execution time (i.e. start_time)
    I have a synchronous ever-running service (i.e. Kinda Job Consumer Svc) which has to pick a row one-by-one from the table, manipulate information and execute another async svc & afterwards will wait intelligently, till the next rows start-time.
    I am using a WAIT activity whose wait time is set dynamically, which is working absolutely fine however when there is a failure in the async svc this WAIT in parent flow, waits forever and doesn't respond back while log contains error.
    What I am looking for is:
    1) is there is any way that I can bypass the effect of failure of a async partner link, on the WAIT activity of parent flow? Any parameter?
    2) is there is a way that I can notify my WAIT activity to break?
    3) is this a bug or a feature (no pun intended) ?
    TIA
    regards
    JD

    Hello Joy,
    May be you try with a 'Pick' activity.
    It has a message and a timer, the branch which receives a response first from the child process will get executed first.
    So, you can add your wait in the message part ... which work fine, as you hv said ... and do other processing.
    In the timer, you can set the time to be greater than the wait time & if it is ... its an error. you can add code to handle this error ... here.
    Hope this helps.
    Regards,
    Madhu !

  • Wait activity doesn't finish

    I have dployed a BPEL process with a Wait activity that must wait 30 seconds. But after the 30 seconds has passed, the wait activity doesn't finish. Can anyone say me what's the problem? Thank You!!

    this is the error I have in my domain.log (it's in spanish but i will try to translate):
    <2006-10-20 13:03:22,718> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Recovery still not possible after 550 attempts due to ORABPEL-11001
    Directorio de entrada no válido.
    El valor especificado para el parámetro de activación de directorio (Físico/Lógico) de entrada tiene un valor "/temp/" no válido.
    Asegúrese de que se cumplen las siguientes condiciones para el directorio de entrada:
    1) Existe y es un directorio (no es un archivo). y
    2) Se puede leer (permisos de lectura de archivo). y
    3) Si el parámetro de activación "DeleteFile" está definido en "true", el directorio también debe tener otorgados permisos de escritura. y
    4) Si se utiliza un nombre lógico, asegúrese de que la correspondencia de nombre lógico<->directorio físico está especificada correctamente en el descriptor de despliegue.
    <2006-10-20 13:03:22,718> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Recovery still not possible after 550 attempts due to ORABPEL-11001
    The Input folder is not valid.
    The specified value for the (phisycal/virtual) directory activation input parameter has a an invalid "/temp/" value.
    How do I identify the process that is generating this problem? Because the process I deployed doesn't use file adapters but maybe it can be generated by one of the process called by the one I deployed and that I built previously using the "obant" comand.
    Thanx!!

  • Email Error When using Wait activity

    Hello,
    I have a simple bpel process which send an email after the completion. email activity is at the end. However I also have a Wait activity which waits for few secs in between the bpel process.
    If i have wait activity then the email activity is failing giving
    "java:comp/env/ejb/services/NotificationServiceBean not found error"
    If I remove the Wait activity the email is sent successfully. somehow Wait and Email activities cannot be used together.
    Did any one got this problem? Is there any resolution?
    We are running on the latest versions.

    When I tested for this scenario, I was getting TimeOut Errors & the emails were not going thru.
    Then I added a 'checkpoint()' between the Wait(waitng for 60 seconds) & the Email Activity.
    I did receive a timeOut error but after the wait-time, the process continued ahead & the emails went thru.
    May be, even you guys can try adding a 'checkpoint()' & see if it works.
    But the RC (Root Cause) still remains a mystery.

  • Multiple fill blank objects on one question slide?

    Hellou CP users, is it possible to put multiple fill blank objects on one question slide? And if, how can I manage them for quiz reporting and correct results?
    Yarik

    I think indeed that you want a score for each fill-in-the-blank object, and that is not possible with the default FIB question slides. Only MCQ has partial scoring.
    With TEB's and advanced actions that is possible. Also with the TextArea widget, as I explained in this blog post:
    http://blog.lilybiri.com/widgets-and-custom-questions-part-2
    http://blog.lilybiri.com/extended-textarea-widget-more-functionality
    TEB's have the advantage that as interactive objects, you can attach a score to them which is not the case for the TextArea widgets. But I would recommend getting Jim Leichliter's enhanced version of the TEB's as well, so that you can control what is shown in the TEB if you want to create a question with multiple attempts. I have described a use case recently in these forums but cannot remember exactly which thread. Jim's widget is free:
    http://captivatedev.com/2012/09/16/adobe-captivate-6-x-free-widget-text-entry-box-with-var iables/

  • My form has a list of yes or no questions.  I want to use either cheboxes or radio buttons.  I can't make it work.  When I check yes for one question, it marks all yes answers for all other questions.  If I mark some radio buttons to answer, it unmarks la

    My form has a list of yes or no questions.  I want to use either cheboxes or radio buttons.  Unfortunatly I can't make it work.  When I check yes for one question, it marks all yes answers for all other questions.  If I mark some radio buttons to answer, it unmarks later.  Need immediate help!!!

    Is it that you are using a PDF-based form? Did you copy and paste the Yes/No fields all the way down your form? If so, then all of the yes/no boxes are copies of each other and have the same name and properties in the PDF.
    For example, if you had:
         Question 1 and Question 1 Yes/No checkboxes
         Question 2 and Question 1 Yes/No checkboxes
         Question 3 and Question 1 Yes/No checkboxes
         Question 4 and Question 1 Yes/No checkboxes
    Then whatever answer you selected in Question 1 would populate down through the rest of the form.
    Changing the Yes/No field properties in questions two through four would eliminate the problem.
    I hope that helps,
    Brian

  • I updated to ios7 on my iphone 4 and now cant install apps and one app says waiting for 2 days now. Also it started ading apps from my wife's phone onto my phone even though we have separate apple ids.

    I updated to ios7 on my iphone 4 and now cant install apps and one app says waiting for 2 days now. Also it started ading apps from my wife's phone onto my phone even though we have separate apple ids.

    We do not share an apple ID and her phone is now logged in with her account and I have since backed it up on itunes under her account as well. I have turned off automatic downloads on her phone but they still keep downloading. I delete one app and then another one just appears on the phone.

  • Can we ask more than one question at a time in Quick Poll?

    Dear Experts,
    Can we have more than one question at a time in Quick Polling.
    The User has to answer more than one question in single poll.
    is that possible?
    Thanks in advance for your attention.
    Regards,
    Viswes.

    Hi Viswes,
    Through customize u can achieve ur requirement..
    Create two Quickpoll with different campaign name and start ongoing..
    Next create  iview for each quickpoll by using KM QuickPoll iView Template  enter the corresponding campaign name for the quickpoll iview.
    Next create one JspDynPage component in NWDS
    In that JSP file
    <iframe  src="Give the preview path of Quickpoll iView 1" align="left" >
    </iframe>
    <iframe  src="Give the preview path of Quickpoll iView2 " align="left" >
    </iframe>
    Now u create one iview for that JspDynPage component
    in that two Quickpoll question will display in one iView..
    Points are welcome if its helpful
    Regards
    Thillai

  • 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

  • One question about Pricing and Conditions puzzle me for a long time!

    One question about Pricing and Conditions puzzle me for a long time.I take one example to explain my question:
    1-First,my sale order use pricing procedure RVAA01.
    2-Next,the pricing procedure RVAA01 have some condition type,such as EK01(Actual Costs),PR00(Price)....,and so on.
    3-Next,the condition type PR00 define the Access Sequences PR00 as it's Access Sequences.
    4-Next,the Access Sequences PR00 have some Condition tables,such as:
         table 118 : "Empties" Prices (Material-Dependent)
         table 5 : Customer/Material
         table 6 : Price List Type/Currency/Material
         table 4 : Material
    5-Next,I need to maintain Condition tables's Records.Such as the table 5(Customer/Material).I guess the sap would supply one screen for me to input the data of table 5.At this screen,the sap would ask me to select one table,such as table 5.When I select the table 5,the sap would go to the screen to let me input the data of table 5.But when I use the T-CODE VK31 or VK32 to maintain Condition tables's Record,I found it's total different from my guess:
    A-First,I can not found one place for me to open the table,such as table 5,to let me input the data?
    B-Second,For example,when I select the VK31->Discounts/Surcharges->By Customer/Material,the sap show the grid view at the right side.At the each line of the grid view,you need to select the Condition Type at the first field.And this make me confused very much.Why the sap need me to select one Condition Type but not the Condition table?To the normal logic,it ought not to select Condition table but not the Condition Type!
    Dear all,I'm a new one in sd.May be this is a very stupid question.But it did puzzle me for a long time.If any one can  explain this question in detail and let me understand the concept,I will appreciate him/her very much.Thank you.

    Hi,
    You said that you are using the T.codes VK31 or VK32.
    These transaction codes are used to enter condition records for standard condition types. As you can see a grid left side having all the standard condition types like price, discounts, taxes, frieghts.
    Pl check using T.code VK11 OR VK12 (change mode)
    Here you can enter the required condition type, in the intial screen. (like PR00, MWST, K004, K005 .....etc)
    After giving the condition type, press enter or click on Combinations icon on top of the screen. Then you can see all the condition tables which you maintained for that condition type. Like as you said table 118, table 5, table 6 and table 4.
    You can select any table and press enter, then you can go into the screen in which you have all the field cataglogues you maintained for that table. For example you selected combination of Customer/Material (table 5) then after you press enter then you can see customer field on top, and material fields.
    You can give all the required values and save the conditon record.
    Hope this is clear.
    REWARD IF HELPFUL.
    Regards,
    praveen

  • 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

Maybe you are looking for

  • TABLE FIELD DETERMINATION PROBLEM

    Hi Experts, I have a problem described  below by an example . Suppose I enter in the Tcode 'MIRO' and give the value of the field 'Inv. recpt date' and 'Reference' and then press 'ENTER' . Now I just want to know that in which table the value of the

  • Smartform(Spool) to Workflow Workitem attachment

    Hi Friends,                 I have a requirement related to workflow attachment. I have a invoice no and i can generate spool related to this . Withh using CONVERT_OTFSPOOLJOB_2_PDF , I am able to create TLINE format. Can you help me to convert to BI

  • Unable to sign in from Sony XBR55X850B

    When attempting to sign in I'm getting a message "Skype has been temporarily disabled on this TV and you cannont sign-in at the moment.  An update for this TV will be available in a few weeks.  For more information visit skype.com/support".    Though

  • Add images in midlet

    hello everyone i have developed a application using sun wireless toolkit and have added some images in my midlet when i try to run it on my any nokia mopdel it runs well and all images are shown by it but as i try to on samsung D500 and iMade it is u

  • Workflow WS00000038 Purch.Req - Event REJECTED not triggered

    Hi Friends! (SAP ECC 6.0) (Tcode SWE3 - BUS2009-REJECTED is active) When using WS00000038 Purchase requisition we have problem when an item is REJECTED. the Event that is triggered is BUS2009-SIGNIFICANTLYCHANGED. This leads to that the Workflow end