CA Service Management

 View Only
  • 1.  createWorkFlowTask WebService

    Posted Mar 15, 2020 08:34 PM
    Hi team!

    I need to insert a new workflow task on a change order, I'm used the createWorkFlowTask but when inserted the new workflow on a group task (this group task it's already started), the new task is inserted with status "WAIT" and no "PENDING".

    I tried to insert manual a new task , and it's ok, the status of the task is "Pending"

    This is the parameter on the web services.

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
    <soapenv:Header/>
    <soapenv:Body>
    <ser:createWorkFlowTask>
    <sid>1538901555</sid>
    <attrVals>
    <!--1 or more repetitions:-->
    <string>sequence</string>
    <string>80</string>
    </attrVals>
    <objectHandle>chg:401154</objectHandle>
    <creatorHandle>cnt:65451C9EE2617D4EBEC2F9E4A68A8FE4</creatorHandle>
    <selectedWorkFlow></selectedWorkFlow>
    <taskType>AUTOIMP</taskType>
    <attributes>

    </attributes>
    <createWorkFlowTaskResult></createWorkFlowTaskResult>
    <newHandle></newHandle>
    </ser:createWorkFlowTask>
    </soapenv:Body>
    </soapenv:Envelope>


    Thank you!


  • 2.  RE: createWorkFlowTask WebService

    Broadcom Employee
    Posted Mar 16, 2020 04:54 AM
    Hi Wicner,

    What is the version of SDM and patch level you are using?

    Please confirm if the test you did via webservices and manual test you added the task on the same place?

    ------------------------------
    Kind Regards,
    Brian
    ------------------------------



  • 3.  RE: createWorkFlowTask WebService

    Posted Mar 16, 2020 04:25 PM
    Edited by Robinson Morales P Mar 16, 2020 04:26 PM
    Hello Wicner.
    I think you must include these parameters:
    - 'wf_template' (references the workflow task template),
    - 'group_task' (set to 1 for tasks inside Group Tasks).

    Maybe you can try adding 'status' attribute as well (PEND).

    Also, you can add a task manually, and then run pdm_extract to WF (not remeber the schema object right now) in order to know colunms (parameters) inserted by SDM itself.

    Regards,
    Robin M.


  • 4.  RE: createWorkFlowTask WebService
    Best Answer

    Posted Mar 17, 2020 03:53 AM
    Hi.
    Tasks get started by the system, whenever the previous tasks gets completed, or the related chg gets saved.
    However inserting task into an already started parallel group of tasks, is not a good idea, and might not work at all.
    I assume, this is not handled /expected by the internal task startup logic as well as for the the logic of checking ,if  a parallel task group is completed. 
    I suggest , to avoid this kind of task adding. This could lead to an unexpected behavior.
    Adding a task into a no yet started group will work quite well( but you need to set the group_task flag , as mentioned by Robinson already. )

    Regards
    ...........Michael

    ------------------------------
    Principal Services Consultant
    HCL Enterprise Studio
    Germany
    ------------------------------