CA Service Management

  • 1.  Regarding updateObject() in casdm web service

    Posted Jun 28, 2018 03:38 AM

    Hi All,

     

    I am using updateObject() method for changing workflow status. When I do status change along with comment, in activity log it is not giving end user's name as creator. Kindly help on this issue so that we will get user's name in activity log, who will change the workflow status.

     

    Regards,

    Sushma



  • 2.  Re: Regarding updateObject() in casdm web service

    Posted Jun 28, 2018 10:52 AM

    Hi Sushma,

     

    Thank you for reaching out to the Communities!

     

    The updateObject() method should include a creator string when the call is made. This creator string can be modified to give the end user's name as the creator. This creator string is a handle provided by the CA SDM API when using the findContacts() method. You should be able to find the expected user's handle using this call, and provide it as the creator string in your updateObject() method.

     

    Please let me know if this helps!

     

    Eddie



  • 3.  Re: Regarding updateObject() in casdm web service

    Posted Jun 29, 2018 06:56 AM

    Hi Hamed,

     

    I've already passed contact handle in creator in updateObject() method, but same is not reflecting. In output (or in activity log) it is showing only the logged in user, though you sent some different user handle in creator.



  • 4.  Re: Regarding updateObject() in casdm web service

    Broadcom Employee
    Posted Jun 28, 2018 12:54 PM

    Sushma, can you post the part of script that shows what arguments you pass to updateObject()? Thanks _Chi



  • 5.  Re: Regarding updateObject() in casdm web service

    Posted Jun 29, 2018 07:02 AM

    Sure Chi, here is script,

     

    <objectHandle>wf:2870749</objectHandle>
    <attrVals>
    <string>status</string>
    <string>tskstat:7106</string>
    <string>description</string>
    <string>testing1</string>
    <string>done_by</string>
    <string>cnt:44C6C01C40779B48B74A754431D7542A</string>
    <string>last_mod_by</string>
    <string>cnt:44C6C01C40779B48B74A754431D7542A</string>
    <string>audit_userid</string>
    <string>cnt:44C6C01C40779B48B74A754431D7542A</string>
    </attrVals>

     

    In above script, instead ' done_by,last_mod_by,audit_userid ', i also tried by sending only one input parameter 'creator' and its contact handle, still whoever's contact is this it is not getting listed in activity log. It is showing logged in user's details instead.



  • 6.  Re: Regarding updateObject() in casdm web service

    Posted Jun 29, 2018 10:05 AM

    updateObject definition :

     

    <element name="updateObject">
    <complexType>
    <sequence>
    <element name="sid" type="xsd:int"/>
    <element name="objectHandle" type="xsd:string"/>
    <element name="attrVals" type="impl:ArrayOfString"/>
    <element name="attributes" type="impl:ArrayOfString"/>
    </sequence>
    </complexType>
    </element>
    As you can see there is no value for the creatorHandle. You can always use "Impersonate" before making the call but even then, with updateObject, you cannot specify the description of the change status activity (Or if yes, I am not aware how).
    You should do :
    updateObject : to change the status of the task
    createActivityLog :to log why and by who the task status was updated
    WS call :
    Result : (The call was done with PAM,PAM account but appears as me since i've specified a creatorHandle)
    Notification activity that you need to create (allow it for every type of object that has workflow task. ISS,CR,CHG) :