Wait step in fork

hi all,
i have one problem in workflow  i am using wait for event step  in fork but the event is not coming....
i tried to create the event using function module but its not coming
i think it is taking null object so i tried using create event step in workflow but it didnt work....
i am creating the event through function module (activity)  but  it is not processing after that step..
i tried to search in forum but i didnt find the solution...
please help
Piyush jain

yeah i traced the event it is coming in event trace
actually i have three events in zbo created ,approved ,rejected and accordingly i defined the activity
for three events but the wait step is not processed yeah it is showing in event trace but the event is not coming in
workflow step .....i am not using correlation step in that
thanks for reply
piyush

Similar Messages

  • Wait step in ccBPM

    hello everybody,
    i have a BPM process in my PI with a fork function and 2 braches.
    I would like that second brache wait 5 second before starting .
    I tried to use wait step but i see possible values are minutes, hours, days, months, year....
    why no seconds??
    Can i set value 0,1 minutes for wait 6 seconds??
    thanks in advance
    alex

    Hi Alex,
    minimum is one minute.
    BPM is using a job to trigger a message after a wait step, so it can be in reality 1 min and 59 sec.
    But only if you customize that in
    SXMB_ADM_BPE / Automatic BPM Customizing / Maintain Runtime Environment /Schedule Background Job for Workflow Deadline Monitoring
    Set interval to 1 minute
    Regard,
    Udo

  • ERROR in the wait step

    Hi all,
    I have a requirement, where automatic payment proposal goes for an approval process. When the proposal has created in the tcode F110 based upon user who has loged in a push button "Trigger Workflow" will appear once proposal is made (enchansment), When the user press this button workflow will be triggered using the function module. After that i am finding the approver details. After this step type, i am checking for the condition (payment or proposal) if it is proposal flow will proceed futher. After this i have used a fork step - two branches 1. for the workflow proceed further 2. cancle the workflow when and event "ZSAVE_ON_CLICK" (custome defined event) is triggered.
    I am getting the error at this wait step. The error is ""Workflow 000000703573 wait step 0000000248: No valid object ID in container element 'ZbusF110'""
    Thing i have done.
    1. I check the binding, here i am passing two key values of the bo to my workflow container from the event container.
    2. When i tried to bind the EVTOBJECT to zbusf110 - it is giving me an warining "'_EVT_OBJECT' is not an export element and hence sometimes has no defined value"
    Kindly help me in solving this issue.
    Thanks and Regards
    Balaji K.

    It is working fine

  • Abap-Class-Event in Wait Step

    Hi guys,
    in my workflow i have an activity with an abap method. This method works like a dialog. This means, i get a workitem in the business-workplace which shows a webdynpro where a pdf is displayed and where i can choose whether i click on button1 or button2.
    When i click on one button, an abap-class event will be created. This event has a container. My target is, to bring the user desicion back to the workflow via event.
    When i start a new workflow with this event then it works fine. But i dont want 2 workflows. I need a solution with one workflow. So i use a fork in my workflow. In branch 1 i have the activity which displays the pdf and create the event. In the other branch i have a waiting step, which waits for the event and bring the user-desision from the event-container to my workflow-container.
    That was my plan, but it dont works this way. I checked the event-trace and theres no receaiver entered for my event. So my workflow stoped at the wait-step (wait step is ready).
    I read, the the workflow system is automatikly doing the type-linkage and the instance-linkage, but i found only the instance-linkage filled. Can it be, that the wait step is only working with BOR-Events?
    Any ideas?

    Hi swangir,
    i tryed this FW SAP_WAPI_WRITE_CONTAINER some days ago. I can use SAP_WAPI_READ_CONTAINER easylie but when i try to modify the container then i get an enqeue exception in the SAP_WAPI_WRITE_CONTAINER FM. I guess this came up, because i call the webdynpro from an activie-step in the workflow and not a dialog-step. So i guess the container is locked and i cant write. I also tried to unlock it with dequee_e_ .. FM i forgot the name. But it also didnt work.
    Thats why i tryed to bring the user desision via event back to the workflow. And it works, as long i use 2 workflows, like i explained in my first post.
    What do u mean with...
    "Alternatively, you can bind back the class event container to workflow container by binding back from the dialogue step."
    Andre

  • Alternative to Wait step.....

    Hi,
    I needid that I have to send the messages based on time.
    There are 2 receiver,I need to receive in 10 minitues and the other in 180 minutes.
    Please Explain me the same in step by step in detailed way.
    Thanks in advance,
    P.Srini

    Hi Srini,
    First you need have in BPM
    In the below both cases you should have the correlation.
    If you use two receive step one by one sequentially in Blok or out side.
    1.Wait step with wait time 10 minitues before first receive step.
    2.wait step between the two receivers can have the 180 min duration.
    If you have two receive steps in fork this will not work do as follows.
    if you use fork - message should allot randomly to receive step either 1 or 2.
    there if msg1 is in fork first branch, msge 2 in second branch of fork,
    use wait step before receive step with 10,180 min duration.
    I hope you got it clear, else let me know clearly.
    Regards
    Chilla..

  • Forwarding 'Wait Step'work items using SWIA

    Hi,
    I need to forward work items of one user A to another user B urgently, using SWIA.
    The work items are in executed state. This is after a fork step in the workflow, where the executed work item is one branch of the fork.
    As these items are executed, we will have to forward the work items that are in ready state.
    The work item for the other branch of the fork is in ready state. However this is a wait step, and hence I am not able to forward this item.
    Kindly advise as to how should I forward these items.
    Best Regards,
    Smruthi.

    Hi Smruthi,
    Dont confuse with the wait for events and dialog work item. There is no direct link between the wait for events and the work item.
    Only dialog work items needs the user action and dialog work item's only can be forwarded to other user's.
    For this, the work item should have the status of 'Ready'. If the work item has the status 'In process' that means, the user opened the work item and still he didnt take ant action on it.
    In this case, using SWIA you can manually change the status as 'Ready' and then you can forward the work item to the other user's.
    To forward the work item use the function module 'SAP_WAPI_FORWARD_WORKITEM' or use the SWIA transaction.
    Thanks,
    Viji.

  • Wait step cacellation

    Hi,
    Is there a way I can cancel the wait step from the same workflow? Of course not throught deadline modelling.
    Please advise.
    Regards,
    Roopesh

    Please put your wait step in one branch of the Fork and accordingly put your condition in the other that will terminate the wait for step.
    <b>Please reward points if useful</b>

  • Wait step event

    Hi,
    i am new to the workflows.i worked in support project and i am looking for development.
    could any one can explain:
    what is wait step event,
    when it should be used and
    while creating the wait step event do we use any tcodes to assign the events(swetypv,sweinst etc)
    generally when we use starting events we will write start conditions based up on that event will be triggered so in the same way how waitstep event will be triggered?
    Regards,
    Mudhiraj

    Use
    A wait step can wait for:
    u2022  An event
    u2022A condition
    u2022A local event
    u2022An event that is initially received by the workflow.
    At runtime, a wait step is represented by a wait step work item. Wait step work items are not displayed in the Business Workplace. You can, however, locate these using work item selection.
    Correlations
    You can use a correlation when waiting for an event and when waiting for an event by using workflow.
    A correlation enables you to identify objects that belong together, for example, a quotation and the relevant sales order.
    Features
    Wait for Event
    When waiting for an event, the wait step is terminated when the event specifies occurs. This event
    terminates all wait steps waiting for this event.
    You can use this type of wait step for the following purposes:
    u2022To suspend the workflow until a defined event has occurred.
               A workflow is to wait until documents requested have been provided for an applicant activity. Once the
    requested documents are received, the transaction used for inbound processing and archiving creates an
    event which the wait step waits as a receiver.
    u2022To wait for an event in a parallel processing branch, which renders processing in the other
    branches unnecessary.
    The event for which the wait step waits should not be created in the other branches of the fork.
    u2022Wait for the result or a message from another workflow that was started in another system by the
    WebFlow function.
    u2022Wait for a message of the process that the workflow started using a Wf-XML message.
    Wait for Condition
    When waiting for an event, the wait step is terminated when the corresponding condition returns the
    value true.
    Wait for Local Event
    When waiting for a local event, the wait step is terminated when this event occurs.
    Wait for Event Via Workflow
    When waiting for an event via the workflow, the event is initially received and temporarily saved by
    the workflow. Once the wait step has been activated, the event is forwarded to the wait step. During
    waiting via the workflow, the event can terminate a maximum of one wait step. If several wait steps are
    active, the event terminates the oldest wait step.

  • Waiting step wait longer though event has created

    HI Experts,
    I have a WF which has a waiting step in one of two parallel branches of a Fork. I use below FM to create an event which is successfully created but my workflow sometimes takes longer to continue. It shows the status READY longer. BUT sometimes it works fine but sometimes more than 20, 30 minutes. I want to know why??? has any one an idea why??
    CALL FUNCTION 'SWE_EVENT_CREATE'
        EXPORTING
          objtype                                    = c_object
          objkey                                      = lv_key
          event                                       = c_event
          START_RECFB_SYNCHRON  = 'X'
          NO_COMMIT_FOR_QUEUE      = 'X'
        IMPORTING
          event_id                                   = lv_envt_id
          receiver_count                        = lv_rcvr_cnt
        EXCEPTIONS
          objtype_not_found                   = 1
          OTHERS                                   = 2.

    Hi,
    Definately check SWEL. It will probably give you more information what happened to the event or what it is waiting for.
    There is not really that much difference between the functions. Both will create the event. But in general you should always chekc SAP_WAPI* functions before using some SWW* function when you are doing workflow development. They are newer versions and the support API for workflow development.
    Regards,
    Karri
    EDIT: And perhaps with the SAP_WAPI_CREATE_EVENT the events would work better - which I actually doubt in your case, because I think that there is something wrong in the system of some general configurations (events go into queue or whatever).
    Edited by: Karri Kemppi on Aug 24, 2011 1:14 PM

  • Reading the value of the "WaitForTarget" attribute of the Wait step

    I am trying to access the  "Step.WaitForTarget" attribute for the Wait step but can't find the correct syntax to use in an expression or the correct API calls to use in an action step.  I intend to use this in an expression as I am looking for a specific value.
    I have a object reference to the step that I am testing  (Locals.StepRef) and from that I have no issues reading the standard attributes like name, step type, preconditions, etc...
    How do we access the special additional properties of the wait step ?
    Solved!
    Go to Solution.

    Hey 4watt,
    One easy way to do this is to access the step reference as a PropertyObject and use GetValNumber to obtain the value. For example:
    Locals.StepRef.AsPropertyObject.GetValNumber("WaitForTarget",0)
    I tested this out and it does correctly return the value of WaitForTarget. Let us know if you need any more assistance!
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • Using WAIT step in Sync/Async Bridge

    I am using a sync/async bridge and placed a 1 minute wait step in between my async send and async reply.  When I test my process, the async reply comes in but then my 1 minute wait eventually times out and gives me an error.  Can someone guide me in fixing this BPM design (which steps to add and how)?
    http://webpages.charter.net/kpwendel/bpm_with_wait.jpg
    I would like it to stop waiting once the async reply comes in and not timeout.  If the 1 minute mark comes and a reply never came in, it would also be nice to send back an error message.
    Thanks!

    I pulled my WAIT task and had this scenario working a week ago.  I have not made any changes, but now my inbound replies to close the BPM and link up to the request are not "linking".  The request is eventually timing out even though the reply with a good correlation id comes in successfully.  Any suggestions?
    UPDATE:  I went through my objects in the IB:Config and resaved/activated them and now it is working.  Don't know what messed them up in the first place.
    Message was edited by: Keith Wendel

  • BPM wait step : RWB"To Be Delivered status": SXMB_MONI"Message being sent"

    Hi All,
    I have a BPM interface running fine since 1 year.
    In this BPM I have wait step for 5 minutes.
    But yesterday message  is stopped on wait and not proceeding ahead.
    I checked XML is good as per mapping. and in runtime wirk bench message is still in "To Be Delivered status"
    and in SXMB_MONI message column Outbound Status still showing "Message being sent" even after 12 hours.(wait is only 5 minutes). And below is the trace of last message.
    Please guide how to handle or restart this message. in SMQ1 & SMQ2 there are no queues showing:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <SAP:Trace xmlns:SAP="http://sap.com/xi/XI/Message/30">
      <Trace level="1" type="T">--start determination of sender interface action</Trace>
      <Trace level="1" type="T">select interface Request_SI</Trace>
      <Trace level="1" type="T">select interface namespace https://www.XXXXX.com/YYYY</Trace>
      <Trace level="1" type="T">--start determination of receiver interface action</Trace>
      <Trace level="1" type="T">Loop 0000000001</Trace>
      <Trace level="1" type="T">select interface Request_SI</Trace>
      <Trace level="1" type="T">select interface namespace https://www.XXXXX.com/YYYY</Trace>
      <Trace level="1" type="T">--start determination of sender interface action</Trace>
      <Trace level="1" type="T">Hence set action to DEL</Trace>
      </SAP:Trace>
    Regards

    Solved, few BASIS jobs were inactive in transaction code "SWF_XI_CUSTOMIZING".

  • BPM(with wait step) calling another BPM

    Hello,
    I have this scenario whereby i need to call a BPM from another BPM process. Call it BPM1 and BPM2. BPM1 will have a Sync-Send-step to call BPM2.
    The following is what i have setup:-
    Working OKAY:-
    BPM1 (receive from file, send syn step to BPM2) --> BPM2(receive step (Open S/A Brige) from BPM1, send step (Close S/A Bridge))
    But if i put an wait step (for 1 minute, see below) before the send syn step in BPM1, i will have problem and the queue in BPM1 show "STOP" and the BPM2 queue show "RETRY".
    Problem:-
    BPM1 (receive from file, wait step, send syn step to BPM2) --> BPM2(receive step (Open S/A Brige) from BPM1, send step (Close S/A Bridge))
    Yes, the RETRY will work but the problem is, my BPM1 has already timeout and has ERROR (see from SWWL) and BPM2 has exceptional error in the Close A/S Bridge send step (because it can't send back to BPM1).
    Anyone has any idea how to resolve this? and hopefully the above is clear enough to discribe the problem that i'm facing now.
    Any suggestions are welcome, scott.

    The minimum BPM-wait duration is 1 min and cannot be decreased below that....

  • BPM Wait step!

    Friends,
    I have BPM which has the FOR-EACH Block in it. After the first message processed I have to wait for atleast 5 seconds to process the next message in FOR-EACH Block. The default BPM wait step has minimum of 1 Minute. Is there any other way we can make to wait for x seconds?
    Please let me know!
    Thanks,
    raj.

    The minimum BPM-wait duration is 1 min and cannot be decreased below that....

  • ABAP OO class-based workflow, wait step

    Hello,
    I'm hoping someone is able to help me.  I've implemented a class which triggers a custom workflow through a custom event of the class.  At one point during the workflow I want to use a wait step that waits for another custom event to occur.  I've created my second event which I want to trigger from an ABAP ALV Grid report for users, that will allow them to select the specific workflows to trigger this event for.  My problem is, I am having trouble figuring out how to find the correct object instance of my class from within the ABAP program and trigger the event specifically for that instance, so that the workflow can continue and eventually complete.  I have implemented the IF_WORKFLOW interface and up to this point the workflow is functioning correctly.
    Thanks,
    Leslie

    Hello,
    Sorry, not sure where my brain was. Actually I do know: at two clients with projects going live this month, so apologies for a rushed and inaccurate response. It's CL_SWF_EVT_EVENT.
    Jocelyn's blog I referred to includes a code sample using the same class on how to raise an event with an object key.
    Regarding your second question: No you don't need to do any binding. Just use an instance of your object and it will wait for an event with the same key. The WF part is very straightforward and works exactly like BOR, it's just raising event that can't be done with the WAPI.
    Cheers,
    Mike

Maybe you are looking for

  • How can I remove Facebook from the iPhoto source list?

    Lately when I use iPhoto it will not let me quit and I have to force quit. I recently moved to college where there are several separate internet routers. I realized I still had iPhoto sharing turned on from using it at home and thought that might be

  • "No signal" from MBP on LG TV via HDMI

    Hi everyone, I have a 4.5 year old MBP that I want to connect to a to an LG TV via HDMI. The MBP has a DVI port and also came with a small white adapter to connect to a VGA cable. I purchased a VGA to HDMI cable and then connected the MBP to the LG T

  • Problem in IAS Server with generation of PDF with FOP and XML parsing

    Dear co.forumers : We are developing an application that generates a pdf document with FOP Apache utilities, and this PDf is stored in a folder of the server. Firts of all, a DDBB data is retrieved using java ( jdbc) middleware classes ( servlets ),

  • Battery stuck at 0%, looking for course of action

    Hello everyone, this is my first time posting on these forums so if I miss anything, I apologize in advance. I'm currently working on a 17" MBP, version 4.1 (2.6Ghz & 4Gb ram). About 5 days ago, I was working on it with no problems whatsoever (really

  • USB 2 HD connected to AirMac 802.11n station

    Since I got my AirMac 802.11n base station I had my external HD connected to it and felt it was sort of slow that way. Today, when I had to copy like 20,000 files over I was getting frustrated and unmounted it wirelessly and connected it directly to