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.?
Original Message:
Sent: May 23, 2025 09:40 AM
From: Sebastian Nagy
Subject: Pass field from WF1 to WF2
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
Original Message:
Sent: May 23, 2025 04:01 AM
From: Sandip Kheni
Subject: Pass field from WF1 to WF2
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?
Original Message:
Sent: May 21, 2025 02:51 PM
From: Felipe V
Subject: Pass field from WF1 to WF2
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/
Original Message:
Sent: May 21, 2025 04:58 AM
From: Sandip Kheni
Subject: Pass field from WF1 to WF2
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.