How to mark an instance of recurring task complee?

I have a daily recurring task starting and ending on a specific dates. When I mark today's instance complete,  I am
1. Adding a copy of the task, mark it complete and set the completion date
2. Change the original task - Move due date/UTC due dates to one day ahead.
By enabling the logs, I found that the server sends the following commands (Add for new completed instance, and change for the original instance with due date moved by oneday). Please see the log below.
I am sending the same exact response, when I want to mark task complete from the exchange activesync client. But that results in the original task move one day backward! (It says overdue).
What is the right way of doing this? I dont see any example in the protocol documents (MS-ASTASK).
I tried the following, but not able to fix it consistently.
- Move Duedate to two days in advance
- Modify the recurrence start date as well. Do we need to modify the recurrence as well?
- If the task has a start date, does that need to be advanced as well?
- Which one does server use? UTC Due date or Due date?
- What is the significance of regenerate? Does client need to behave differently for different regenerate values?(0/1)?
it is very frustrating that Microsoft charges for licensing the protocol, but does not provide proper documentation and support.
Thanks!
                <Add>
                    <ServerId>22:3</ServerId>
                    <ApplicationData>
                        <Body=18 bytes/>
                        <Subject xmlns="Tasks:" bytes="5"/>
                        <Importance xmlns="Tasks:">1</Importance>
                        <UtcDueDate xmlns="Tasks:">2014-10-25T07:00:00.000Z</UtcDueDate>
                        <DueDate xmlns="Tasks:">2014-10-25T00:00:00.000Z</DueDate>
                        <Recurrence xmlns="Tasks:">
                            <Regenerate>0</Regenerate>
                            <DeadOccur>1</DeadOccur>
                            <Type>0</Type>
                            <Start>2014-10-25T00:00:00.000Z</Start>
                            <Until>2014-10-31T00:00:00.000Z</Until>
                            <Interval>1</Interval>
                        </Recurrence>
                        <Complete xmlns="Tasks:">1</Complete>
                        <DateCompleted xmlns="Tasks:">2014-10-25T07:00:00.000Z</DateCompleted>
                        <Sensitivity xmlns="Tasks:">0</Sensitivity>
                        <ReminderSet xmlns="Tasks:">0</ReminderSet>
                    </ApplicationData>
                </Add>
                <Change>
                    <ServerId>22:1</ServerId>
                    <ApplicationData>
                        <Body=18 bytes/>
                        <Subject xmlns="Tasks:" bytes="5"/>
                        <Importance xmlns="Tasks:">1</Importance>
                        <UtcDueDate xmlns="Tasks:">2014-10-26T07:00:00.000Z</UtcDueDate>
                        <DueDate xmlns="Tasks:">2014-10-26T00:00:00.000Z</DueDate>
                        <Recurrence xmlns="Tasks:">
                            <Regenerate>0</Regenerate>
                            <DeadOccur>0</DeadOccur>
                            <Type>0</Type>
                            <Start>2014-10-25T00:00:00.000Z</Start>
                            <Until>2014-10-31T00:00:00.000Z</Until>
                            <Interval>1</Interval>
                        </Recurrence>
                        <Complete xmlns="Tasks:">0</Complete>
                        <Sensitivity xmlns="Tasks:">0</Sensitivity>
                        <ReminderSet xmlns="Tasks:">0</ReminderSet>
                    </ApplicationData>
                </Change>

John,
the situation is that i have schedule that runs specific jobs and i want to get access to the view object inside the Application module
i know what view object to access and the application module that contain them
but i can't get the application module instance as there are no FacesContext
so after i used your suggestion i got this Exception
java.lang.NullPointerException
     at com.evermind.server.http.EvermindHttpServletRequest.unprivileged_getSession(EvermindHttpServletRequest.java:2615)
     at com.evermind.server.http.EvermindHttpServletRequest.getSession(EvermindHttpServletRequest.java:2598)
     at com.evermind.server.http.EvermindHttpServletRequest.getUserPrincipalInternal(EvermindHttpServletRequest.java:3640)
     at com.evermind.server.http.EvermindHttpServletRequest.getUserPrincipal(EvermindHttpServletRequest.java:3614)
     at oracle.jbo.http.HttpSessionCookieFactory.createSessionCookie(HttpSessionCookieFactory.java:105)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.createSessionCookie(ApplicationPoolImpl.java:452)
     at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1540)
     at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1504)
     at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1476)
however i have tested it in a test class inside the main method and its works
but when calling it in my code i got the previous Exception
i don't know why ???

