CA Service Management

 View Only
  • 1.  Pass field from WF1 to WF2

    Posted 23 days ago
    Need help with spl code requirement below in SDM 17.4
     
    There should be a field "next task assignee" in detail_wf that should be visible only for WF1 and when WF1 is approved, the value of "next task assignee" should be populated to "Assignee" field of WF2.


  • 2.  RE: Pass field from WF1 to WF2

    Posted 23 days ago

    Hi @Sandip Kheni

    Generally, you could following the steps:
    .mod file
    You must have create a .mod(trigger) file that check when field "next task assignee" is filled/update on WF with the value and status aprroved.

    .spl file
    The spel must have syn_fetch function for get the "next task assignee" on WF1 and then use update_object on wf2 

    You could check spel documentation on community for further information:
    SPEL Documentation



    ------------------------------
    Regards,
    Felipe Vandrilho

    Linkedin: https://www.linkedin.com/in/vandrilho/
    ------------------------------



  • 3.  RE: Pass field from WF1 to WF2

    Posted 21 days ago

    Hello,

    Thank you for suggestion.

    The thing is i have heard that in CA SDM 17.4 we do not need .mod file. Is that correct?
    If not. Can you please help with .mod file and .spl file contents and how to compile it ot just paste these files and restart sdm will work?




  • 4.  RE: Pass field from WF1 to WF2

    Broadcom Employee
    Posted 21 days ago

    Hi Sandip,

    There is no other way to add triggers, you will need to create your own custom .mod and .spl code which needs to be dropped in NX_ROOT\site\mods\majic\, they do not need to be compiled - they are plain text files that are read at SDM startup. The .mod file will update the schema to add the trigger and the .spl file would be to execute the trigger and achieve the behavior you are looking for. There are a few files OTB in the above mentioned folder that are used by SDM and you can see use them as an example, for example `force_unique_userid.mod` and `force_unique_userid.spl` show you how we force uniqueness of the  `userid` field when the `userid` or `delete_flag` fields in the `cnt` object are updated.

    I hope this helps.

    Sebastian




  • 5.  RE: Pass field from WF1 to WF2

    Posted 21 days ago

    Hello Sabestian,

    Yes i get it that i have to create mod and spl files.
    I am very new to creating spl codes and mod file commands.
    online KBs are also very generic.

    If you have gotten the idea of solution can you please provide me sample mod and spl code contents for this scenario of passing assignee from current WF to next WF only for 2 WFs.?