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

how to update TaskData

  • 1.  how to update TaskData

    Posted Tue March 18, 2014 01:35 PM

    I need update one value from TaskData preserving the remaining values

    the pub.task.taskclient:searchTasks service get current TaskData

    TaskData contains 3 Custom Objects

    Obj1
    attrib1 = 111
    attrib2= 222
    Obj2
    attrib1 = 1324524511
    attrib2= 2256222356
    Obj3
    attrib1 = dfghdfgh
    attrib2= 225dfgh6222356

    I need update Obj1—attrib1, preserving the remaining objets and attributes

    …for example change value to attrib1 = 6

    The pub.task.taskclient:updateTask service works by changing the value, but does not preserve the rest.

    Any idea?

    Thanks!


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: how to update TaskData

    Posted Mon August 03, 2015 08:38 AM

    Hi Guido,

    I do not know if you figured this out already, but please find below what works for me.

    I usually write a 3 line flow service:

    1. getTask - retrieves the task and maps it to a TaskData object I have created
    2. MAP step - here you map only the field that you want => the others will remain the same
    3. updateTask - persists the task with the value that you provided

    Hope this helps,
    Vlad Turian


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services