Copy Work Notes from Task --> RITM and Vice Versa

RAHUL Khanna1
Mega Guru

Hello Guys, 

I am looking for a  robust solution solution for the following requirement.

REQ0001
----RITM001
--------TASK0001
--------TASK0002
--------TASK0003
--------TASK0004
----RITM002
--------TASK0005
--------TASK0006
--------TASK0007
--------TASK0008

Requirement: There is a posibily that the fulfiller can changes the Variables in the variable editor, or can change the work notest or can changes both: So the requirement is propagete the chagnes through out.

 

Exe: if we enter test notes-1 in TASK-1 + Variable Chagne, I should see the same work notes in RITM, Task-2, Task, 3 , Task-4 , somewhat like this 

From TASK001: 

1) Variable_name1: <Changed Value>

2) Work Notest: test notes-1

Currrent Approach : I have created a Before BR on sc_task Table, for which I was able to capture the changes of the variable and then append the current work notes and then concatenation of two string and setting it to current work notes.

Next I am lookign for a better approach, I understand that I need to create a after busines rule ....and then set work flow false to avoid to avoid the looping also same needs to applied on the RITM table.

SO looking for a better approach, also I am not able to access the cuurent.worknots or previous worknotes in after business rule , but to my surprice ....i could see current.work_notes.changes() is resulting as true.

Can some  body try to provide a simple approach.

 

 

        

 

 

 

 

5 REPLIES 5

Narsing1
Mega Sage

Hey,

Please go through with this Article

Thanks,

Narsing