Task time constraints

Hi,
I'd like to set up time constraints for every task in my processes in order to "refresh" (terminate and recreate) tasks that are being held by some user or that have been inactive for a long time (so I can make them visible to new users who joined the group after the task creation).
I'm looking at two parameters: completion deadline and expiration deadline.
I'm wondering:
1)
Completion deadline is activated when an user take ownership of a task? And Expiration deadline is calculated in respect to the task activation/creation?
2)
If that is the case, is it possible to have both Completion Deadline and Expiration Deadline to work as follows:
if no user take ownership of the task, terminate the task in 3 days (expiration deadline)
if an user took ownership of the task, suspend or reset the expiration deadline and terminate the task in 2 days if the user still keeps ownership of the task without completing it; it the user then releases the task without completing it resume the expiration deadline (from where it was left or from the start)
Does it work that way?
If you could provide me some examples or references, I'll be grateful.
Thank you,
Pietro
PS: I'm using Netweaver 7.1

Hi Peitro,
For using a Timer, you will have to add a Boundary event to a task. There are 4 default exception thrown for a boundary event:
1.StartDeadlineIsCriticalException
2.StartDeadlineIsNonCriticalException
3.CompletionDeadlineIsCriticalException
4.CompletionDeadlineIsNonCriticalException
Please refer this [Article|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7063a59e-0728-2c10-9d8a-cd6ce21e1c65?QuickLink=index&overridelayout=true] for more information about Boundary events.
Try adding CompletionDeadlineIsCriticalException boundary event to your task and give the required time limit in the Completion Deadline section under Time Constraint tab of your task.
Regards,
Unni

