End condition in FORK step

HI Experts,
I am working on BPM scenarios.Anybody plz explain about how end condition works in FORK step.
Please provide examples for that end condition in FORK step.
Regards,
Bhuvan.

Hi,
Refer this links...
http://help.sap.com/saphelp_nw04/helpdata/en/24/e2283f2bbad036e10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/77/0737133012b24b9d0a12c6df2b1054/content.htm
/people/prasadbabu.nemalikanti3/blog/2006/02/24/collecting-and-bundling-vendor-records-from-different-multiple-interfaces-file-systempeoplesoft-and-sending-to-sap-r3-system-part-1
Hope it helps..
Thanks,
Kumar.

Similar Messages

  • Reg End Condition in Fork

    Hi...
       I need help regarding  end condition in fork. In Fork i have used 2 receivers. I  have made necessary brances as 2. Iif i send only 1 finput file then it will wait for the second file to come out of fork step. If i didnt send the second file, it has to wait for 2 mins and it should come of out fork step. For this how can i keep the condition in fork step?
    Please helpin this issue.
    Regards,
    Leela

    Hi Vijay,
       I have configured the BPM in the below way.
    Block1 Start
      Deadline Branch for 2 mins
      Used Fork Step.
         Inside Fork i have used 2 branches.
                     In first branch i have used Receive step and the container step
                     in the second branch i have used Recieve step and the container step.
         end of fork
    End of Block1
    Block2 start
    Switch
        Branch1--      Transformation step and send step.
        Branch2 --  control step.
    End of Block2
    In the above flow, if i receive the 2 two input files , the scenario uis working fine.
    If any one of the input file is not coming, i need to wait for 2 mins and send only the input file which i have recieved.
    In fork it is mandatory to have 2 input files. otherwise it will for the second file to come. Till then it will be in wait state.
    So i want exit from fork after waiting for 2 mins and continue the transformation step.
    For coming out of fork i have used deadline branch for 2 mins. But it is not working.It is not coming out of fork. It is waiting for the second file to come.
    Can you please help how to come out of fork afte 2 mins.
    Regards,
    Leela

  • END CONDITIONS IN BLOCK STEP

    In approval process  how many agents are determined at run time in multiline container, i used block for this  if any one rejects i should come out of block i created one container element in local container of the block  , in rejected branch i assigned some value using container operation, the same thing i given as a end condition  in block,  when i checked if any one rejected it is not coming out of the block can any one sugge

    why end condition is not working in block step i have given like this
    In rejected branch   container operation -
    flag = x (local container of block)
          end condition is flag = x.
    I tried like this also  flag = x,
       I Binded to workflow container  flag -
    > flag1(workflow container).
       i have given end condition is  flag1 = x.
    both are not working, I have seen in the workflow log it is executing till the container operation when i click on reject.

  • Fork End condition problem in BPM

    Hi All,
    I am collecting three different types of idocs (consider A, B and C). For collecting idocs I am using BPM. BPM Steps are
    1.Block1
           a.Fork u2013 3 branches
               i. Loop(3 Loops)  Receive u2013 Container Operation(Assign) -- Container Operation(Append)
    2.Block2
       a.Fork- 3 branches
          i. Transformation
          ii.Send
    In one of the field in idoc (C) I am getting the sum of idocs sent from the source. If the collected idoc count is equal to t he idoc (C) field value then fork condition is true otherwise the fork will be waiting up to the count equals.
    This is working fine whenever I am sending idocs in A, B and C or B,A and C. If I am sending idocs A,C,B  or B,C,A then it is not coming out of the fork end condition even though the condition is true. Can you please let me know how can we resolve t his.

    I kept Fork end condition in Loop also so its got worked

  • BPM "Fork" step question

    Concerning  fork step : Here is the documentation :
    You use a fork () when you want to continue a process in branches that are independent of each other, for example, to communicate with two systems that are independent of each other. The branches of the fork join in a union operator.
    You can specify the required number of branches and then define whether the process must run through all branches, or just a particular number of branches. Furthermore, you can define an end condition for the fork (see also: Condition Editor).
    As soon as a branch reaches the union operator at runtime, the system checks the following conditions in the specified order:
    ·        The process has run through the required number of branches
    ·        The specified end condition has returned true
    The step is complete as soon as one of the conditions returns true.
    I want to use it to do 3 different send process in parrallele with 3 different receivers.
    Before Fork step I use a container to initialize varaiable count = 0
    In each branch I do my send step and then a container that does count = count + 1
    And finally I have defined my fork with following end conditions :
    End condition : count = 3
    Necessary branch : 3
    But my BPM allways executes only one branch !!!
    (Only one is in green in the graphical editor of monitoring for BPM)
    Any idea ?
    Do I use the right solution to do the following :
    "You can specify the required number of branches and then define whether the process must run through all branches, or just a particular number of branches"

    Hi Jean-Charles,
    I agree with Michal. Is it really necessary to use a fork for different send steps.
    The reason for your unexpected termination could be the condition. Each fork branch reaching the union operator checks here in this sequence:
    Process has run through required branches (here: 3)
    End condition is true (container = 3, you have the same container element for ALL branches? This should not work. You need one for each, I think.)
    Step is complete as soon as ONE of the conditions return true.
    So use three different container elements as counter and connect them in the end condition with AND.
    Regards
    Dirk
    Message was edited by:
            Dirk Meinhard

  • ** Exception Throw in Fork Step - How to inform ?

    Hi Friends,
    Customer sends 2 IDoc DEBMAS, ADRMAS. The conditions is when both the IDocs is having the same customer no we need to send to the outside system.  (DEBMAS - E1KNA1M - KUNNR) equals to (ADRMAS - E1ADRMAS - OBJ_ID).
    I have designed BPM for this : Start --> Fork Step --> 2 Receive Step --> Correlation mentioned in 2 receive step --> Next Block --> Fork --> Transformation Step & Send Step (Two sets : 1 is for DEBMAS & 2nd is for ADRMAS)
    I have checked the design. It is semantcially correct. But, I have the following doubts.
    1) If no matching records found in first block (DEBMAS customer no is not equal to ADRMAS) how much time the fork will wait ?
    2) To effect this, 'Exception Branch' is inserted. After Fork which contains 2 receive steps, one control step is inserted to trigger an exception. Question here is, after how much time, this control step will trigger an exception
    3) What is the purpose of 'End Condition' Property in Fork Step ? Is it required.
    Could you kindly help me friends to clarify the above 3 points. If those clarified, my BPM will be complete.
    Thanking you.
    Kind regards,
    Jegathees P.

    >
    Jegatheeswaran Pitchaimuthu wrote:
    > Hi Friends,
    >
    > Customer sends 2 IDoc DEBMAS, ADRMAS. The conditions is when both the IDocs is having the same customer no we need to send to the outside system.  (DEBMAS - E1KNA1M - KUNNR) equals to (ADRMAS - E1ADRMAS - OBJ_ID).
    >
    > I have designed BPM for this : Start --> Fork Step --> 2 Receive Step --> Correlation mentioned in 2 receive step --> Next Block --> Fork --> Transformation Step & Send Step (Two sets : 1 is for DEBMAS & 2nd is for ADRMAS)
    >
    > I have checked the design. It is semantcially correct. But, I have the following doubts.
    >
    > 1) If no matching records found in first block (DEBMAS customer no is not equal to ADRMAS) how much time the fork will wait ?
    > 2) To effect this, 'Exception Branch' is inserted. After Fork which contains 2 receive steps, one control step is inserted to trigger an exception. Question here is, after how much time, this control step will trigger an exception
    > 3) What is the purpose of 'End Condition' Property in Fork Step ? Is it required.
    >
    > Could you kindly help me friends to clarify the above 3 points. If those clarified, my BPM will be complete.
    >
    > Thanking you.
    >
    > Kind regards,
    > Jegathees P.
    your design should be Fork with two receive steps and correlation should be the customer number field for both. This will ensure that only when the customer numbers are equal the BPM will process further.
    Now you need to handle the exception using a block step around the fork step. You can define a time of your choice until how long should the BPM process wait to receive the different idoc with the same customer num. If within the specified time it is not received then you can raise a exception, trigger alerts etc. as u need.

  • Parallel Block (ParForEach) end condition doesnt work

    hello
    I have a parallel block in my workflow (multiline) .
    In this defintion i have also configured an end condition.
    ( &Approved& = 'X'  for example)
    My intention was that the workflow continues after  the block when:
    1) all parallelblocks are processed.
    2) the end condition was met.
    But this second scenario( end condition was met) doesnt work.
    When approve = X in one block, the other parallel blocks arent logically deleted.
    is my assumption wrong? has anyone ever experienced this behaviour?
    thanx
    Hayo

    Hello,
    In fork normally you define how many branches are required to complete a job.
    Let say u have 3 approvers for one work item  say A,B, and C.
    If one of these approve you move on to the next step so in this case branches are 3  but necessary branch required is 1.
    I believe that u must be setting flag 'X' when it is approved correct.
    So just play with the necessary branches and you will be available to do it.
    Regards,
    Nabheet Madan

  • Parallel processing end condition problem

    Hi,
    i use a block with parallel processing for each row (parforeach). In every branch i create a workitem where a user has to input something. This is stored in my field status.
    Now i want that if the status is 'X' all branches will be closed like it would be in a fork.
    I entered the end condition &status& = X
    But the end condition of parallel processing doesn't work. I tested it and it works but into the workflow the branches won't be ended.
    Does someone has a solution or can explain me the problem?
    Thx

    Hi,
    The dynamic parallelism using 'parforeach' is not the same as fork with multiple branches with number of required branches to end the fork !! Its like this, when you use dynamic parallelism , for each index of your multiline container element used for parallelism, the sub-workflow ( or the associated Task having dynamic parallelism) will be called parallely and each branch ( parallely called sub workflow or task ) is independent now having no relation ( by default ) and workflow will not continue to next step until unless all these branches are completed.
    However, to solve your probelm i suggest the following
    1. How are you handling the process in each branch, is it through a sub workflow? if yes, in your sub workflow you can create a fork parallel to your normal process. In that fork, create a 'Wait for Event' step and wait for a new custom event ( for this you have to define a new custom event on your BO) . Put the necessary branches required as 1 and Join this branch to end of this sub-workflow. and
    2. Whenever your requirement to end all the branches is fulfilled ( say in your case status=X) raise this new custom event using Create Event and this will be captured by 'Wait Event' step in the fork of your sub-workflow and it will end that sub workflow ( meaning, your branch is ended now) .Make sure that you pass the BO Object Instance to your sub-workflow through binding from your main workflow. !!
    Hope this helps you !!
    Regards
    Krishna Mohan

  • Workflow error in fork step, process control, wait event

    I am using fork step in workflow which has 2 parallel branches. In 1st branch i have a user decision step followed by a task for posting PO document in case of approval. In the 2nd branch of fork step I have a wait step to wait for an event followed by the same task for posting document with a process control step after that in the end to cancel the workitem(workitem generated by user decision step in the 1st branch of fork). I created the event by using a custom BOR object.
    After the fork step is triggered, i have both a wait event running and workitem generated. When i raise the wait event from SWUE by entering the event, object key etc it works fine i.e., the workitem in the other branch is set of logically deleted and workflow ends.
    But if the wait event is triggered from the program i.e., using FM SWW_WI_CREATE_VIA_EVENT, both get an error message in workflow log(SWIA). The message is: Error when executing the binding between work item 000000XXXXXX and flow item 000000XXXXXX where workitem number is the workitem id of the posting document task and flow item id is the workflow parent id

    hi,
    message is self explanatory.
    Activate the event trace SWELS, then do the event with SWUE and within your program (als please use SAP_WAPI function modules).
    Now compare the 2 events in SWEL to see what the differences are .
    Kind regards, Rob Dielemans

  • Fork Step problem

    Hi,
    I have a scenario in which my BPM expects two different idocs and uses a Multimapping Transformation step to merge it into one single file structure, that is N:1 mapping( 2Idocs ---> 1 File).I am using a Fork Step in which there are 2 recieve steps in order to recieve the two idocs and then a Transformation step and then a Send step.
    The problem is my BPM is waiting for both the IDOCS in order to complete the Fork and  get to the Transformation step, but in my case i want the transformation to happen if any of the two IDOCS is recieved.Is this possible..or is there anyother way to achieve this....I have Marked the start process for both the recieve steps....Wud appreciate ur thought on this.Thank You.

    > Hi,
    >
    > >>>>but in my case i want the transformation to
    > happen if any of the two IDOCS is recieved.Is this
    > possible
    >
    > so why do you need the fork if you want
    > only one idoc?
    >
    >
    > Regards,
    > michal
    > -
    > <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI /
    > PI FAQ - Frequently Asked Questions</b></a>
    Hi Mike,
    Infact i am trying to derieve three different File structures from the Output of the Multi map(Which i havent mentioned...Sorry for that).
    If  the Transaction is R/3 generates these two idocs at a single shot then i would be generating Total of 3-final file structures which has fields from Both the idocs.
    Otherwise if the Transaction is used to generate only one IDOC (say IDOC1) the i would be generating only one file structure based on it.
    So the IDOC2 is optional It may or may not Occur.
    so my logic is something like this
    IDOC1               IDOC2
    Intermediate File Structure
    Check Condition (If IDOC2 is a reference of IDOC1)
    >IF Yes Generate Three Files
    >If No then generate Only one File based on IDOC1.
    Is this the right way to do it...need ur inputs.

  • Abt Fork step

    Hi frnds,  Can u explain me about the FORK step .
    what is the difference between FORK step and SWITCH step.

    Hi,
    In switch , one condition or one Branch will be true  at a time only that can be Processed.
    In Fork, how many branch you are giving will process simultaneous.
    For Example. for situation, if you want to trigger workflow only during Created or  change always you want to Re-trigger the workflow.
    In one Parallel put one wait for change event, this will wait till the workflow is complete or any change event Occurred.
    For further clarification reply me
    regards,
    Surjith

  • Fork Step in BPM scenario PI 7.1

    Hi All,
    I have a requirement where in i will have to collect 3 different messages coming from the source and then combine these 3 messages to a single message and sent it to Target System .
    To achieve this i came up with a BPM where in fork step was used and inside the fork step i added 3 branches with 3 receive steps to receive 3 different messages from the source .
    Problem i am facing here is , the source system might send all the 3 messages or it might send only 2 messages or 1 message as well depening on the scenario .
    So when we get only 2 messages frm the source system , fork step goes into waiting state since its waiting for the 3rd message also to come in . In this case i want the BPM to go ahead with 2 messages after a certain specified time (say 2 min) .
    I tried adding wait step, deadline branch . Nothing seems to be working .
    Please suggest what needs to be done here .
    Waiting for your inputs
    Regards
    Vinay P.

    Set Necessary Branches  to 1 in the Fork properties. Use the fork inside a block with time out. In timeout branch throw an exception. Define an exception branch for that exception. It should work..!!
    VJ

  • Fork Step in BPM

    Hi,
    When i am using more than one receive steps(each can start the process) in a fork then if i dont use the correlation it throws me a semantic error that "step does not use any correlation".
    according to me if i declare the necessary branches property in the fork step then the fork step will wait until that many branches completes, means it will proceed only after the branches receive the message.
    here i need not any correlation becuz the messages i am receiving are totally independent of each other.
    still it forces me to declare a dummy correlation.
    for what reason it is necessary?

    Hi
    A fork step is used for parallel processing of a(single) message in N number of branches. For example, if you design a fork with 4 branches, each branch receives a msg and then the steps in each branch is carried out.
    Follow the below procedure:
    The fork by default comes with two branches when you first place it into your process. You need to insert another branch before it allows you to increase the max and so on.
    Just check these links,
    http://help.sap.com/saphelp_nw04/helpdata/en/24/e2283f2bbad036e10000000a114084/content.htm
    Collecting and Bundling vendor records from different multiple interfaces (file system,Peoplesoft ) and sending to SAP-R/3 system.  part-1
    regards,
    Surya

  • Isuue regarding Fork step in bpm

    Hi,
    I am doing a scenario, collecting different idoc types into a flat file using BPM.
    In the fork step while doing BPM , I am getting an error while adding more than two branches.
    The error is "Maximum limited value is 2".
    Please help me out.
    Thanks.

    Hi Sailatha,
    A fork step is used for parallel processing of a(single) message in N number of branches. For example, if you design a fork with 4 branches, each branch receives a msg and then the steps in each branch is carried out.
    Follow the below procedure:
    The fork by default comes with two branches when you first place it into your process. You need to insert another branch before it allows you to increase the max and so on.
    In ur case plz try to change the Default Value 2 which is in properties window to the no. of branches u desire.
    Regards,
    Vinod.

  • Error in Fork Step causing issue in generating next work items

    All,
    We have ECC 6.0 with the following SP:
    SAP_BASIS     700     0012     SAPKB70012     SAP Basis Component
    SAP_ABA                     700     0012     SAPKA70012     Cross-Application Component
    I have this strange issue. In one of my custom workflows, i am using a Fork step with 02/ 02 necessary outcomes. In branch 1, i am sending a mail to a user's e-mail id. In branch 2, i have 3 activity steps for another user. Step 1 is to display an invoice and step 2 is a user decision to apprve/deny this invoice.
    I know that during runtime, at the Fork step, the work item for branch 1 and the 1st work item for activity step 1 in branch 2 get generated almost simultaneously(though with some small time difference). This is OK. But the issue is, when the sendmail in branch 1 errors out due to some error, and when step 1 is finished successfully by another user, the work item for 2nd activity step in branch 2 is not getting created.
    As i understand, in the Fork, the 2 branches, execution should be independent of each other, that means, the work item creation and execution of branch 1 and 3 steps in branch 2 should be happening independently. But, this doesn't seem to be the case.
    I understand when the sendmail in branch failed, the wflow is set to 'Error' Status.But there is already an open workitem for step 1 of branch 2. When this workitem is completed successfully, I expect the work item for 2nd step should get generated.But this is not happening. But, when i restart the whole workflow using SWPR, it generates the witem for 2nd step in branch 2. And still the wflow is in 'Error' status.
    When the user finishes the 2nd workitem of branch 2, the next work item for 3rd step is not getting generated. Instead i needed to restart the whole wflow again and this time, it generated the 3rd witem in ranch 2.
    To my understanding, when a Fork is there, if i specify 02/02 outcomes necessary, these 2 branches should go in parallel, both creation and execution of workitems, until they are joined. And at this point, if the whole Fork step is successful, then workflow will proceed further with steps below the Fork. Shouldn't this be the case ?
    Anybody had similar issue? Pl share your thoughts on this. I'd really appreciate if somebody can clarify whats going on in the above case and how to fix this.
    Thank you in advance
    Regards,
    venu
    Edited by: Venugopal Jogi on Jun 10, 2009 5:58 PM

    Hi Arghadip,
    Thanks for your reply. You said
    "When a Workflow goes into error the processing should stop whether it is in same branch or in different.".
    If this is correct, then as i explained earlier, when i restart the workflow without fixing the errored branch, then also, the next work item should not be created..Right ? But, it is. I didn't fix the errored branch but simply restarted the workflow. Then it created the witem for 2nd step, in the branch 2 that is not errored.
    How can this be, the branch 1 is still in ERROR status only. So, can you pl clarify if something else might be going on here.
    Also, fixing the issue is fine. But, the SendMail step in branch 1 is just an information only and per business requirement, this should not be holding up the approval process. And if we don't process the invoice in time, just because of some informational mail errored out, this will not be a feasible solution to the client,Right ? That's the whole reason i am using Fork step, so that they both proceed parallelly (independently).
    If step 1 is a pre-requisite for step 2, then it makes sense to fix error in step 1 so that we can proceed with step 2.
    Any other thoughts on this.....
    Regards,
    venu

