Difference in completion deadline for tasks which are parallel for each

Hello Everybody,
We have critical problem wherein we have set a completion deadline for a task against a human activity which is parallel for each but in the runtime, a difference of 1 second is appearing for the parallel tasks generated.
We have raised a COMPLETIONDEADLINEISCRITICALEXCEPTION and if the deadline is met we are executing an ABAP RFC for auto approval.
The automated step for executing the RFC is also parallel for each. When the tasks are created only one gets cancelled on completion of deadline while others get suspended. I am assuming this is happening because of the difference of 1 sec in the completion deadline for parallel tasks in the runtime.
This is very critical and i request all you to please provide your inputs.
Thanks & Regards
Gaurang Dayal

Hi Guarang,
Do you expect that all the parallel tasks are instantiated at exactly the same point in time? That is an unrealistic expectation....
First off, the Par Foreach doesn't spawn multiple threads, it executes each 'parallel' action in sequence in the same thread. Parallel in this context means all the actions (Task initiation) will occur and a process token will stay at each Task. For the token to pass the subsequent merge ALL the parallel tasks must be complete (all tokens must arrive at the merge). So you won't ever get all the tasks initiated at EXACTLY the same time.
Further, even if the BPM kernel did spawn multiple threads (and there are very good reasons it won't!) it is rather unlikely that in these different threads you would for sure get all the initiations at EXACTLY the same time.
If it's important that you get the task completion deadline the same in all tasks you should get a suitable timestamp in a mapping step which precedes the split and then set the deadline explicitly using that value when the task is initiated - i.e use a specific time value not an offset time value.
An FWIW you should read and understand the documentation on Boundary Events so that you can know what to expect when one is fired and you know how to handle them.
regards, Nick

Similar Messages

  • BADI for VA01 which are not for internal use ???

    Hello Folks,
    Im looking for BADIs which are not for internal use for the transaction VA01...
    Could anyone send all the BADIS which can be implemented for VA01...
    Thanks in advance...
    Reddy

    Hi there, you are lucky enough because I have found them almost a few days ago:
    ---------- BADI for VA01 ----------
    A1) BADI
    BEFORE (choosing any ORDER: ....) :
      - BADI_SD_SALES
      - BADI_SD_SALES_BASIC
      - UKM_R3_ACTIVATE
      - BADI_LAYER
      - BADI_MATN1
    AFTER (choosing ORDER NR - xxxx -) :
      - ADDR_PRINTFORM_SHORT
      - BADI_SD_SALES_ITEM
      - BADI_IBASE_AUTHORITY
      - BADI_IBASE_IBCO
      - CU_CONFIG_DELEGATION
      - CUKO_PLANT_CHANGE
      - EHS_DG_002
      - SD_COND_ACCESS_A
      - BADI_SD_TO_FM
    AFTER CHANGING something in all items and shifting to TAB "item detail":
      - BADI_SD_DPBP
      - CFOP_DET_PREP
      - ADJUST_NET_DAYS
      - BADI_SD_SALES_ADDON
    AFTER CHANGING something again in all items and shifting to TABS:
      - CFOP_DET_PREP
    AFTER SAVING:
      - /SAPSLL/CTRL_SD0A_R3
      - QUANTITY_STRUCT_CK
      - DYNPRO_EXTENSION_CK
      - IBRT_GEN_ADD_IN
      - VALUATION_CK
      - WORKORDER_UPDATE
      - ATP_PUBLISH_RESULTS
      - FM_FYC_RECOVERY_POST
      - FMAVC_DECO
      - GM_POSTING_CONTROL
      - BADI_ISPS_GRANT
      - DIP_UPDATE_FKDAT
      - CACL_CHARACTER_INPUT
      - /SAPSLL/CTRL_SD0A_R3
      - /SAPSLL/RFC_DEST
      - /SAPSLL/CTRL_SD0A_R3
      - /SAPSLL/IFEX_SD0A_R3
      - /SAPSLL/KMAT
      - BADI_SD_UPDATE_PLVAL
      - CUX_ADD_IN
      - BOM_EXIT
      - WORKORDER_EXEC_STEPS
    In case you may need them...
    ---------- USER EXIT for VA01 ----------
    A2) USER EXIT for VA01 :
    SDAPO001  Activating Sourcing Subitem Quantity Propagation
    SDTRM001  Reschedule schedule lines without a new ATP check
    V45A0001  Determine alternative materials for product selection
    V45A0002  Predefine sold-to party in sales document
    V45A0003  Collector for customer function modulpool MV45A
    V45A0004  Copy packing proposal
    V45E0001  Update the purchase order from the sales order
    V45E0002  Data transfer in procurement elements (PRreq., assembly
    V45L0001  SD component supplier processing (customer enhancements
    V45P0001  SD customer function for cross-company code sales
    V45S0001  Update sales document from configuration
    V45S0003  MRP-relevance for incomplete configuration
    V45S0004  Effectivity type in sales order
    V45W0001  SD Service Management: Forward Contract Data to Item
    V46H0001  SD Customer functions for resource-related billing
    V60F0001  SD Billing plan (customer enhancement) diff. to billing
    A3) CLASSICAL USER-EXIT per VA01:
    --- include MV45AFZZ ---
    FORM userexit_delete_document.
    FORM userexit_field_modification.
    FORM userexit_move_field_to_vbak.
    FORM userexit_move_field_to_vbap.
    FORM userexit_move_field_to_vbep.
    FORM userexit_move_field_to_vbkd.
    FORM userexit_number_range USING us_r
    FORM userexit_pricing_prepare_tkomk.
    FORM userexit_pricing_prepare_tkomp.
    FORM userexit_read_document.
    FORM userexit_save_document.
    FORM userexit_save_document_prepare.
    Hope its enough
    Denis Mullaraj

  • How to remove the tasks which are not manually recoverable?

    How to remove the tasks which are not manually recoverable?
    I tried performing manual recovery for the BPEL processes but there are few tasks which cant be manually recoverable..
    Could you please tell me how to remove those tasks and also tell me which information in the console is the task_id in the database?

    This article explains how to cleanup bpel process instances, you can find task instance id by searching for data in payload using api.
    Managing a BPEL Production Environment
    http://www.oracle.com/technology/pub/articles/bpel_cookbook/blanvalet.html
    Cheers,
    Rad

  • Where to see activities, which are created for the campaign with target group

    Hi
    I have created a Communication Method in SPRO -> CRM -> Marketing -> Marketing Planning & Campaign Management -> Campaign Executtion - Define Communication Method : Activity has been configured
    Activities are not appearing after creation of campaign with target group.
    Where to see activities, which are created for the campaign with target group?
    Regards
    Hamid

    Hello,
    alternatively to check  table CRMD_ORDERADM_H directly you can use the related transactions search for the campaign:
    This should bring all activities generated by the campaign. If this is empty first check the job log of the campaign execution job again:
    This gives information if any target group members have business transactions created. If the log does not contain the required information you can debug from SM37. The business transactions (activities, leads, sales orders) are generated from function module CRM_MKTTGGRP_PROC_CREATE.
    best regards,
    Johannes

  • Batch Split for Material which are activated with serial number management

    Hello All,
    We have requirement where we want batch split to be mandatory during goods reciept with inbound delivery  for material which are serial number managed.
    Please let me know the possible solution to achive this requirement.
    Appreciate your quick response.
    BR,
    Tushar

    I have resolved this issue by myself. Check out the link where I have briefed how to resolve the issue using bapi BAPI_OUTB_DELIVERY_CHANGE.
    BAPI_OUTB_DELIVERY_CHANGE - Batch Splits don't work
    Regards,
    Senthil G.

  • How can I unmark photos which are marked for republish to Flickr?

    I am currently using Lightroom 3 to publish photos to Flickr. I have a free Flickr account.
    My problem is that I have a set of photos I am publishing to flickr. For some reason some of my photos lost their keywords, only the files on my computer lost them, the photos on Flickr still have the keywords intact. Also I applied a colour code to a couple of the photos on my hard disk that are being published to Flickr.
    Now Lightroom has detected these changes and the photos appear under 'Modified Photos to repblish' the thing is the changes I made were either putting keywords back in that were already in Flickr anyway, and colour coding which makes no different to flickr. Because I have a free account if I republish the photos I will lose all the comments and stats on Flickr, so I don't want to republish them.
    Whenever I click the publish button I get a warning that republishing the changed photos will lose any information on flickr and I have the option to skip them, and just publish new photos. But if I ever do want to republish a photo I won't be able to do this without also republishing all the photos marked for republish.
    Is there any way I can remove these photos from the republish list?

    All,
    This is an issue with the LR programming, as it does NOT allow you to unmark images it feels need to be republished. Oftentimes it's only a matter of adding a keyword or tweaking the develop settings that triggers this. I for one wish that choice was available.
    Here's what you can do: simply disconnect from the Flickr service. Doing so will have NO detrimental effect on the images in Lightroom or the images you have already uploaded to Flickr. What you will lose, however, is the "library" of images that you have already uploaded to Flickr. Since this is really only a collection there's no harm. Besides, if you need to review which of your images have been uploaded to Flickr at a later time, just reference Flickr. Oh, you'll also lose Lightroom's ability to download any comments your Flickr contacts make on your uploaded images. If it's important for you have that data in Lightroom, rethink the disconnect option. After disconnecting, reconnect using the same parameters you had before. Your Lightroom/Flicker collection will be cleared of all previously uploaded images and you can begin adding new images to upload.
    Again, disconnecting has no effect on your Flickr content. However, if you REMOVE images from the collection using Lightroom, they will also be removed from Flickr. Please understand the distinction between disconnecting from the Service and removal of images using Lightroom.
    All that being said, republishing images from Lightroom to Flickr, in my experience, should not cost you anything in terms of number of views, favorites, comments, etc. It should be seamless.
    Judson Rhodes, Photographer
    www.flickr.com/jrcp/show
    www.judsonr.com
    Date: Tue, 29 Mar 2011 09:43:18 -0600
    From: [email protected]
    To: [email protected]
    Subject: How can I unmark photos which are marked for republish to Flickr?
    Hi,
    I'm using LR 3.2 and am having the same issue. I see that no one from Adobe has replied to this and that the previous reply was from August, 2010. There seem to be no answers to this one...
    I have several images that LR feels should be republished, and ONE image that I want to republish. I CAN'T republish just that one image though without republishing ALL the other images.
    Can someone (maybe someone from Adobe) help me with this? How can I simply UNmark the other images to not be republished? I do not want to remove them from the collection, but simply do not want to republish them at this time.
    Why can't Adobe simply ask us if an image should be republished or not? Why can't they allow us to UNmark an image to be republished once it's marked?
    Ideas??  HELP!
    Thanks!
    Steve
    >

  • HT204053 i just brought new i phone 5 yesterday and now i can see all paid applications and i dont use or have credit card also now how i can buy applications which are important for me? can i buy them online? or use debit card

    i just brought new i phone 5 yesterday and now i can see all paid applications and i dont use or have credit card also now how i can buy applications which are important for me? can i buy them online? or use debit card and trust me all my friends are regretting buying phone because of this problem.Kindly help.Cant it can be deducted from our mobile charges?i would be much easier then

    You can buy apps using iTunes Gift cards without needing to register your debit card.
    http://store.apple.com/us/personalize/itunes

  • Permanantly removing vendor from sap which are set for deletion flag

    Hai Pals,
    I want step by step explanation of how to delete vendors which are marked for deletion.I have check the forum & got only transaction code SARA & Archiving object FI_ACCPAYB.I dont know hau to proceed further please give some explanation to proceed further

    Archiving is done from transaction SARA.
    Enter the object, then hit enter.
    to get the object specific steps, these are process from top to down. 
    You have to do the customizing first, which can be done from SARA transaction as well.
    Follow the link to the very details.
    See the menu on the left, expecially the first knot "Introduction to Data Archiving (CA-ARC)"
    http://help.sap.com/saphelp_erp2005/helpdata/en/ba/4b68b8327911d2a25c0000e8a5f24f/frameset.htm

  • HT5622 hey! i have a serious problem coming up which is that i am asked to enter my billing info even for free apps. why should i pay for apps which are free? please help me with this problem!

    hey! i have a serious problem coming up which is that i am asked to enter my billing info even for free apps. why should i pay for apps which are free? please help me with this problem! and in the billing info there is pop-up box saying i have accessed my account from didfferent computer but no i have been doing it from the same pc. please help me out.

    Tap Settings > General > International. Make sure the Region Format is correct.
    As for your Apple ID. Tap Settings > Store > Apple ID > iForgot
    Resetting your Apple ID may help.
    Congrats on your new iPad !!!

  • IGNORE this since I can not DELETE IT - Your browser does not support cookies, which are required for this web server to work in session authentication mode

    Error - No cookies
    Your browser does not support cookies, which are required for this web server to work in session authentication mode
    This is a NOSCRIPT PROBLEM and NOT a Firefox problem.......
    when disabled it works JUST FINE

    Error - No cookies
    Your browser does not support cookies, which are required for this web server to work in session authentication mode
    This is a NOSCRIPT PROBLEM and NOT a Firefox problem.......
    when disabled it works JUST FINE

  • Setting bold font for nodes which are not leaf nodes

    In JTree, is it possible to set the font for nodes which are not leaf nodes. Can I do this without using custom renderer, or at the most using a DefaultTreeCellRenderer ?
    regards,
    nirvan

    In JTree, is it possible to set the font for nodes which are not leaf nodes. Can I do this without using custom renderer, or at the most using a DefaultTreeCellRenderer ?
    regards,
    nirvan

  • Australian.  How do locate apps which are suitable for Australian use,

    How do I locate applications which are relevant for Australian use, for example a shopping application; a travel application;
    Do I have to do a search in itunes for the category I want, and then go and read about that application (if a website is offered).
    Are the only forums for specific applications, attached to each individual application? That is, there is no one forum which deals with queries/features of applications in itunes?

    Apps aren't an iTunes issue, per se, since iTunes only downloads and transfers them. Try:
    Installing and using iPhone applications
    Installing and Using iPod touch Applications

  • My mail forms created by muse 2014.0.1.30 do not work. PHP 5.4 is enabled by hoster, so they should work. Can anyone help me, for these forms are crucial for my business.

    My mail forms created by muse 2014.0.1.30 do not work. PHP 5.4 is enabled by my hoster, so they should work. Can anyone help me, for these forms are crucial for my business. The forms confirm delivery, but the mails are not recieved. No spam filters enabled.
    Meanwhile, I was able to narrow the problem down: PHP seems not to accept a re-directed mail address as sender of the mail in some cases. So, it has nothing to do with the mail form itself.

    Hi Ingo,
    Please refer to this document, Troubleshooting Muse Form Widgets Used on Third-Party Servers
    Last section, "I've uploaded my new Muse form, and tried submitting it in the browser, but I never receive an email with the form data. What's wrong?"
    - Abhishek Maurya

  • How to add timeout for threads which are running  using ThreadPoolExecutor

    I am trying change my existing functionality with ThreadPoolExecutor. I was unable to achieve fully.
    Here is my issue.
    I was creating multiple threads for independent DB update operations. And was calling join with time value on the each thread, for any reason if the db update hangs so that thread should die.
    Now am trying use a nice ThreadPoolExecutor so that it can run and queue the threads nicely. But how do I create the timeout values for the threads which are in the ThreadPool. For any reason if the thread hangs then timeout will take care of killing the thread. When we use execute method submit the runnable task its not guaranteed that thread will run immediately. So when the executor will execute the submitted task is not know.
    Probably I might be wrong some where.
    Thanks.

    Future task = threadPoolExecutor.submit(...);
    //this will block until it finishes or times out.
    task.get(REQUEST_TIMEOUT, TimeUnit.MILLISECONDS);

  • Report for POs which are unpaid

    Dear All,
    I need report where all  POs  whether material or Service, which are unpaid. Reasons could be fund,Material not received or bill not booked. I tried ME80FN but I am unable to get the same.
    Please let me know where I can get this and in which report.
    Thanking you.
    With Best Regards,
    Rajesh

    Hi Rajesh,
    Use ME2M, ME2N, ME2L reports. In the selection parameters field in the input screen select the apropriate key
    eg: RECHNUNG for Open Invoices, WE101 for open goods receipt etc.
    Hope the above answers your query, else revert.
    If helpful award points
    Regards,
    Vivek

Maybe you are looking for

  • I cannot find my external hard drive

    First let me start by saying I am no geek! I have a G technology hard drive and when I plug it to my new MacBook Pro it is nowhere to be seen. This summer i had to change my MacBook Pro. I transfered all my files to an external Hard drive and then pu

  • I have clean install of mountain lion and have no iPhoto now

    i have clean install of mountain lion and have no iPhoto now

  • How can I squeeze a clip in between another clip?

    I'm not sure if there is a better way to explain my question than simply writing it out: Imagine Clips A, B and C A=====B======C===== I want to move C between A and B so it looks like this: A=====C=====B====== Notice how C just gets nicely squeezed b

  • How to check how many tables used in one particular program

    Hi Gurus,       I am wondering how to check for how many tables are used for one particular  program whether its a custom (Y* or Z* program) or a sap program (R*) .I have tried ST05 .But its not satisfactory .Could u help me plz in this  regard . Tha

  • BACKING BEAN issue with af:showpanelcontrol - little Urgent!!

    Hello, I need to create a af:showonepanel control that has four panels. This af:showpanel control uses af:showdetailitem to display details. The requirement is to programmatically disclose or undisclose the navigation between panels as soon as a mous