Similar Messages

  • How to show next instance of Recuring Event in Calendar List View

    We have a calendar that we are using to display upcoming events.  However we are unable to get a clean output of next instance date for recurring events such as paydays or monthly meetings.  As opposed to showing next instance it shows the date
    the event was originally put in the calendar. 
    I am guessing it will take a custom script, but I don't even know where to begin with that.

    Hi Swen,
    According to your description, my understanding is that you want to display the recurring events as separated events in the calendar list view.
    I recommend to create a Standard View, with Expanded Recurring Events for the calendar list,
    and each instance of a recurring event will be showing in this view.
    More reference:
    http://office.microsoft.com/en-in/sharepoint-server-help/create-change-or-delete-a-view-of-a-list-or-library-HA102774516.aspx#_Toc337729214
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • ST03 Export: How to export all instances and task types?

    I am exporting ST03 data using SAP GUI
    I can export data for a single task type and a single instance.Is there a way I can export the Time Profile data for all instances and all task types in a single export? Can I do a single export rather than NxM exports?
    Also, when I export to a text file, there is a header that reports the instance, data, and task type. When I export to excel file I only get the table, not the header info. Is there a way to to get the header info into the excel export?
    Is this the appropriate forum for these questions?
    Any help is appreciated.
    Thanks.
    Tim

    I moved this question to an ABAP forum. Here's the [thread|ST03 Export: How to export all instances and task types?;.
    Tim

  • How to create recurring task in SharePoint 2013?

    Hello,
    Applies to: SharePoint 2013
    Requirement: Is there a way to create recurring task in SharePoint 2013?
    Regards
    Tanzim Akhtar
    Tanzim Akhtar

    this might have the answer and work around. I will try it.
    "What's changed in SharePoint Designer 2013"
    http://msdn.microsoft.com/en-us/library/jj728659.aspx
    Here is some of the explanation:
    Description of the change. Some features of the SharePoint 2010 Workflow platform that are dependent on Windows Workflow Foundation 3.0 are deprecated in SharePoint 2013.
    Reason for the change.SharePoint 2013 introduces a new SharePoint 2013 Workflow platform that is built upon Windows Workflow Foundation 4.0 and that is integrated with Workflow Manager 1.0.
    Migration path. In SharePoint Designer 2013, you can still create a SharePoint 2010 Workflow and use all of the SharePoint 2010 Workflow features by choosing the SharePoint 2010 Workflow platform.
    You can also integrate features from the SharePoint 2010 Workflow platform into the new SharePoint 2013 Workflow platform. To do this, create a SharePoint 2010 Workflow by choosing the SharePoint 2010 Workflow platform; create a SharePoint 2013 Workflow by
    choosing the SharePoint 2013 Workflow platform; and then use the Start a list workflow and Start a site workflow actions in the SharePoint 2013 Workflow to call the SharePoint 2010 Workflow.

  • How to open and navigate between human task forms in a same page?

    Hi
    I use Oracle BPM 11.1.1.5
    I have a question about taskflows in BPM Application.
    In ADF web application, I create a sipmle task flow and insert view id and bind these to jspx pages, my pages are opend in same page when
    return an outcome.
    For exapmle I have three pages like A,B,C.
    In task flow, insert three view ids and bind to A,B,C.
    My first pages is A, and when outcome is B navigate to B, when my outcome is C then navigate to C in a same page not separate pages.
    But my problem is here.. in BPM Application when create task forms, every task has a separate task flow that there exist a single view id and a wild card flow in it.
    In BPM workspace when initiate human task form is closed, I should press refresh button to see next human task form in task list table.
    I tried to create a simple task flow and insert human task forms in it and navigate between these.. but show human task form in wrong display and don`t show some component and human task payload.
    Now, my question : How to open and navigate between human task forms in a same page like software installation?

    Having a separate Data Control for each human task is normally the case. There is a way to assign multiple human tasks to a single data control (and one task flow), but I don't think that this is going to help you with what I think you're trying to do.
    If your human task is called "EmployeeDetail", then you'd use the data control associated with this for the UI pages in the task flow diagram that is associated with this human task. For example, you might have a first page that has just the basic employee information - the fields (at least the ID field) would come from the EmployeeDetail data control. When the end user clicks "Next", you might have this UI page flow to a second UI page in the task flow diagram that has the employee's address information. You might place the address fields from the EmployeeDetail data control onto this second UI page.
    You might be asking how the work item instance can automatically flow to the next interactive activity in the process while staying inside the first interactive activity's human task's task flow diagram. This is not how it works - the task flow diagram models the end user interaction while inside a single human task that is tied to a specific interactive activity in the process. If you want a the end user to be able to move the instance through multiple interactive activities in the process in one interaction, look at "Activity Guides". Activity Guides do a nice job of this.
    Dan

  • How to extract latest instance of a report using BO Enterprise SDK?

    Using BO Enterprise SDK how to extract latest instance of report from Crystal Enterprise XIR2?. Can anybody help me with explanation or code?
    Thanks in advance.

    Hi,
    Use the following query in the query builder
    SELECT
    SI_NAME, SI_SCHEDULEINFO.SI_STARTTIME
    FROM
    CI_INFOOBJECTS
    WHERE
    SI_RECURRING = 1
    SI_NAME: The recurring report name.
    SI_SCHEDULEINFO.SI_STARTTIME:  The date and time the report is scheduled to run next.
    The query above will return all the recurring reports .
    Regards,
    Prithvi
    Edited by: Raj_10 on Sep 14, 2011 1:54 PM

  • Why do my recurring tasks have a due date earlier than the reminder date?

    When I create a recurring task in the reminders app, it stores it as a due date 1 day sooner than the reminder date.  Thus, if I set a weekly task for Saturday, it shows up in my date view as being on Friday.  When I look at the details of the task, it shows that the due date was Friday and the reminder date was Saturday.  I know I set it up correctly (for being on Saturdays only) but it's being stored wrong.
    This is happening only for the recurring tasks.  My single-use tasks are working fine.  Has this happened to anyone else?

    Caetano,
    Thanks for the response! The only code it looks like I am getting is Exception Code 30 "Plan process according to schedule.
    When you said that Forward Scheduling did not look like it had been executed which is what I thought. It got me thinking some more.
    I ended up going to Tcode OPPR and checking Start in Past and there the system is set up to be "Control at plant leve"
    Then I went to Tcode OMIT and the Start in Past check box was not marked.
    So I would say we don't have Forward Scheduling set up at my location.
    I am going to work on getting that changed and then rerun MRP to see if our release dates get brought in.
    Thanks again for your help.
    Ken

  • How to create an instance of a protected class outside the enclosing packag

    Hi all,
    I have a piece of code like this:
    package test;
    public class A {
    protected class B { }
    How to create an instance of B outside the package test ? Could you please give me an example ?
    Thanks
    Ha Chau

    Thank WirajR for your reply, but in your solution,
    you have to create an instance of B inside class A
    and pass it outside. I would like to know whetherwe
    can create an instance of class B outside thepackage
    test. That means I want the instance creation
    expression of B appears outside the package test.Can
    we do that?
    If you want to use a class this way then it shouldn't
    be marked protected. I can't see why you don't
    just declare it public if that's what it is.
    Wouldn't be much point to haveing a protected
    modifier if it had no effect, would there?I think there is use for it if you use an interface to filter out the parts you want to give public access to, and keep the part you want to keep protected, protected

  • How to use External Routing in Human Task

    Hi,
    Could you please help me knowing how to create External Routing in Human Task in SOA Composite.
    Thanks

    When defining the external routing class in the .task, you can define the name value pairs which you want to pass to the program. Here you can pass dynamic values to the class as well by reading the appropiate node from the payload. In your class the name, value would be available in the "Map propertyBag" parameters in Rajiv's example link.
    Document says:
    Map of properties — When an assignment service is specified, a list of properties can also be specified to correlate callbacks with backend services that determine the task assignees.Or if you are too lazy to map many parameters and values, you can always read the whole Task task and then use getDocument and some xml reading to determine the values. This Task is the whole document.
    API:
    http://docs.oracle.com/cd/E17904_01/apirefs.1111/e10660/oracle/bpel/services/workflow/task/model/TaskType.html#getDocument__Document says:
    Task document — The task document that is executed by the workflow. The task document contains the payload and other task information like current state, and so on.Also you need to make sure that you are maintaining the state of the assignment class, doc says:
    The assignment service class cannot be stateful because every time workflow services need to call the assignment service, it creates a new instance.Thus if you are doing multiple serial assignments one after the another and if your server restarts in between, then the approval would start at the first assignee again. Suppose in Rajiv's doc link e.g., if the task is assigned to 'wfaulk' and the server restarts then the task would be assigned back to 'jstein'. In order to prevent this you need to modify the java code and each time the variable changes it's value you need to place it in a dehydration store. Also on each action over the process you need to reinitialize the variable from that dehydration store.
    -Bikash

  • Problem with Recurring Tasks

    Hi people,
    After I upgraded my curve 8900 to 5.0 anything (tried two so far) .461 & .411 I noticed that my tasks from Outlook that are recurring when  I mark them completed the next occurance has a strange reminder time.
    i.e.
    I have a recurring task Morning Vitamins set to be reminded daily at 8:00 AM. When I complete the task in version 4 the next task was created no problems. However, with version 5 when I complete the task, the next task has a reminder time of 1:00 AM sometimes 2:00 AM. I can't figure out the rhyme or reason of this.
    I have tried several battery pulls no change still same wierd reminder time.
    Has anyone else noticed this? Anyone have any ideas to fix this?

    Hello Robin, and thanks for the answer.
    The QA team is testing with a special account created to this purpose. We the development team are viewing these tasks wuth that account without a problem, that's the odd thing. We've checked the IE version, the security configuration of IE and everything matches. The problem began when we changed from VC to WebDynpro.
    Regards

  • How increase number of concurent schedule running task?

    Hi
    Does anyone know, how increase number of concurrent running schedule task?
    I was created ten instances of report (as user administrator). They were run every hour on the same time, but only 5 instances have status running on the same time. When one is finish, the next one is going to run.
    I don't know where can I increase value concurrent running task.
    I use BO XI R2 SP4 on AIX 5.3 TL7
    Best Regards,
    Krzysztof

    With Webi, Webi Job server does "administrative" tasks of scheduling webi reports, they are actualy run by Webi report server.
    So be carefull in increasing this value without increasing number of webi report servers !!
    There should be XIR2 sizing guide in articles section of this site - review it.

  • Recurring Tasks - Workflow & Views

    Hi
    I am really struggling with the following requirement:
    We need to set up a list of recurring tasks which occur monthly, daily and weekly. An email alert needs to be sent to the person responsible for completing the task at the begining of each month, day or week and when the start date of the task has been reached.
    An email alert also need to be sent to a manager if the task is not completed within a specific time frame.
    I have attempted to use a calendar with a list of events and the built in recurrence. This has been extremely frustrating. After creating the list and setting up the recurrence - I noticed the difference between series and occurrences and the views that
    only display occurences. So now we have a situation where thousands of tasks have been created and we cannot group the tasks by end date or user. I also cannot apply my workflow rules. I was using the 'Start Date' in my workflow however recurring events only
    use one start date. I am unsure if the workflow will work and originally checked to apply manually and on creation, I need to apply workflow to thousands of tasks.
    I would like to use workflow to automate the creation of tasks and I would prefer that a new task is only created at a specified time. Is anyone aware of a better solution? Is it possible to set up recurring tasks successfully?
    Appreciate your assistance
    Tony

    Hi,
    According to your description, I have found this blog can help you a little, Looping Timer workflow used to complete processing as a background task at a specific time each day. For more information, you can refer to:
    http://blog-sharepoint.blogspot.com/2010/01/how-to-configure-workflow-to-start-at.html
    Best Regards
    David Hu

  • Recurring task to start on a certain day. Delay Problems

    Hi,
    Is there a way you can insert lag time but ensure that the next task will only start on the next available day of either a Monday or a Friday. currently
    i am having to manually change the dates of a recurring task if i am delayed in the processes running up to the task. so if the task previous was finishing on a Sunday, the task next would start that next day on a Monday. Though if the task was delayed a day
    it would obviously run into Monday meaning the next task could not start till the Friday. The task in question needs to be done Monday and Friday so adding lags just pushes the dates out and i have to manually remedy this which is time consuming. 
    Any help is greatly appreciated

    Leep18,
    There are a couple of ways to insure a task starts on a particular day, and you're right, using lag time is not a good way.
    The first way is to set up a custom calendar that has only Monday and Friday as work days. Then set up a one minute duration task that is the successor of the driving task and assign the custom calendar to the one minute task. Use the one minute task as
    the predecessor to the task that can only start on Monday or Friday. The one minute task will control the timing (i.e. Monday or Friday start) but once the one minute task is "triggered" it will set the start of the next task, which once started,
    will continue through completion. The disadvantage of this approach is that the successor task will start at 8:01 AM instead of the default 8:00 AM.
    The second way to do this is with VBA. The following macro will insure a successor task, marked by setting the Flag1 field,  always starts on the next Monday or Friday at the beginning of a work day.
    'This macro ensures all selected tasks can only be started on a Monday or Friday
    '   at the default project start time
    '   Tasks are selected by setting Flag1. Note: this procedure does leave a
    '   start-no-earlier-than constraint on all shifted tasks
    'written by John 12/2/134 7:00 pm
    Dim t As Task
    Dim EndTime As String, StartTime As String, ProjCal As String
    Dim WkD As Integer, DOffest As Integer
    Dim OFlag As Boolean
    Dim DayDate As Date
    Sub NextDayB()
    'cycle through each task
    ProjCal = ActiveProject.Calendar
    For Each t In ActiveProject.Tasks
        'skip over blank lines
        If Not t Is Nothing Then
            'only look at Start time of non-summary tasks
            If t.Summary = False And t.Flag1 = True Then
                'find default start and end times for this task
                OFlag = False
                WkD = Weekday(t.Start)
                'determine the default start time for this project
                StartTime = ActiveProject.BaseCalendars(ProjCal).WeekDays(WkD).Shift1.Start
                'determine required shift in start time based on current start
                If WkD = 4 Or WkD = 7 Then DOffset = 2: OFlag = True
                If WkD = 5 Or WkD = 11 Then DOffset = 1: OFlag = True
                If WkD = 3 Or (6 And (Hour(t.Start) <> Hour(StartTime))) Then DOffset = 3: OFlag = True
                If WkD = 2 And (Hour(t.Start) <> Hour(StartTime)) Then DOffset = 4: OFlag = True
                'shift the task start to the next Monday or Friday at the default start time
                If OFlag = True Then t.Start = DateValue(DateAdd("d", DOffset, t.Start)) & " " & StartTime
            End If
        End If
    Next t
    End Sub
    Hope this helps.
    John

  • How to mark a Document as completed

    Hello Experts,
    We have a one DP document in status "Document Created". The Work item status is In Process.
    This document was created in August 2012 and now we need to mark it as completed.
    The last action on 5th Nov 12 is Work Item started manually.
    Could you please let me know how to mark a document as completed which is in status "Document Created" in SAP IM?
    Let me know if you need additional inputs to analyze.
    Thanks in advance.
    Leena S.

    Hi,
    Can let us know what is the workflow template ID, Standard or Custom? 
    Provide the template ID if it is standard.
    Is there any wait step in the workflow template. which is waiting for some event?
    Is there any end condition defined for the step in the workflow template?
    Check, if any terminating events are mapped to the task-id from PFTC transaction. If exists, then try to raise the event manually from SWUE transaction, if the system is not PROD.
    If there are no terminating events then try to complete the work-item manually from SWIA transaction.
    Regards
    Pavan

  • No recurring tasks/to dos in iCal?

    I'm a recent convert to the Mac world and generally quite happy about the transition.
    I must be missing something obvious, because I can't find how to set up recurring to dos in iCal. Until I figure it out, I'm using Entourage which works fine, however, I expected to use iCal. In fact someone told me that iCal doesn't support them, but that hardly seems likely such a basic capability would be left out.
    Can anyone please "say it isn't so" and tell me how to set up recurring tasks? Thanks.

    Actually, you are doing nothing wrong. iCal does not support recurring tasks, though it does support recurring events.
    For stronger, more flexible task management, take a look at iGTD. This application synchronizes data with iCal, so that your iCal files are always up to date.
    Be wary of one thing, however, regarding the iCal 3 release: there are reported bugs with the synchronization component in it, that may affect event and tasks synchronization across your entire framework. Until these issues are resolved with the entirely new synchronization engine which was written for this release, you may have difficulty interchanging data with iCal.

Maybe you are looking for

  • I can't save facebook photos to camera roll since upgrading to ios7

    can't save facebook photos to camera roll since upgrading to ios7, please help?  I press on photo, and menu comes up to save photo, but it is not in my camera roll.  What's up?

  • Wine direct3d ?

    does anyone know how if its a bug of my system or wine? i installed wine newest version (and also older versions) installed directx like 100 tutorials told me, but in games i only have directdraw or opengl (no direct3d), and the input is lagging like

  • How to distribute Sales Order without pressing end in context Area

    Hi Experts, I have a requirement in which I am planning to add a new button near to the "end" button in the context area. According to me this new button will distribute the Sales Order into R/3 (similar to end button functionality) but it will not c

  • How to see all connected SSH users?

    For lack of a better place, I'm putting this in the "installation" section... I would like to know how to see all SSH connections. I thought I could use the command "who", but that only shows me as connected (when I know there are definitely others c

  • Embeded Windows XP

    CDAQ-9188 on Embeded Windows XP Options Mark as New Bookmark Subscribe Subscribe to RSS Feed Highlight Print Email to a Friend Report to a Moderator 07-27-2012 02:39 PM Hello, I am able to connect to NI CDAQ-9188 and its modules using the NI " Measur