IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

Help Needed-Task Comments and Attachments in Software AG 8.0

  • 1.  Help Needed-Task Comments and Attachments in Software AG 8.0

    Posted Fri April 16, 2010 11:10 AM

    Hi All

              I am working Software AG 8.0.In a Task when the Scope is set for Task Comments and attachments as "Process Instance", as I want the Documents attached in the Previous Tasks in the Process to be available for the entire Process, I am unable to view the attachments and when the file attachment link is clicked -- routed to the Properties page of the file.
    

    But when the Scope is set as " Task Instance" I am able to view the attachments.

    Can anyone let me know …how to set the properties of the attachment…when scope is given as “process Instance”

    Thanks in advance


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods


  • 2.  RE: Help Needed-Task Comments and Attachments in Software AG 8.0

    Posted Mon August 23, 2010 02:13 PM

    I have the very same problem and search for a solution.

    For the moment I couldn’t find any.

    Regards,
    Mathieu


    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine


  • 3.  RE: Help Needed-Task Comments and Attachments in Software AG 8.0

    Posted Mon August 30, 2010 03:51 PM

    Hi,

    I found a way to get the attachments common to all task in a process (and even to access the attachments from outside a task).
    I did not consider the “comments” part, only the files.

    This is a turn around since I did not manage to set properly the tasks with the properties supplied by webMethods.

    Here is the steps I followed :

    • Open Overview in eclipse
    • Delete the import of “/portlet/wm_comments_editor___commentseditor”
    • Drag and drop the item “Data/Attachments/Portal Container Attachments Provider” instead of the deleted portlet
    • Open the source (java) and type the following code in the initialize method (it sets the containerID to the first taskID) :
    
    <taskname> = this.get<taskname>();
    String taskID = <taskname>.getTaskID();
    
    portalContainerAttachmentsProvider = this.getPortalContainerAttachmentsProvider();
    portalContainerAttachmentsProvider.setContainerID(taskID);
    • Open the source of the View (taskDetails) and type the following code in the completeTask method (it sets the variable attachmentID with the taskID) :
    
    get<taskname>().getTaskData().setAttachmentID(get<taskname>().getTaskID());
    • And then for all other instances you have to :

    Delete the comments portlet
    Add a Portal Container Attachments provider
    set the “containerID” with the “attachmentID” from the first task.

    You can do those steps in any portlet you want to access the files (did not test in a web application).

    PS : The code isn’t optimized but it’s a beginning.
    It is important to set the containerID with a taskID (random value won’t work).

    Regards,
    Mathieu


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods


  • 4.  RE: Help Needed-Task Comments and Attachments in Software AG 8.0

    Posted Wed September 01, 2010 07:24 AM

    Thank you so much…will try this one…


    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine