Activity deadline

I can get activity deadline if I add a due transition to an interactive activity.
Except for doing that, is there any other method to add activity deadline and reset it to a new time?

Hi Ye,
There are two ways you can reset a deadline caused by an Due Transition coming out of an activity.
1) Wait for the original deadline in the Due transition to fire. This would be the case if you have a Due transition go to another activity (typically an Automatic activity) -> then have the instance go back into the original activity via an unconditional transition. You'd take this approach if you want to alert someone via email that a work item instance needs to be worked on immediately.
2) Add a Message Wait activity to the process but do not connect it into the process (no transitions going into or out of the activity). Add an Automaitic activity to the process - similarly - do not connect it into the process (no transitions going into or out of the activity). Add an unconditional transition from the Message Wait actiivty to the Automatic activity. Change the Runtime property of the Message Wait activity to have it wait for either an "External" or "Internal event". Also check this activity's "Allows interruptions" property. In the Automatic activity add this one line of logic:
action = BACK When the work item instance returns back into the activity, the activity deadline (not the process deadline caused by the "deadline" predefined variable) will automatically be recalculated and reset.
If you use the second approach, you'd need some way to send a notification to the work item instance. You'd use this approach if you want just want to for the deadline for work item instances sitting in an activity to be reset.
Dan

Similar Messages

  • Interactive activity deadline without due transitions

    I need to define deadline for all interactive activities. However, I do not want to add due transitions or Connector to every interactive activity. How to set the activity deadline without due transitions?
    Or, I add a due transition / deadline to all interactive activities. If the deadline is reached to any of them, an exception will start.
    Or, if any activity is expired, it should go to a specific activity. How to do that?
    For example, a process has 2 interactive activities, named a1 and a2. The first activity has a method:
    activity as Activity
    activity=Activity("a2")
    t as Time
    t = addSeconds(activity.deadline, i : 20)
    It sets the deadline of a2. However, after it is deployed to BPM standalone 10g, when sending a1, Standalone shows error.
    Sincerely
    Edited by: YE on Jun 5, 2009 4:01 PM

    Hi Ye,
    There is a predefined variable called "deadline" you might want to consider using for this. Instead of having to add due transitions for each activity, if you set the deadline variable to some time in the future, once that time is exceeded the work item instance automatically throws an "InstanceExpiration" exception.
    1) I usually set the deadline variable in the Begin activity in the process to some time in the future. Although you can set it there, it can be changed anywhere in the process if you want the deadline to be different in the next activity. You just need to be sure to set the deadline upstream of the activity.
    2) Add an exception handler to catch the InstanceExpiration exception by:
    a) adding an orphan Interactive activity
    b) if an exception handler does not exist in the process, right mouse click anywhere in the white space of the process -> "Add an exception transition to" -> select the Interactive activity you added in the first step -> click the "Properties" tab -> select the Exception Name combo dropdown and pick "InstanceExpiration" -> click Ok and then Yes.
    c) the logic in the Interactive activity that catches the overdue instances needs at least these statements:
    // reset the deadline so another exception is not immediately thrown
    deadline = 'now' + '2d'
    // code here to do what it is that you want done (e.g. escalate the priority, send someone an email, etc.)
    // now send the instance back to the activity where the deadline expired
    action = BACK Hope this helps,
    Dan

  • Activating deadline monitoring

    Hi,
    We are on SRM 5.0 , using n-step workflow.we need to activate the deadline monitoring,My requirement is if the cart is more than specified time with approvers then it has to send email to the approvers.Please let me know if somebody has configured this.
    Thanks in advance,
    sobhan

    Hi
    <u>Refer to SRM 5.0 Workflow related deadline monitoring detailed configuration and details.
    Here are the links.</u>
    <b>http://help.sap.com/saphelp_srm50/helpdata/en/2c/e68d406b305537e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/42/c879d8d9cc6bb5e10000000a1553f6/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/c5/582541019fa52fe10000000a155106/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/ca/7c5c41fe06cf1ee10000000a155106/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/43/21cfbe120c0bd5e10000000a422035/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/7c/09eb38c4084d7ce10000000a114084/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/0b/b18c423e3f8c51e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/96/0a2441509fa831e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/3c/831620a4f1044dba38b370f77835cc/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/6d/0f343e47fd6b2ee10000000a114084/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/13/6b7e740fedc84c8edc7a97973d22ac/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/43/d92e428819da2ce10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/45/87a34098022a54e10000000a1550b0/frameset.htm</b>
    Hope this will help.
    Please reward full points, incase it suits your requirements.
    Regards
    - Atul

  • Deadline for an interactive activity

    In the process, there is an automatic activity (A) before an interactive activity. Please let me know how to set the deadline for the interactive activty through A.
    The requirement is regarding setting up the SLA for an instance for every interactive activity. The instance should be highlighted in red once the SLA is crossed. I know how to customize the workspace for this. I am looking at how to set up the deadline (SLA) through code based on certain conditions.

    If you want the instance to remain in the Interactive activtiy even though the deadline has passed, you might not want to use a Due transition. The Due transition's whole purpose is to fire and have the work item instance flow through it after the time period specified inside the Due transition's property elapses.
    You might want instead want to create a new project variable that represents some time in the future for the work item instance. This would have to be a time variable since an instance sitting in an Interactivity won't be able to indicate that a time period has elapsed except by comparing the current time with the time value you set in the project variable's time variable.
    I'm not sure that the deadline predefined variable is a fit for what you're trying to do. You'd use the deadline predefined time variable to set an SLA for the entire process. Once this time period expires, the engine will fire an exception (an "InstanceExpiration" exception) that would need to get caught by an Exception Handler activity somewhere inside your process.
    When you create a Due transition for an activity, it's a different type of SLA. It sets an SLA for a specific activity (vs. the entire process). You're not going to find much joy in trying to set the predefined variable activity.deadline. This is automatically set by the engine when the engine sees that an activity has a Due transition. The engine sets this time to the time in the future established by the Due transition. This is a read only predefined variable that you won't be able to set. Instead, consider creating and setting a new project time variable I mentioned above that you can check to see if the time has elapsed by comparing it with the current time.
    To make a primitive instance variable (e.g String, Decimal, Time, etc.) available to a JSP, create a BPM Object with attribute(s) corresponding to the instance variables you want passed to the JSP. Prior to the Screenflow's Interactive Component Call task where you present the JSP, you'd just need to set the primitive instance variable(s) to the attributes in the BPM Object.
    Hope this helps,
    Dan

  • CRM 5.0 upgrade issue - workflow didn't update deadline

    I'm working on our testing system that upgraded to CRM 5.0. The workflow started and routed correctly, but it didn't change activity deadline and employee responsibility.
    In the object method, we CALL FUNCTION 'BAPI_ACTIVITYCRM_CHANGEMULTI' and FUNCTION 'BAPI_ACTIVITYCRM_SAVE' to change deadline and employee responsibility. It works in our current production system, but it didn't work in our new upgraded system. I don't know why.
    Who can tell me what's the problem and how to fix this problem?
    Thanks
    Shirley

    I solved problem.

  • What happens if I don't activate Windows Server 2008?

    Hello. I currently have some Windows Server 2008 virtual machines that I use for school labs. They're legitimate copies (they came with the MS 70-642 lab manual), but I forgot to activate them at school and I remember that I only have 12 days left to activate.
    Will I still be able to use the Windows Server 2008 machines after the activation deadline? Will any features (AD, IIS, DNS, etc.) be lost?
    Thanks.

    I am sure once the trail period has expired it won't allow you to log on. I think after you put username and password it comes with the activate screen and won't let you pass untill you activate it. 
    You might able to increase the trail period with the following method. I hope you still have some time left.
    Click Start, and then click Command Prompt.
    Type slmgr.vbs -dli, and then press ENTER to check the current status of your evaluation period.
    To reset the evaluation period, type slmgr.vbs –rearm, and then press ENTER.
    Restart the computer.
    I think you can do this 5 times.
    Thanks
    Umar

  • Changing CS3 license from Mac to PC

    One of our co-workers who used CS3 on her Mac has left, and the new person has a PC instead. We'd like to get CS3 installed on the PC, but Adobe won't sell us a new set of CS3 disks and serial number.
    We've got the software installed on the PC, but we are coming up on the 30-day activation deadline. Is there a legal way to get the $30 disk package if Adobe doesn't want to sell CS3 disks any more?
    We don't want necessarily to have one person be forced to jump up to CS4 while the rest of the department doesn't have the funds to upgrade until August. We don't want to use an existing PC serial number since they are all in use.
    Thanks
    Darryl

    Darryl,
    I trust you have title to that CS3/Mac version. Your only choice may be to do a cross/upgrade to CS4. CS3 is discontinued and probably scarce as proverbial hen's teeth from legitimate sources. This is the direction I would recommend. Most of the files created in CS4 can be read under CS3. InDesign can be saved back one version, but I'm not sure if there are any issues here.
    I don't know how you got the Mac CS3 installed on a PC (as your post implies), unless you mean you did a thirty-day demo of the PC version. But then, that would be CS4, no?
    Neil

  • How to get work item details programatically ?

    Hi All,
    I have a list of work items (process instances) and I want to retrieve each item details such as: attachments, notes, id, ...
    All the items are filtered and represented as Fuego.Papi.Instance:
    Fuego.Papi.Instance[] inst = busProcess.getInstancesByFilter(filter : instFilter);
    But the work item details are inherited from Fuego.Lib.ProcessInstance. So, how to get the item details from inst[] ?
    Would appreciate any help, may be Dan will have an advise ?
    Regards,
    Kim

    If you have instances returned by your filter, you could extract variable information for each instance by doing something like this:
    for each inst in getInstancesByFilter(ps, filter : instF) do
        // here's how to get the value inside a primitive instance variable
        orderAmtObj as Object = getVar(inst, var : "orderAmount")
        // here's how to get the value of attributes inside a complex BPM Object instance variable
        //    - in this case this is an "order" object with two attributes (customerName and amount)
        orderObj as Object = (getVar(inst, var : "order"))
        xmlObject = Fuego.Xml.XMLObject(createXmlTextFor(DynamicXml, object : orderObj, topLevelTag : "xsi"))
        logMessage "The value of the order object's customer name is: " +
               selectString(xmlObject, xpath : "customerName")
        logMessage "The value of the order object's order amount is: " +
               selectNumber(xmlObject, xpath : "amount")
        // here's a rather uninspired way to retrieve who the participant is that was assigned the instance
        logMessage "The participant assigned to this instance is: " + inst.participantId
    endInside the above "for" loop, you could retrieve these predefined variables (this example assumes you use "inst" in your "for" loop):
        objRet as Any
        objRet = inst.getVar(var : "PREDEFINE_ACTIVITY")
        logMessage "Activity name = " + objRet using severity = DEBUGSubstitute "PREDEFINE_ACTIVITY" in the above logic to get this information:
    PREDEFINE_PRIORITY (priority)
    PREDEFINE_ACTIVITY_DEADLINE (activity.deadline)
    PREDEFINE_CREATION_TIME (creation.time)
    PREDEFINE_PROCESS_DEADLINE (deadline)
    PREDEFINE_DESCRIPTION (description)
    PREDEFINE_PROCESS (process)
    PREDEFINE_RECEIVED_TIME (receptionTime)
    PREDEFINE_PARTICIPANT (participant)
    PREDEFINE_COPY (id.copy)
    PREDEFINE_STATUS (status)
    Similarly, you might want to try to get instance information using the Fuego.Papi.VarDefinition object a try. Never used it, but the logic might be as simple as:
        logMessage "who created? = " + inst.getVar(Fuego.Papi.VarDefinition.CREATOR_ID) using severity = DEBUG
        logMessage "does it have attachments? = " + inst.getVar(Fuego.Papi.VarDefinition.HAS_ATTACHMENTS) using severity = DEBUG   
        logMessage "does it have notes? = " + inst.getVar(Fuego.Papi.VarDefinition.hasnotes) using severity = DEBUGDan

  • How to get transitions BPM activities with PAPI?

    Hi:
    I wonder if you can get the transitions of the activities of a process with PAPI. And how do you get?.
    Also, if you can get the expiration time of each activity, and process in general, and how to get those times.
    I hope you can help me and your prompt response.
    Greetings.

    Hi Eduardo,
    Not sure how you'd get the transitions for an activity using PAPI, but here's how you could get the deadline for a work item instance.
    Once you get your instance in the "for" loop below you'd use the PAPI variable "PREDEFINE_DEADLINE". As you know, there is an activity deadline (created by having a Due transition coming out of an activity) and a process deadline (created by setting the predefined variable "deadline" somewhere inside the process). This PAPI logic below uses the instanceInfo's three methods getDeadline(), getProcessDeadline() and getActivityDeadline() to retrieve the instance's deadline, process deadline and activity deadline respectively. Know you know this, but the "deadline" variable stores the time of the either the activity or process deadline that will expire first (e.g. if the due transition coming out of an activity will fire in 5 minutes and the process deadline won't fire for another 30 minutes, the PAPI getDeadline() method returns the activity deadline's time of 5 minutes in the future).
    If the activity does not have a Due transition, the getActivityDeadline() method returns a null value. Similarly, if the process's "deadline" predefined variable has not been set, then the getProcessDeadline() method returns a null value. If both the activity and the process deadlines are null, then the getDeadline() method also returns a null.
    This PAPI logic assumes that you've already done a search and have a list of instances in your "instances.toArray()":
         for (InstanceInfo ii : instances.toArray()) {
           // this gets the deadlines
           Time dl = (Time) ii.getDeadline(); 
           Time adl = (Time) ii.getActivityDeadline(); 
           Time pdl = (Time) ii.getProcessDeadline();
           System.out.println("deadline: " + dl
                                 + "\nactivity deadline: " + adl
                                 + "\nprocess deadline: " + pdl);
           // this gets the role where the work item instance
           //    is currently is sitting
           System.out.println("role name: " + ii.getRoleId());
           // this gets the name of the activity where the
           //    work item instance is currently sitting
           System.out.println("activity name: " + ii.getActivityName());
    . . .Hope this helps,
    Dan

  • Multiple deadlines in one activity - requested end deadline

    Hi,
    I have a requiredment I need to have 2 deadline notifications on one activity.
    if the task is not finished (requested end) in 5 days then an email should be sent to one dept. (one person)
    after 3 days of sending the first escallation email if the task is still not finished yet then there should be another email to different person.
    I have been going thru previous postings but couldnt find relevent one. Can anyone suggest me how to achieve this ?
    Thanks
    Sree.

    Hey Martin & Arghadip,
           This is quite interesting. when the experts have challenges and arguments then the learners have an opertunity to learn more and more. I have seen couple of other forums as well which have the same issue. Everytime time I am starting with some idea but ending with no clue to proceed.
          the thing is I have a wf with requested end and we have to have 2 escallations now. the other one is extra 3 days. I dont need to send the email recursively. only one time sending email.
          From your openions....  Where do I need to have requested start ? Do I need to create another activity/task inside a loop and check for the date ?  I am starting with a loop but that is taking me to create quite a few steps like condition, container operations...etc.
    I would like to finish in few steps. Can anyone please suggest me the procedure ?
    Someone suggested http://www.****************/Tutorials/Workflow/RecursiveMails/Scenario.htm. Can I achieve my problem with this scenario ?
    Thanks for all your time and efforts.
    Regards,
    sree

  • Requested End Deadline monitoring for Background Activity Step

    Hi All,
    Workflow for MSS Position change has been implemented in the system.
    When a request was created thru Portal the Workflow was triggered but it got stuck.
    I found that in a background activity step there is a requested end deadline monitoring which was reached.
    Since it is a background activity there is no agent assigned, then what could be the reason that the deadline was reached ?
    Can anyone tell me when is the Requested End deadline triggered ?
    Regards,
    Radhika.

    Hello,
    Yes, if it's workitem creation time + 1 minute then it means the deadline (any deadline - Latest End, Requested End, Requested Start etc, they're all the same, they just have different names) gets triggered.
    What happens next depends on how that deadline has been defined - it may just send a message to someone and do nothing else (ie it leaves the background process running). Or it may be a modeled deadline set up to end the process. Have a look in the Requested End tab to see what it does.
    regards
    Rick Bakker
    Hanabi Technology

  • Selective Deadline Transition for an Activity

    Hi,
    Can we define whether the due transition deadline for an instance needs to be set or not based on an instance variable? For ex., we have a due transition for a paticular activity and once the time expires an automatic activity is fired and then the instance comes back to the same activity. This process needs to be done only when the instance variable= xyz. But when the instance variable is some other value then the due transition deadline should not be set only. Hence the instance will remain at that activity only.
    The way I could think of is to have 2 same activities, one with due transition and another one without it, and we have a conditional transition based on the instance variable. This would satisfy the functionality, but would not be the right way of designing it as we would have 2 activities(with different activity ids) for the same screens.
    Is there a possiblity of defining the a conditional due transition, which would allow the due transition to be activated only when a condition is met?

    Hi,
    I'd do the same thing (model it with two activities) and cannot think of a better way.
    You could do this with only one activity with the Due transition set to a variable (e.g. "timeIntervalToWait" would be an Interval variable).  If "xyz" is false, you could set the timeToWait interval variable to some unreachable time period (e.g. '5y' (5 years)).  If it's true, you could set it to the time interval you actually want like '2d' (2 days).  The thing I don't like about this is that the end user sees the time interval in the Workspace.  Up to you, but I'd rather have a process with two activities (one with the Due transition and one without) than to potentially confuse the end user with an unreachable deadline 5 years from now.
    If you put the interactive activity in a Subflow and then have the Due transition coming out of the Subflow activity (set to some unreachable time or the actual time interval based on the value of xyz) you'd have made it worse.  Then the end user would not see the deadline if the time is meant to be unreachable (that's good), but unfortunately also would not see the deadline if the time interval is reachable (that's bad).
    Hope this helps,
    Dan
    Edited by: Daniel Atwood on Apr 29, 2009 6:13 AM

  • Multiple deadlines for an activity

    HI guys,
               I need to create a step in which if user does not take action for 3,5,10,20 days,we send him mail on his lotus notes.Single deadline,i think,can be done by 'latest end'.but how to tackle multiple deadlines.please help me.

    Hi Vivek,
    There are several options as long as you use a modeled deadline. In the modeled deadline you send the notifications, you can use a loop and put a wait step in the loop. I would not use a method like Arghadip suggest, because this couldn't be good for the system, but use a dummy method in a task with a requested start deadline. Another option is to use a wait for event step and wait for a condition (if you are on 4.7? or ECC5 or higher that is). You can wait for a condition which is true and you can use a requested start deadline. This is better for the performance of the system I think.
    Another option is to use paralel processing in the modeled deadline and use requested start deadlines for the different notifications.
    Probably you can think of more options, when you think about it.
    Regards,
    Martin

  • I cannot download software or export secure Certificate from Firefox, but can with Internet Explorer. This is crucial for meeting a deadline with an international patent Filing Today. Pls help - 555-555-5555. Sheldon

    I tried to download an e-filing client software from the World Intellectual Property Organization (WIPO) website [http://www.wipo.int/pct-safe/en/download/download_client.htm] using Firefox. Clicking the link to download yielded no activity. I eventually tried the same link in internet explorer and it worked. This occurred last week. I have a deadline to complete an international patent filing today; and in order to do so online, I had to request a Secure Digital ID from WIPO. It was approved and received early this morning (Central European Time Zone); and the accompanying guidelines suggested that I use the same computer and browser to retrieve the ID. This meant that since I use Firefox as my default browser my request was also made and had to be retrieved in Firefox. Following the WIPO support instructions I ran into exactly the same problem of inactivity when trying to "Backup" my newly installed ID certificate per WIPO instruction, so that it may be imported into the e-filing software. Please help as soon as you can as my patent deadline is merely hours away. Please also see a response from the WIPO helpdesk below:
    Dear User,
    we hereby provide the following solution / answer to your request:
    Subject: Certificates (use of and different types)/26708 Answer from PCT-SAFE Help Desk:
    Unfortunately, apart from revoking your new certificate and then re-enrolling using Internet Explorer, I do not see many options.
    We cannot do support for external software, like Firefox, but I had a quick glance at Mozilla's support side and it seems that you might be able to resolve your problem by starting Firefox in safe mode, and/or disabling all your Firefox extensions. I have to stress the fact that this is not a procedure tested and approved by the PCT-SAFE team.
    As this is an extremely time-sensitive issue please also contact me by phone so that we can work through the solution in real-time. I can be reached at 555-555-555 - Sheldon
    '''Moderator edit: Removed personal information. This is a public forum. Please do not post any personal information as it may put your safety at risk -FF4L'''
    == This happened ==
    Every time Firefox opened
    == Attempting to download from a secure server

    Just to follow up on my findings. My last issue regarding the digital certificate was not at the time of initial download into Firefox, but my application required that I backup the certificate into a folder which can then be accessed to sign a submission generated by a third-party Client software.
    After finally steering away from the digital signing route by opting for a non digital filing of my project, I later revisited the Firefox certificates list only to find that the 'Backup' button still didn't work or respond in any way whatsoever; however since I only had a single certificate on my list... I threw my hand up in the air and tried the 'Backup All' button... guess what - that worked!! My browser then navigated to a file browser which allowed me to save the certificate to a folder of my choice. Of course this was after the fact as my deadline had already passed and and I had the Administrator who initially granted my secure ID revoke it once I was blocked from downloading it by Firefox.
    Just an update/FYI for y'all... But I'm not sure if this type of anomoly is due to a glitch on my computer or a glitch on the browser - but it certainly did catch me off-guard during a deadline.

  • Deadline monitoring & extended email without customizing a new workflow?

    Hi,
    I have a Position setup in Partner Profile - Post Processing:Permitted agent, to be notify if processing errors occur on the inbound idoc interface.
    My questions are:
    1. Besides receiving work item in SAP inbox for the idoc fallout, is there any way to send extended notification Outlook email to the users in that position when processing error occured?
    2. How can i setup a deadline monitoring for the work item triggered only by these specific idoc message variant? In SWWA, it does not narrow down by workitem, permitted agent,partner profile etc.
    3. If #2 can be fulfill, is it possible for me to trigger a new work item to another user/position? An escalation to next level after due date.
    I know this can be done through customizing a workflow, but in my situation, i need to search for a solution in a standard existing SAP way without creating any new workflow, program or object.
    Any suggestions?
    Thanks.
    Regards
    Eunice
    Edited by: Huwi Yin Puah on Oct 1, 2009 1:08 PM
    Edited by: Huwi Yin Puah on Oct 1, 2009 1:10 PM

    Huwi,
    1# You can send the external notification using Send mail step in the standard workflow it self. I suppose, You can add new steps in Standard Workflow also. Use Send mail step and chose recipient type as "Email Address'. Pass the email Address and it will sent out to MS outlook inbox if all the SCOt Configurations are done.
    2# You can activate the deadline monitoring on any activity by
    double click on the activity
    goto tab Latest End
    Select the relevent options
    3# For excalation you can set the deadline out come as a "Modeled" outcome. It would provide you an extra wing in your approval task and in that extra wing you can create your own task putting agent as manager's manager.
    Hope it helps!
    Cheers,
    Vikash

Maybe you are looking for