Asychronous tasks

I have a window that starts a number of asychronous tasks. One of
these tasks in particular can take a long time (1-2 minutes) to complete
depending on the current data in the workflow. If the user closes the
window before this tasks completes I get the following message:
USER ERROR: The Shutdown event was post on the task. The task is
not registered for the event and is therefore cancelled.
I have put taskDesc objects on all the asychronously started tasks and in
the task.Shutdown event of the window I, after checking to make sure
the handle isn't NIL, issue a
taskDesc.PostShutdown(SH_TP_TASKANDCHILDREN). This seemed to
clear up the problem.
However this window is called from a higher level menu in the
application. When control is returned to this higher window and the user
closes it, they same shutdown error occurs. I have tried capturing the
task handle of the called window and issuing the PostShutdown there
also, but with no luck.
What am I missing?
TIA,
Mark Nichols

I'd like to bump this issue as I'm also struggling to get the Tasks list from sharepoint into my iPhone and my Mountain Lion. Connecting to the Exchange Server is no problem, but getting Reminders.app to talk to \\sharepoin\ is something else.
Or is there a way within outlook to sync the outlook-tasklist with the sharepoint tasks? that would alleviate the problem, as I have no problem reading and writing outlook tasks with Reminders.app.
thanks

Similar Messages

  • Re: Asychronous tasks

    On 18 Sep 1997 08:29:08 GMT, MARK NICHOLS wrote:
    I have a window that starts a number of asychronous tasks. One of
    these tasks in particular can take a long time (1-2 minutes) to complete
    depending on the current data in the workflow. If the user closes the
    window before this tasks completes I get the following message:
    USER ERROR: The Shutdown event was post on the task. The task is
    not registered for the event and is therefore cancelled.
    I have put taskDesc objects on all the asychronously started tasks and in
    the task.Shutdown event of the window I, after checking to make sure
    the handle isn't NIL, issue a
    taskDesc.PostShutdown(SH_TP_TASKANDCHILDREN). This seemed to
    clear up the problem.I'll admit first off that I haven't done a whole lot of detailed work
    with asynch tasks in Forte, so I'm not going to have any answers for
    you, but I am curious about what you're describing. For one thing, I
    don't understand why the "taskDesc.PostShutdown" code that you added
    cleared up the problem. The exception you got said that the shutdown
    event had been posted on a task that wasn't registered for it; all
    you've done is post the shutdown event on that task a second time, so I
    don't understand why you wouldn't still get that exception.
    Dale

    We have a situation where the user clicks on a button to start a long
    retrieve process. During the retrieve process the task is not in an event
    loop. However, the user may wish to cancel the retrieve process at any
    point. What we did was to start the retrieve process as a new task with
    return and exception events. The main task stores the task handle for
    this new task and then displays a new window which has a cancel button.
    The main task now runs this window's event loop. If the cancel button is
    pressed the setcancel() method is called on the new task's handle.
    Besides this the event loop also waits for return & exception events from
    the new task. Once any of these happens the event loop is exited and one
    goes back to normal processing. We also modified the code of the retrieve
    process to catch the CancelException in the exception block. This allows
    it to do any clean up required before it terminates.
    Hope this helps.
    Regards,
    Sanjay Murthi
    Indus Consultancy Services
    [email protected]
    From: Keith Kroeger
    Sent: Saturday, September 27, 1997 12:04 PM
    To: Forte Newsgroup Submission
    Cc: murthis; vasasm; chandraa
    Subject: Cancelling tasks
    MCI Mail date/time: Wed Sep 24, 1997 11:58 am EST
    Source date/time: Wed, 24 Sep 1997 13:55:55 -0500
    I've tried out some of the suggested implementations for cancelling
    tasks using TaskDesc.SetCancel() and CancelException.
    This works great when you are cancelling a process that is
    executing an event loop. However, how do I cancel a task that
    is simply taking too long to complete processing a synchronous
    task which is not using an event loop?
    THank you,
    Keith

  • RE: task cancellation

    Hi,
    In addition to previous, you can create a start method from non-window
    class, which is going to be your main task, which would start your
    windows and non-windows tasks, so if you close one of the windows it will
    not affect rest of tasks. So far it works for me very well.
    Hope this helps.
    Dariusz Rakowicz
    programmer analyst
    Indus Consultancy Services
    [email protected]
    From: owner-forte-users
    Sent: Thursday, September 18, 1997 3:32 PM
    To: 'forte-users'
    Subject: RE: task cancellation
    Hi,
    Task cancellation is a very neat way of exiting cleanly. Infact you can
    set the EnableSystemCancel of the TaskHandle class to FALSE, if you don't
    want to be cancelled in certain portions of the code. But you should make
    sure you reset it to TRUE.
    One complexity that gets added is maintaining a list of
    EventRegistration and TaskDesc objects for each of the tasks that you
    have started and registering and deregistering for the task completion
    event registrations dynamically. But it is definitely worth the effort.
    Inderjyot Singh
    Indus Consultancy Services
    201-261-3100 x232
    [email protected]
    -----Original Message-----
    From: owner-forte-users [SMTP:[email protected]]
    Sent: Thursday, September 18, 1997 11:20 AM
    To: AID9F21
    Cc: forte-users
    Subject:
    Mark,
    In the started long-running task, you can catch the CancelException and
    do
    nothing with it.
    For example,
    EXCEPTION
    when e:CancelException do
    // do nothing
    From Forte Help:Fort? raises an exception of the CancelException class primarily by
    invoking the SetCancel method of the TaskDesc class. A task within an
    application can signal another task within the same application to cancel
    itself. In a few cases the system generates the signal.
    For further discussion, see Using CancelException.
    Hope this helps,
    Dustin Breese
    BSG Alliance/IT
    Mark Nichols Wrote:
    From: "MARK NICHOLS" <[email protected]>
    Date: 18 Sep 1997 08:29:08 GMT
    Subject: Asychronous tasks
    I have a window that starts a number of asychronous tasks. One of
    these tasks in particular can take a long time (1-2 minutes) to complete
    depending on the current data in the workflow. If the user closes the
    window before this tasks completes I get the following message:
    USER ERROR: The Shutdown event was post on the task. The task is
    not registered for the event and is therefore cancelled.
    I have put taskDesc objects on all the asychronously started tasks and in
    the task.Shutdown event of the window I, after checking to make sure
    the handle isn't NIL, issue a
    taskDesc.PostShutdown(SH_TP_TASKANDCHILDREN). This seemed to
    clear up the problem.
    However this window is called from a higher level menu in the
    application. When control is returned to this higher window and the user
    closes it, they same shutdown error occurs. I have tried capturing the
    task handle of the called window and issuing the PostShutdown there
    also, but with no luck.
    What am I missing?
    TIA,
    Mark Nichols

    putabirdonit72 wrote:
    Would like to cancel my account. I can't seem to do it. Please help.
    https://support.skype.com/en/faq/FA142/can-i-delete-my-skype-account?q=Cancel+account
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • Multiple instances of firefox in task manager but FF doesn't open

    - Windows XP SP3 (up to date with all critical updates)
    - FireFox 25.0.1 (Note: Originally I had version 31 but a few days ago that stopped working)
    - Norton Security Suite (the comcast version) up to date
    - I have IE6 and Chrome 37 as backup browsers (Note: when FF stopped working, IE8 had also stopped working - page would open, only one system process, but page would never load)
    Ran the following scans:
    - SUPERAntiSpyware Free Edition
    - Malwarebytes Anti-Malware
    - Ad-Aware Antivirus
    - Spybot-S&D Start Center
    Found a few non-critical yet potential infections (nothing too crazy)
    Symptom persists as follows:
    - fresh boot of computer
    - open task manager (no instances of FF)
    - open firefox - process appears in task manager and immediately goes to 50%
    (nothing opens and nothing listed in Applications)
    - open a second instance of firefox - 2nd process appears in task manager
    (still nothing opens and neither instance appears in Applications
    (the two instances continue to run at a cumulative 50% CPU usage - one might be 15% and the other running at 35% - or both running at 25% each)
    - open a third instance of firefox
    (still nothing opens, and all three instances show in task manager processes and cumulatively run at 50% - example:15 +15 + 20 or 10 + 15 + 25)
    Troubleshooting:
    restored a drive image from May 2014
    - Note: Dec 2013 I had done a complete FRESH new install of Windows XP in prep for EOL and installed all updates, including SP3, so the image I chose from May was only 5 months old, but I chose that one because of some of the other programs I had installed that month and didn't want to go through that again
    - Note #2: I have drive image run a monthly PQI backup of my C: drive and my R: drive) I have two hard drives 300G each whereas C: drive is OS only and R: drive is all my downloads, my documents, my photos, etc)
    - after the image restored, I tried to open FF and IE8, neither app was problematic. FF auto updated from what version, I don't know, but it was on 31 when I realized the problem was BACK. Also ran some WIN critical updates, and IE8 stopped working too!
    uninstalled IE8 (rolled back to IE6 and now IE works - but obviously I can not live with IE6 - I need to update that!) uninstalled FF31 (and deleted all temp and profile account folders) and installed a brand new copy of FF25 - whereas I immediately force stopped autoupdater and deleted the update files so I could remain on FF25.
    Now FF25 will open only on the second instance of the process (the first will always go to 50% CPU, the second will open and run between 0 and 10 CPU, and only one application in Applications)
    - I have learned that I can kill the 50% process using task manager or process explorer and total CPU usage will drop down to 0% - 10%
    I can open many many tabs without any problems, and I can right click a link to open a new window and all is good, BUT if I use the desktop ICON, the quick launch ICON or the START > Programs > Icon, then the NEXT process will go to 50% and no second window will open
    I have seen dozens of forums that have reported similar memory issues, but none have been resolved.
    Can you help me? I don't want to upgrade IE6 to IE8 just yet, but I will not use it for anything but testing until I can upgrade. Note: besides being painfully slow, I have been switching to Chrome, but I have never enjoyed Chrome.... I am using FF right now to ask for help.
    Any suggestions?

    I have the "techie" answer for all of you. According to the tier 2 support at Norton Help Desk, the latest live update from Norton "utilizes Visual Studio 2012 which enables SSE2 instructions" and my processor can not handle that.
    He said they are "working on a solution" and offered to reply back on Wednesday / Thursday this week if a solution could be found...

  • Closing an open task programatically

    HI,
    I have created a custom component in order to establish connection to BPM .
    The flow is such that , the connection gets established and i need to fetch the tasks based on the workflowInstance and user ID specified.
    I am able to fetch the tasks from which i extract the task state.
    Need to close the state of an open task i.e need to update the state of the task to close. Not able to do it.
    How do i achieve this?
    This is the piece of code that is supposed to perform the functionality.
    Please have a look and provide your inputs in order to achieve the needed.
    Function Call:
    this.updateTaskOutCome(task1, "CLOSE");
    Function Defnition:
    public int updateTaskOutCome(final task,
                                     final String outcome) {
            // variable to show success or failure
            int success = 0;
            // creating reference for TaskQueryService
            TaskQueryService taskQueryService = null;
            // creating reference for WorkflowContextType for admin context
            WorkflowContextType adminContext = null;
            // creating reference for WorkflowContextType for user context
            WorkflowContextType userContext = null;
            TaskService taskService = null;
            oracle.bpel.services.workflow.task.model.Task outcomeUpdatedTask =
                null;
            CredentialType adminCredentialtype = this.createAdminCredentialType();
            CredentialOnBehalfOfRequestType onBehalfRequestType =
                queryFactory.createCredentialOnBehalfOfRequestType();
            // calling getService method og BPMConnection
            //get taskQueryService Object from BPMConnection
            //taskService = getService("taskAction");
            //creating WorkflowContext for admin
            //setting admin context to onBehalfRequestType
            try {
                taskQueryService = (TaskQueryService)getService("taskQuery");
                adminContext = taskQueryService.authenticate(adminCredentialtype);
                onBehalfRequestType.setOnBehalfOfUser("username");// admin username given
                onBehalfRequestType.setWorkflowContext(adminContext);
                //creating WorkflowContext for user
               userContext= taskQueryService.authenticateOnBehalfOf(onBehalfRequestType);
                // getting BPM Client for performing user actions
                taskService = (TaskService)getService("taskAction");
                // creating UpdateTaskOutcomeType object and setting its property
                UpdateTaskOutcomeType updateTaskOutcomeType =
                    taskActionFactory.createUpdateTaskOutcomeType();
    //            //setting outcome
                updateTaskOutcomeType.setOutcome(outcome);
                //setting task
                updateTaskOutcomeType.setTask(task);
                // setting userContext
               updateTaskOutcomeType.setWorkflowContext(userContext);
                // calling webservice operation for performing user action
                //setting success variable
                outcomeUpdatedTask =
                        taskService.updateTaskOutcome(updateTaskOutcomeType);
            } catch (StaleObjectFaultMessage e) {
                Report.trace("mysectionstring",
                             "inside staleobject fault message catch block", null);
    //        } catch (WorkflowErrorMessage e) {
    //            TaskQueryServiceFaultType faultInfo = e.getFaultInfo();
            } catch (Exception e) {
                e.printStackTrace();
            if (outcomeUpdatedTask != null) {
                success = 1;
            return success;
    Thanks in advance,
    Bharath

    Any one facing similiar issue?
    Could someone please provide some information.
    Thanks,
    Bharath

  • Report Generation task error

    I'm using report generation VI's to generate my report (standard report). If I make an application at my development PC (LV 6.0.2 Win-NT 4.0 SP6; application builder 6) and start the EXE-file, there are no problems. I transfer the software (installer) to the target PC (Win-NT 4.0 SP6; run time engine 6.0.2) and start the print subroutine in my program. When I leave the application I have still the LV-Task in the Win-NT task list. I have to start the task manager to stop it. It happens only if I use the print subroutine ( with the report generation VI's) in my program. I made a test with the same subroutine but switched to html output, the task list is emty after leaving the program. Do you have any idea?

    try re-compiling the report generation vi's (ctrl+alt+run button) then re-create your exe.

  • Problem description: My  macbook pro since this afteon has been slower, every application I open, it takes a long time to open, and shows the spinning beach ball for a while before it opens or performs some task, or responds to a click-  EtreCheck

    My computer
    Problem description:
    My  macbook pro since this afternoon has been slower, every application I open, it takes a long time to open, and shows the spinning beach ball for a while before it opens or performs some task, or responds to a click…
    EtreCheck version: 2.1.8 (121)
    Report generated 31 de março de 2015 18:29:15 BRT
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        MacBook Pro (13-inch, Early 2011) (Technical Specifications)
        MacBook Pro - model: MacBookPro8,1
        1 2.3 GHz Intel Core i5 CPU: 2-core
        16 GB RAM Upgradeable
            BANK 0/DIMM0
                8 GB DDR3 1333 MHz ok
            BANK 1/DIMM0
                8 GB DDR3 1333 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 250
    Video Information: ℹ️
        Intel HD Graphics 3000 - VRAM: 512 MB
            Color LCD 1280 x 800
    System Software: ℹ️
        OS X 10.10.2 (14C1514) - Time since boot: 0:25:47
    Disk Information: ℹ️
        Hitachi HTS545032B9A302 disk0 : (320,07 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
            Macintosh HD (disk1) / : 318.84 GB (47.94 GB free) - 51 errors
                Core Storage: disk0s2 319.21 GB Online
        MATSHITADVD-R   UJ-898 
    USB Information: ℹ️
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Inc. FaceTime HD Camera (Built-in)
        Apple Computer, Inc. IR Receiver
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.oracle.java.Java-Updater.plist [Click for support]
        [running]    com.trusteer.rapport.rapportd.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.adobe.SwitchBoard.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [loaded]    com.oracle.java.Helper-Tool.plist [Click for support]
        [loaded]    com.oracle.java.JavaUpdateHelper.plist [Click for support]
        [running]    com.trusteer.rooks.rooksd.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [running]    com.spotify.webhelper.plist [Click for support]
    User Login Items: ℹ️
        iTunesHelper    UNKNOWN Hidden (missing value)
        AdobeResourceSynchronizer    Application Hidden (/Applications/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app)
        Stickies    Application  (/Applications/Stickies.app)
    Internet Plug-ins: ℹ️
        JavaAppletPlugin: Version: Java 8 Update 31 Check version
        FlashPlayer-10.6: Version: 17.0.0.134 - SDK 10.6 [Click for support]
        Default Browser: Version: 600 - SDK 10.10
        AdobePDFViewerNPAPI: Version: 10.1.13 [Click for support]
        AdobePDFViewer: Version: 10.1.13 [Click for support]
        Flash Player: Version: 17.0.0.134 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        SharePointBrowserPlugin: Version: 14.4.8 - SDK 10.6 [Click for support]
        Google Earth Web Plug-in: Version: 7.1 [Click for support]
        Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Click for support]
        iPhotoPhotocast: Version: 7.0 - SDK 10.8
    User internet Plug-ins: ℹ️
        npsf_cef: Version: sf 3.3.1.1 [Click for support]
        Google Earth Web Plug-in: Version: Unknown
    Safari Extensions: ℹ️
        DivX HiQ
        DivX Plus Web Player HTML5 <video>
    3rd Party Preference Panes: ℹ️
        Flash Player  [Click for support]
        Java  [Click for support]
        MacFUSE  [Click for support]
        Perian  [Click for support]
        Trusteer Endpoint Protection  [Click for support]
    Time Machine: ℹ️
        Skip System Files: NO
        Auto backup: YES
        Volumes being backed up:
            Macintosh HD: Disk size: 318.84 GB Disk used: 270.90 GB
        Destinations:
            Time Machine Backups [Local]
            Total size: 999.86 GB
            Total number of backups: 60
            Oldest backup: 2012-07-15 01:16:54 +0000
            Last backup: 2015-03-29 19:28:06 +0000
            Size of backup disk: Excellent
                Backup size 999.86 GB > (Disk size 318.84 GB X 3)
    Top Processes by CPU: ℹ️
            97%    rapportd
             3%    WindowServer
             1%    mds
             0%    fseventsd
             0%    distnoted
    Top Processes by Memory: ℹ️
        155 MB    Safari
        120 MB    Finder
        86 MB    rapportd
        86 MB    WindowServer
        69 MB    mds_stores
    Virtual Memory Information: ℹ️
        12.56 GB    Free RAM
        2.53 GB    Active RAM
        428 MB    Inactive RAM
        1.66 GB    Wired RAM
        1.04 GB    Page-ins
        0 B    Page-outs
    Diagnostics Information: ℹ️
        Mar 31, 2015, 06:00:15 PM    Self test - passed
        Mar 31, 2015, 01:13:05 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/Microsoft Error Reporting_2015-03-31-131305_[redacted].crash
        Mar 31, 2015, 01:05:42 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/Microsoft Error Reporting_2015-03-31-130542_[redacted].crash
        Mar 31, 2015, 12:24:33 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/Microsoft Error Reporting_2015-03-31-122433_[redacted].crash
        Mar 30, 2015, 05:45:38 PM    /Library/Logs/DiagnosticReports/Skype_2015-03-30-174538_[redacted].cpu_resource .diag [Click for details]
        Mar 30, 2015, 01:52:07 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/Last.fm Scrobbler_2015-03-30-135207_[redacted].crash
        Mar 29, 2015, 05:55:05 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-03-29-175505_[redacted].crash
        Mar 29, 2015, 01:06:38 PM    /Library/Logs/DiagnosticReports/VLC_2015-03-29-130638_[redacted].hang
        Mar 29, 2015, 01:02:47 PM    /Library/Logs/DiagnosticReports/VLC_2015-03-29-130247_[redacted].hang

    Open Activity Monitor and kill this process - rapportd.
    Reinstalling OS X Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Reinstalling OS X Without Erasing the Drive
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility and press the Continue button. After Disk Utility loads select the Macintosh HD entry from the the left side list.  Click on the First Aid tab, then click on the Repair Disk button. If Disk Utility reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit Disk Utility and return to the main menu.
    Reinstall OS X: Select Reinstall OS X and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Alternatively, see:
    Reinstall OS X Without Erasing the Drive
    Choose the version you have installed now:
    OS X Yosemite- Reinstall OS X
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • Mark waiting and cancelled tasks completed

    Hi All,
    is there sql somewhere that can mark certain tasks that are in waiting and canceled status to Completed?
    Thanx.
    Fred

    I would suggest using the APIs to update the status or use the manuallyComplete API instead.
    -Kevin

  • How can I display a SP 2010 out of the box workflow's task assignees via powershell?

    There are days where one of the 250+ workflows at the site has attempted to send email to someone no longer at the company.
    I would like to find a way to go through the farm and display all the list URLs that have workflows, and the mail addresses associated to the workflows.
    This way I can track down the workflows that need to be updated to remove the missing users.
    I have started a bit of script to do this. In my script, I just had a site collection - I figured that if I can get that to work, then surely wrapping another loop for the rest of the farm won't be bad. 
    However, for some reason, I am not seeing the output that I expected to show the mail addresses.
    I am hoping a different set of eyes might see what I am missing. It was my understanding that the AssociationData property was XML that contained information about the assignees for tasks, the carbon copy list, etc.
    Maybe I misunderstood something that I read?
    $outLoc = "d:\temp\wfdata.txt"
    $web = Get-SPWeb -Identity "http://myfarm/sites/it/"
    foreach ($list in $web.Lists)
     $associationColl=$list.WorkflowAssociations
     foreach ($association in $associationColl)
           $association.AssociationData | Out-File $outLoc
    $web.Dispose()
    I want to thank you for the helpful tips that so often appear on this list. They help me when I am reading over old threads to figure out what to do. I am hoping that tips on this thread will likewise be helpful.

    Hi,
    With
    SPWorkflowAssociation.AssociationData property, we can get the assignees’ information. Your script can
    be able to retrieve a XML format data which contains the user name we need:
    So the next step would be getting the user name by parsing the XML data we got.
    The two links below will show how to parse XML with PowerShell:
    http://stackoverflow.com/questions/18032147/parsing-xml-using-powershell
    http://blogs.technet.com/b/heyscriptingguy/archive/2012/03/26/use-powershell-to-parse-an-xml-file-and-sort-the-data.aspx
    With the user name, we can get the
    Email property of an user with the scripts as the link below provided:
    http://davidlozzi.com/2012/03/07/using-powershell-to-access-sharepoint-sites/  
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to use one dynamic connection managers for multiple parallel data flow tasks

    hi there:
       I have 6 databases residing on the same server. What I want to do is  call a store procedure with identical name on each database dbo schema and transport results to a centralized place. The key is to have those SPs run in parallel instead
    of in sequence as each SP may take around 10 mins to finish. 
    The simplest way is to create 6 OLE DB connection managers and create 6 DFT tasks. However, I do not want to maintain 6 OLE DB connection managers as there is a chance to have more connection  managers.
     What I did so far is to create a OLD DB connection manager and use expression to set up connectionString properties so that it will get populated by variables at run time. It is fine when running all SPs in a Foreach Loop Container. However, it takes
    around 60 mins to finish.
      When I try to run it in parallel ( basically created 6 DFTs but use only one Dynamic Connection Manager), the connection string gets confused therefore all DFT tasks failed.
       Does anyone here have some experience on this topic?
    Thanks
     hui
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

    Yes, basically, on the connectionString property of ONE OLEDB, you are using an expression to supply value and this expression is pointing to a variable. 
    In this case , you can update this variable from a table which contains many connection strings. It's good if you want to execute Store procedures in a sequential order. When in parallel mode, this will cause issues as connectionString gets overwritten. 
     I am thinking about using script task to exec sp.
     The whole idea is that I do not want to maintain a large number of Connection Managers. 
    Hope it helps
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --
    So you are not able to run parallel executions using same conn mgmr, even with dynamic connectionstring, is that correct? Yes, script task will be a way to go if you wish to execute it in parallel, you may connect to SS and query the proper conn string with
    SELECT/WHERE clause in each script > pass it to a script variable > use that script variable and execute the proc. This will require only two things to change in each script, the WHERE condition to get the conn string and the proc name (you may even
    get the proc names the same way you get conn string) and everything else will be same. Let us know how that goes. 
    Hope no two or more procs doing insert/update/delete on the same tables.

  • How do I move an app (like tasks) from the app list to my today screen?

    I have an 8330 Curve and I love the way the active theme works for me me. I can see my msgs and calendar at a glance. Also on this screen are call log and applications. I would like to replace applications with tasks. Is this possible and how do I do it? If there is another theme out there that would do the same I would be willing to try that also.
    Thanks

    That is theme controlled and not editable by the user.
    Another theme might have the functionality.
    Here are a number of good theme developers you might check with.
    http://www.blackberryforums.com/media-center/15313​5-attn-theme-developers-included-faq.html
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How can I create a new Care Plan with one or more care tasks

    Hello,
    I'm working on a Dutch website in the HealthVault Environment. I got difficulties in creating and updating a careplan with care tasks. Most likely it's due to lack of knowledge...
    Following code works fine:
    CarePlan plan = new CarePlan();
    plan.Name = "test";
    this.PersonInfo.SelectedRecord.NewItem(plan);
    It creates a plan called [test]. But I don't know how to create a plan with one or more tasks in it: the tasks property is read only.
    https://msdn.microsoft.com/en-us/library/microsoft.health.itemtypes.careplan.tasks.aspx
    Half a year ago I was able to add an example of a careplan, which was a feature of the dev tools, but for some reason that's not possible anymore.
    https://developer.healthvault.com/DataTypes/Overview?TypeId=415c95e0-0533-4d9c-ac73-91dc5031186c
    So my question is, how can I add a new care plan with a task like the example from the HealthVault dev tools:
    <tasks>
    <task>
    <name>
    <text>Run 100 miles</text>
    </name>
    <description>Run 100 miles in 6 months</description>
    <start-date>
    <structured>
    <date>
    <y>2013</y>
    <m>12</m>
    <d>1</d>
    </date>
    </structured>
    </start-date>
    <end-date>
    <structured>
    <date>
    <y>2014</y>
    <m>6</m>
    <d>1</d>
    </date>
    </structured>
    </end-date>
    <target-completion-date>
    <structured>
    <date>
    <y>2014</y>
    <m>12</m>
    <d>31</d>
    </date>
    </structured>
    </target-completion-date>
    <sequence-number>279128532</sequence-number>
    <recurrence>
    <interval>
    <text>Once</text>
    </interval>
    <times-in-interval>10</times-in-interval>
    </recurrence>
    <reference-id>p01vil21ckg7k2346y1g60337mmi20sg564l321l8pmpqev39n302572sewu76lh9019s3993e02924</reference-id>
    </task>
    </tasks>
    Any help is welcome 
    Wilfred

    Hi Wilfred,
    Have you tried this?
    CarePlan plan = new CarePlan();
    plan.Name = "test";
    plan.Tasks.Add(someTask) 
    If you have a task list already, you would need to enumerate through it and add one by one...
    foreach (var task in existingList)
        plan.Tasks.Add(task)

  • View google tasks in ical

    I didn't see any other users asking this question!  Only 11 "related" questions.  None applied.
    So here goes:
    I can see my google calendar events just fine in iCal.
    How can I see my google tasks in iCal??? 
    thanks for insight!

    Whether the solution is the problem? since it is very inconvenient.
    I like I bring to contact children's birthdays, anniversaries, date of death, and so on.
    And I want to make it all displayed in the calendar.
    Then the meaning of the item in the contacts if it can not be controlled?
    It turns out a half-measure, and those with no no value, not to speak about the practicality!

  • Can I view a list of tasks that my computer has been up to?

    The facts:
    My computer: 15" i7 MacBook Pro, 500 GB HD, 4 GB RAM, OSX 10.6.6
    Problem: I recently had an external hard drive "fail" overnight (WD Elements 2 TB, USB 2.0.) The hard drive had approximately 1.5 TB of my files on it. It was formatted to Mac OSX Extended (Journaled) and named "Deuce."
    Symptom: The drive now mounts but is labeled "Untitled." It shows being formatted as Mac OSX Extended (Journaled), but has no files on it whatsoever. Sometimes the HD will not mount at all.
    Possible culprit #1: My girlfriend was up late and noticed the power flicker on and off (causing the microwave clock to be reset.) The hard drive and laptop were plugged into a brand new surge suppressor/power strip.
    Possible culprit #2: This hard drive has been known to be unreliable (failure.)
    Possible culprit #3: Somehow there is a virus on my computer (have Sophos installed, updated, no viruses show on scan.)
    Possible culprit #4: My girlfriend did something to the drive (format, delete all files, unplug w/o ejecting, etc.) and will never tell me if she did.
    Possible culprit #5: Gremlins?
    Troubleshooting:
    #1: Have run Disk Utility, which reports the disk is fine.
    #2: Have run quick scans from 3 third-party data recovery softwares (VirtualLabs Data Recovery, Data Rescue 3, R-Studio.) None report problems with the disk, nor do they show any files.
    #3: Am currently running a deep scan with Data Rescue 3 in Demo mode - $99 to buy full version - (60 hours left.)
    #4: Have switched out USB cable. No change.
    #5: Have plugged HD directly into wall socket. No change.
    #6: Have taken HD to Best Buy Geek Squad, who could not get HD to mount on their computer. Confidence in their technical abilities: 30%.
    My questions:
    #1: Is there a way to find out what tasks have happened on my computer within the last week? Does the computer even keep track of this (like Adobe Photoshop will keep a history, you can hit CMD+Z to undo, etc.?) I want to know if I can eliminate user error from the list of suspects.
    #2: Is there another software for Mac that will run a thorough diagnostic of this HD to see what is wrong with it? WD only offers Data Lifeguard for PC (which I will never own again but I suppose I could locate one to help troubleshoot the HD.)
    #3: Has anyone experienced this issue with an external HD before?
    #4: Is there any information I can give that would help the wise men and women of the forum to help me solve this and get my photos back (some are backed up, but not all.)
    Lessons learned:
    #1: Replacement drive was more solid Seagate drive.
    #2: Remaning drives are password protected.
    #3: Backing up to DVD all current files on my current 2 External HD, as well as Time Machine backups for internal HD (which has just given me this error on Tech Tool Deluxe:
    Drive Hardware
    Failed
    Checks the physical attributes of the device containing the selected volume.
    You should consider backing up the data from the device associated with the selected volume. The device may continue working without issue for a period of time, but may physically fail without warning.
    If anyone has any helpful advice, please...I would really appreciate it.

    Welcome to Apple Discussions!
    Maybe a long shot, but WD is not known for the quality of some of their enclosures, although I do like the drives themselves. It may be worth mounting this drive in a different enclosure, something like one of OWC's FireWire enclosures with the highly reliable Oxford chip sets. I wouldn't be inclined to trust a WD enclosure, especially if it already seemed to be acting in a flakey manner.
    Here's an example of what I mean:
    http://eshop.macsales.com/item/Other%20World%20Computing/MEP924FW8E2O/
    I have 3 of these and I really like them.
    From what I understand, if the drive spins up, it is often possible to recover data from it. To be absolutely certain to destroy the data, you just about have to take a hammer to the disk. Hopefully, there will be a way to get your data back.
    Good luck!

  • How to get flagged messages in to tasks or alternatively view another users to do list.

    If someone could just help me out I would be extremely appreciative.
    2 of us work in one mail box together called admin. when one of us is away we like to use the flags to create follow ups for each other on certain email items.
    Firstly, I can only see my main accounts to do list
    Secondly, when I flag a contact / message / anything in fact, in any mailbox it only appears in their respective to do lists and not in their tasks. Thus I cannot see what I have flagged for them at a glance as I can not find a way to view other peoples
    to do list. i.e. neither of us can see any of the flags in the shared mailbox we use (admin) unless we log in under a different profile, which is troublesome as it takes way to long to switch back and forth.
    I presently use colour categories to delegate who is currently in charge of answering certain emails and use custom flags to note what we are waiting for in particular to a certain email and then mark a tick when it has been dealt with. Simple system but
    not currently working in full due to the follow up flags not appearing in tasks.
    This also affects my task synching on my mobile where once again it only shows what is in tasks... i.e stuff I have physically typed in outlook rather than flagged content; mails, contacts etc.
    Any ideas how to get the follow up flags appearing in tasks or an ability to see other peoples to do lists... the first is more preferable but I will take what I can.
    Kindest Regards
    Woody

    Just add the 'admin' mailbox as additional account in Outlook, as opposed to additional mailbox (i.e. don't add it from Accounts Settings -> More settings -> Advanced, but from File -> Add account instead).
    It will then show flagged items and tasks from all accounts in the 'To-do' list.

Maybe you are looking for