Similar Messages

  • Get a process variable's value to set a task's time constraints

    Hi,
    I want to have my task expiration times determined by a process variable (Data Object Artifact) that defines a task's "time to live".
    The problem is that I don't have visibility of the process variables inside the Time Constraint's Expression editor.
    Is there a way to get a value of a process variable inside a task without modifying the Web Dynpro associated with the task?
    Thank you,
    Pietro

    Hi Pietro,
    As the task is associated with the WD mapped to it, we will be able to access only the WD Interface controller context associated with it and also few other Task attributes.
    Regards,
    Unni

  • Time Constraint for Boundary Events

    Hi experts.
    I am pretty new to BPM (NetWeaver Developer Studio 7.1 SP04 BPM SP05) and I am just making a test process to try to get the time constraint concept right. So far I have three tasks in my process, very much like a textbook example. In my first task I have an input field in which you're supposed to type in your name, which is then saved to the context and triggers the second task when completed. That second task is nothing but a screen displaying "You successfully generated a second task, (with the name you entered in the first task here)."
    That works fine so far. Then there's the third task, which is linked to a boundary event on the second event with a start deadline which is critical exception. Here's the idea... You complete the first task (name input), then you fail to start the second task within a certain amount of time defined by an expression, so the process should go to the third task because of the deadline. By the way, it works fine when using a default time, so I must be doing something right so far, the problem is when trying to dynamically change the time with the expression.
    What I tried was to define a context attribute type time and date (I tried both) and assigning a time (current time plus whatever amount of minutes) to that attribute via Java coding at the time you click on the button which completes the task, then use that context element in the expression, but that didn't work. I also tried to make that context attribute an integer and set it to whatever amount of minutes I want to use for the deadline, then in the expression get the current time and add that afore mentioned integer to its minutes. That didn't work either.
    Please help, I have seriously done some research, and no success yet.
    Edited by: david.palafox on Jul 1, 2010 5:54 PM

    Figured it out.

  • Time Constraints and Boundary Events in BPM

    Hi all,
    I have done the following:
    In the Task window, Time Constraints tab
    - Checked "Define a default completion deadline" with the offset as 3 minutes.
    - Checked the "Raise critical exception when deadline is reached" checkbox.
    In the boundary events for the activity, I have added "CompletionDeadlineIsCriticalException".
    From the boundary event, I have linked to to another activity that belongs to another user (User B).
    When i am testing the BPM, the task goes into a Suspended status after 3 minutes. However User B did not received a new item in the UWL.
    In the NWA, "Manage Process: Process Instances", i can see that Task is escalated by null and the status is suspended.
    Does anyone has any advice over here?
    Thank you.

    Hi,
    i have checked the BPEM-CORE version as instructed.
    It says 1000.7.11.2.0.20090321233900
    Does that means I need to update to the latest patch?
    Please also check the version of your NWDI build plug-in BPEM-BUILDT in the respective NWDI track. This is used to build Process Composer DCs in your NWDI.
    I am in the Development Infrastructure Perspective in NWDS
    How do i check the version number for BPEM-BUILDT in the NWDI?
    Thank you.

  • Time Constraint for Position A012 Relationship

    Our organization's structure is such that one position may manage more than one organizational unit.  The time contstraint for A012 relationship for positions is currently set to 2, which appears to be restricting me from establishing a position as chief for more than one subordinate org units.  In our test environment I changed the constraint to 3 and now am able to have a position as chief of multiple org units.  Have I created any potential problems (i.e. with workflow) by changing the A012 time contraint?
    Thanks for any advice,
    - Lora

    Not that I am aware of. In the situation of having the time constraint is the when certain program uses evaluation path, it doesn't know which one of the path to pick since there are more than one path presented.
    In the case of workflow, usually it will go to all of them. The first one that open the task owns the task.
    But in the case of A012, it should be okay. There are situation where the chief relationship will be towards more than one organizational unit. Where his position belongs to is a different story. As where his position belongs to for the org unit defines who is his/her reviewer for performance and compensation. But he could have as many A012/B012 to manages all those org units as he wishes.

  • Time constraints and Dialog module

    1.What is the difference between the time constraints A(IT exists just once from 01 Jan 1800 to 12 Dec 9999) and B(IT exists for maximum of once from 01 Jan 1800 to 12 Dec 9999)?
    2.What is the necessity of dialog module for a Infotype?

    Time Constraint A and B
    Infotypes with time constraint A & B must have no more than one record. The system automatically assigns the record a validity period from January 01, 1800 through December 31, 9999. This validity period cannot be subdivided.
    Infotype records with time constraint A CANNOT be deleted.
    Infotype records with time constraint B CAN be deleted.
    The difference is check the BOLD TEXT.
    As for ur second question, Function modules/dialog modules helps calling infotypes when called from any custom program ,and allows you to perform similar actions/tasks that you would perform on them from direct maintainance. ex: create,change, delete etc. also performing the same on multiple infotypes in a single go using a them is easier than writing a code to manipulate each single infotype.
    SAP exposed these functions to be exploited as there will come many situations in business scenarios where you require to work with them by writing custom code.
    hope its helpful

  • Time Constraint Error when calling a Function module from Webdynpro ABAP

    Any help will be greatly appreciated - Thanks RM
    Time Constraint Error
    Information on where terminated
        Termination occurred in the ABAP program "SAPUP50R" - in
         "CHECK_TIME_CONSTRAINT_S1".
        The main program was "MP000000 ".
        In the source code you have the termination point in line 1069
        of the (Include) program "UP50RU01".
    Error occurred during batch input processing
    Source Code Extract
          l_is_inconsistent = 'X'.
        ENDIF.
      Check if there are inverted time periods.
        IF l_prelp_line-begda > l_prelp_line-endda.
          l_is_inconsistent = 'X'.
        ENDIF.
    Check if there are overlaps or gaps.
        IF NOT l_prelp_before IS INITIAL.
          l_date_difference = l_prelp_line-begda - l_prelp_before-endda.
          IF l_date_difference <> 1.
            l_is_inconsistent = 'X'.
          ENDIF.
        ENDIF.
        l_prelp_before = l_prelp_line.
      ENDLOOP.
      IF l_prelp_before-endda <> '99991231'.
        l_is_inconsistent = 'X'.
      ENDIF.
      IF l_is_inconsistent = 'X'.
        IF p_access_type = 'R'.
    490 Datenbankschiefstand Personalnummer & Infotyp &
          MESSAGE x490 WITH l_prelp_before-pernr l_prelp_before-infty.
        ELSE.
    491 Unzulässige Daten Personalnummer & Infotyp &
    Line 1069 Error occcurs >>>>  MESSAGE x491 WITH l_prelp_before-pernr l_prelp_before-infty.
        ENDIF.
      ENDIF.
    ENDFORM.                    " CHECK_TIME_CONSTRAINT_S1     "XYVN0352581
    *&      Form  clear_no_adapter_needed              new     "XREN844998
          text
    FORM clear_no_adapter_needed .
      CLEAR no_adapter_needed.
    ENDFORM.                    " clear_no_adapter_needed
    *&      Form  set_no_adapter_needed              new     "XREN844998
          text
    FORM set_no_adapter_needed .
      no_adapter_needed = 'X'.
    ENDFORM.                    " clear_no_adapter_needed

    Hi,
    Well, are you trying to do a batch input on infotype 0000? If yes you need to check that the proposed values respects the time constraint, meaning no gap, no overlaps and no inversions. Also fields SUBTY, OBJPS, SPRPS and SEQNR must remain initial when processing IT0000...
    Kr,
    Manu.

  • Any report to identify Time Constraint issues?

    Hello,
    Is there a report that I can run to get the employees and Infotype records with time constraint issues? So until last week, we had not turned on the PC-UI switch in T77S0 table. So the way it worked was, if in history there were 2 records with time gaps for Infotype with time constraint = 1, then it still allowed us to create new records. Now with the switch turned on, it gives an error. Once the historic records are corrected, it allows us to proceed. This is freaking out a lot of data specialists, and we were wondering if we can proactively identify the employees with these historic data inconsistencies and be able to correct them. Please let me know.
    Thanks,
    Nakul

    Found it: RPUSCNTC
    Thanks,
    Nakul

  • Time constraints for IT0377

    Hello All,
    For the Benefits IT, 0377, we are using a benefit area 08 and subtype 0001.
    For this Benefit Area and Subtype, we have configured several Benefit Plans such as BUPA, CYCL, TRVL etc.
    We want to set the time constraint such that for an employee, multiple benefit plans for the same period can exist (Time Constraint 3), but at the same time, there should be no overlapping record for the same benefit plan.
    for Ex, a BUPA can exist from 01.01.2007 - 01.01.2008 and
    a CYCL could exist from 01.01.2007 - 01.01.2008 <i><b>but</b></i>
    another BUPA with 15.01.2007 - 15.09.2007 should not be allowed. In this case the earlier BUPA should be delimited.
    If I use time constraint 1 or 2  I cannot create multiple benefit plans, as all previous records with the same time range are deleted.
    How can I configure the Infotype such that the above requirement can be fulfilled?
    Thank You,
    Vaishali

    Hi..
    I don't think it can be done, as this as time constraint depends on the startdate and enddate, and it has no connection with the Benifit Plan .

  • Position to Cost Center Relationship with time constraint 1

    Hi,
    I have a situation wherein:
    1. There exists 2 records in PP01 with S-K relationship e.g. 01.01.2013 to 28.02.2013 and 01.03.2013 to 31.12.9999
    2. There is a requirement to create another S-K record with dates; 01.02.2013-28.02.2013 automatically delimiting the first record.
    Hence in all three records should exist
    But when i try creating the 3rd record with end date 28.03.2013, it gives an information message stating End Date corrected to maximum end date of 31.12.9999. Thereby over writing the previous record(2nd one)
    Do I need to change time constraint? Time constraint 1 should ideally allow this, as my records do not have gaps and exist at all times.
    Please guide me through.

    Hi Rohan,
    Please check the table V_T777ZVK and the time constraint between S and A011 it must be 02 as per the standard system.
    Then time constraint 2 means a maximum of one infotype record of the same type for the same object at the same time.
    So if you change then end date must be 31.12.9999.
    Regards,
    Mithun K

  • How to make a custom infotype field the time constraint 1?????

    Hello everyone I have this challenging question for gurus to answer it.
    In custom created infotype for OM Ii have that field called ZZJOBID. When infotype was created I assigned the time constraint 1 for that infotype. That time constraint was base on OBJID not on ZZJOBID. Now the problem I am encountering is when I assign the 2nd ZZJOBID  with time span 01011800-12319999 it overwrite the 1st assign ZZJOBID.
    for the requirement reason I have to use PO10( not po03). If I change the time constraint to 3 which let me have the multiple records but I am losing the delimit and other functionality which comes with time constraint 1.

    Suresh,
             you are wright when you say that ' Time Constraint is for the Infotype/Subtype record and cannot be based off a field.' The OM infotype runs on bases of Object such as Organizational Unit, Job, etc... The point I was trying to draw is I am looking for a way that allow me to work via TC PO10 which run on Organizational Unit along with different ZZJOBID (with same begda and endda, if needed).

  • Deleting an Infotype with Time Constraint 1 - programatically

    Hi there,
    We have a few records (IT0008), that need to be deleted. Unfortunately, when we use PA30 to delete, it won't delete the record(s). (Displays the error msg. "Record has time constraint 1" ) But, when we use the Utilities option in PA30 and go thru', it appears to successfully delete the same.
    Now, could somebody pl. let us know how to go abt. doing the same programatically in ABAP ? I've tried looking at the FM's HR_MAINTAIN_MASTERDATA and HR_INFOTYPE_OPERATION (without much luck though....Although, SAP claims to have a documentation of these FM's, there is actually no proper docmn. at the Field level of these FMs)
    Moreover, the FM HR_MAINTAIN_MASTERDATA returns exactly the same error "Record has time constraint 1".
    Am a bit baffled as it is...
    Any help would be gratefully acknowledged and appreciated.
    Many thanks in anticipation,
    Kind Regards,
    RVS

    there is no function module to do forbidden actions.
    you only can do it with DELETE statement.
    select single dbtab from t777d into gv_dbtab where infty = p_infty.
    delete from (gv_dbtab) where pernr in p_pernr.
    But you will have to be very carefully. There are "blind" infotypes behind some "normal" infotypes you will have to care about (i.e. 0000 -> 0302).

  • Time constraint in Smart Playlists

    All,
    I'm having a problem with my smart playlists as soon as I add a time contraint to them. Basically, I would like to make sure that in certain playlist I don't have any song that is longer than 10:00 minutes. As soon as I add a constraint for that to any of my playlists, iTunes starts acting weird by placing songs into the playlists that shouldn't be there (ruled out by "genre" or "My Rating" constraint) or simply by not updating the Playlist anymore. Removing the time constraint will update my playlist correctly again. This result is reproducable.
    Anyone else experienced this? Is there a workaround?
    Thanks,
    Heiko.

    Daniel,
    thanks for your response, and here's some more info:
    - I've use the time contraint in multiple playlists, that have worked just fine before adding the time constraint;
    - initially, after adding a time constraint (usually something like "time" "is less than" "10:00") everything seemed fine;
    - only a few days later I noticed that my playlist hadn't been updated correctly. For example, one of my playlists consists of songs rated 4 and I limit to 50 songs by least recently played; with over 900 songs rated 4, after a song was played it should disappear from that playlist for a while but some songs didn't; also, sometimes I would see less than 50 songs in that playlist;
    - after removing the time constraint the playlist updated correctly again
    I know that the fact this only appears after a few days (or that I've only noticed it a few days later) makes it pretty tough to narrow down but that's all I've got so far.
    Thanks again,
    Heiko.

  • Time Constraints....Help

    Guys,
    Need help.
    I want the standard SAP time constraints (or a copy ) of the TCs from t554y.
    i have been experimenting in it and now i dont have the original.....
    problem is am not able to overwrite my absence with an attendance...
    have used 1 as the Tc for both the Attd and Abs.
    though am using "A", am not able to over write.system says "check collisions, not able to insert your attendance"
    wht to do..

    HI
    i want to overwrite it. thatswhy i am taking help of TCs....
    and it can be done , but i donno how..
    only thing i know os we shuld change in 554y table.

  • Time Constraints

    Guys,
    Need help.
    I want the standard SAP time constraints (or a copy ) of the TCs from t554y.
    i have been experimenting in it and now i dont have the original.....
    problem is am not able to overwrite my absence with an attendance...
    have used 1 as the Tc for both the Attd and Abs.
    though am using "A", am not able to over write.system says "check collisions, not able to insert your attendance"
    wht to do..

    Hi,
    This occurs because the absence record is present for that period. Please delete that record and then enter your attendance for that day.
    You can change the TC in table T554Y.
    Hope this helps,
    Reward points if helpful,
    Thank You,

Maybe you are looking for