Task.getAttachment

Hi,
I get this error when I try to use task.getAttachment
ORABPEL-09733Task service closed.Trying to use the task service after it is closed.Contact oracle support.     at oracle.tip.pc.services.hw.task.repos.TaskService.checkStatus(TaskService.java:539)     at oracle.tip.pc.services.hw.task.repos.TaskService.getAttachments(TaskService.java:255)     at oracle.tip.pc.services.hw.worklist.WorklistTask.getAttachmentCount(WorklistTask.java:547)     at tasklist.jspService(_tasklist.java:124)     [SRC:/tasklist.jsp:99]
I am using oracle.tip.pc.services.hw.worklist.WorklistTask
Can someone help?
Thanks

Thanks for getting back.
Below is the code I am using. GetTaskId and and getTitle and most of the proporties are fine but anything to do with attachment generate the same error.
Thanks.
WorklistService wlSvc = WorklistService.getWorklistService();
String user = "jstein";
String password = "welcome";
IWorklistContext ctx = wlSvc.authenticateUser(user, password);
// 3. set filters for retrieving ?My? tasks with ?Assigned? status
// sorted by task title is ascending order
Map filterMap = new HashMap();
filterMap.put(IWorklistService.FILTER_TYPE_TASK_FILTER,
IWorklistService.TASK_FILTER_MY);
filterMap.put(IWorklistService.FILTER_TYPE_STATUS_FILTER,
IWorklistService.STATUS_FILTER_ASSIGNED);
String keywords = "";
java.util.List tasks = wlSvc.getWorklistTasks(ctx,
keywords,
filterMap,
IWorklistService.SORT_FIELD_TASK_TITLE,
IWorklistService.SORT_ORDER_ASCENDING);
if (tasks != null)
for (int i=0; i < tasks.size(); i++)
oracle.tip.pc.services.hw.worklist.WorklistTask task = ( oracle.tip.pc.services.hw.worklist.WorklistTask ) tasks.get(i);
String taskId = task.getTaskId();
String title = task.getTitle();
List attach = task.getAttachment();

Similar Messages

  • Bug(?) : task.getAttachment().getTaskId() returns instanceId

    Hi, Since BPM 11g released, I have been doing tests with this new suite, mainly about Workflow Service API.
    http://download.oracle.com/docs/cd/E15523_01/apirefs.1111/e10660/index.html?overview-summary.html
    We can use this API to control processes.
    When I try to manuplate process attachments and comments, I found this bug(?).
    I get a task instance using the task query service and call:
    task.getAttachment().getTaskId()
    which actually returns the instance id of the BPM process.
    And I don't know how to get the process instance with this id.

    Hi, Mike.
    In the case I described, task.getAttachment().getTaskId() returns a String like "50016",
    which is same as the return of task.getProcessInfo().getInstanceId().
    However, task.getSystemAttributes().getTaskId() returns a String like "69c5a3af-5995-4ad0-b9ea-d32617c6cb50", which can be used in ITaskQueryService.getTaskDetailsById(IWorkflowContext ctx, java.lang.String taskId) to get a reference.
    In my use case, I want to record attachment information in storage so that I can download an attachment with a specific record.
    The key to achieve this is to record the taskId of the attachment.

  • Read an Attachment attached within a process instance

    Hi
    I am using BPM 11.1.1.6, can someone tell me how do I read and parse an attachment attached within a process instance. Thank you.
    Regards
    Venkat

    Thank Sudipto for the link.
    Experts,
    I used the API as suggested in the first link and managed to iterate through the attachments attached in a process instance but when i am trying to read the attachments using the getInputStream() its returning null, all the other properties of the taskattachment returns correct information. Is this a known bug?? The sample code snippet is as below:
    List attach= task.getAttachment();
    int i=0;
    for (Object obj :attach){
    i=i+1;
    AttachmentType taskAttachment = (AttachmentType)obj;
    System.out.println("Task Attachment " + i + " " + taskAttachment.getName());
    System.out.println(taskAttachment.getMimeType());
    System.out.println(taskAttachment.getSize());
    InputStream inpStream= taskAttachment.getInputStream();
    if (inpStream == null){
    System.out.println("Stream is empty");
    }

  • Workflow API: adding and accessing file Attachments to a Human Task

    Hi there,
    I am using the Workflow Services Java API (11.1.1) for SOA Suite to access and manipulate human tasks. I would like to be able to access and add file attachments to existing human tasks. I am using the methods provided in the AttachmentType interface.
    When adding an attachment, the problem I am running into is that an attachment does created and associated with the task, however it is empty and has no content. I have attempted both setting the input stream of the attachment, as well as the content string and in each case have had no success.
    I have successfully added and accessed an attachment using the worklist application, however when trying to access the content of this attachment through code I receive an object with mostly null/0 values throughout, apart from the attachment name.
    As the API's are not overly rich in documentation I may well be using them incorrectly. I would really appreciate any help/suggestions/alternatives in dealing with BPEL task attachments.
    Thanks
    The code I am using resembles:
    List attachments = taskWithAttachments.getAttachment();
    for(Object o : attachments){
    AttachmentType a = (AttachmentType) o;
    String content = a.getContent(); +// NULL+
    InputStream str = a.getInputStream(); +// NULL+
    String name = a.getName(); +// Has the attachment name+
    String mime = a.getMimeType(); +// Has the mime type+
    long size = a.getSize(); +// 0+
    Edited by: 855489 on May 2, 2011 4:23 PM
    Edited by: 855489 on May 2, 2011 8:48 PM

    I am also facing the same issue, using 11.1.1.6, anyone managed to solve this?
    Regards
    Venkat

  • Problem with user task

    Hello all,
    we're working with Oracle BPEL Process Manager 10.1.2 (JBoss 3.2.6) on Windows XP (jdk 1.4.2_03).
    I've successfully run many examples provided with this distribution (e.g LoanFlowPlus demo).
    However when we try to build a BPEL process with user tasks defined, we are able to launch task, but when we complete such tasks nothing happens, and onTaskResult method is never called.
    This is the code we use to complete a task (Task are completed from web pages):
    String _taskId = request.getParameter("TaskId");
    IWorklistService worklist = (IWorklistService)          locator.lookupService(IWorklistService.SERVICENAME);
    ITask task = worklist.lookupTask(_taskId);
    // getResponse returns a String
    _task.setConclusion(getResponse());
    // getAttachment returns a XML Document                         
    _task.setAttachment(getAttachment());
    worklist.completeTask(task);
    After these sentences are performed such task is not returned when _worklist.listTasksByAssignee("[email protected]") is performed, but onTaskResult is never called. No error messages are shown.
    Any idea?
    Thanks.
    Javi

    I've found a possible cause for this weird problem.
    It only happens when completeTask is called and somebody has the flow view page on the BPEL Console open.
    If nobody is browsing through the BPELConsole web environment task are completed successfully...
    ¿?

  • 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!

Maybe you are looking for