Maybe you are looking for

  • I just synced my music to my iphone 5 and i have only one playlist but I need help

    Hi, i just synced my music to my iphone 5 and i have only one playlist but when i sync my music to my ipad i have other music on there that i don't want right now i just want my christmas playlist folder that i have playlists cause on my iphone 5 i j

  • HELPP!! can't sync music to ipodd!

    i restoreed it to facoty settings, to fix problem. now, when i try to sync my music to it, it says the following. "iTunes could not save music to your Music folder because you do not have write access. Check the permissions on your Music folder and f

  • How stop ad videos from starting when I open FIrefox

    Whenever I start Firefox, unwanted advertising videos start playing in a superimposed window that I can't turn off. Should these not be stopped by popup blocker?

  • Trying to download xls file with IE7 but browser tries to download as htm

    Hi! I have got a problem with downloading files using a hyperlink. I've got a hyperlink and i did set the url property to: /resources/file.xls when using IE7 and clicking Save As... the save as dialog appears and suggests file.htm as the filename and

  • Discontinuation of Repro

    Dear Experts, We have repeatitive manufacturing Scenario & during backflushing REPRO is allowed. Now we want to stop REPRO  so that booking (MFBF) can not be dode if any component is in error (Non REPRO Allowed). What necessary steps/precautions has