Hi All,
Firstly, sorry if this is duplicate question. I could not able find from discussion tab.
There is a scenario where we need to store UserName who accepts the task . So, the user who accepts the task needs to be captured after completion of task. The user who accepts the task (i.e tp!owner) needs to be stored in a db field. i have tried many times but in process variable i could see 'Null' value and not storing in DB column.
PFA. code snippet. kindly help me
one of the process model.
below script task i have configured like this and storing into CDT entity checkerid field.
after success process model run status.
before task assigned to user the process variable properties showing like this status is = Assigned and CheckerId= null values.
from below screen print i have accepted task and approved. now status got updated to Approved.
the next flow is to update task owner property to CheckerId field. but noting showing here. but i could see my name is reflecting under process nodes properties
could you please help where to change code to get updated username post accpet task.
Discussion posts and replies are publicly visible
Hi,
I guess this is happening because you have configured it in a script task. tp! domain usually runs in context to the current node and because there aren't any task properties in a script task, it is not returning anything.
Instead of a script task, try adding the same in your User Input Task's output and see if this is giving you any result.
Thaks for your reply. i have changed it in User input task node for output tab but still it is not working.
Null value showing in process variables under process details
Strange. My next solution would be to create a process report.
Pre-requisite - There should only be one task in a process.
Process Report - docs.appian.com/.../Process_Reports.html
Did you remove the assignment from the other node? Not that you overwrite the value later.
Yes , i removed other script task after User input task node. even still not getting value for CheckerID.
if you see from below screen shot the task was accepted by other peer colleague. but username not storing into CDT field.
There must be some other issue. I never had any problem storing tp!owner to a process variable.
I suggest to create a tiny test model to investigate on this matter. Once it works, return to this one.
I too was facing this issue when trying to populate the createdBy and modifiedBy . Can be a problem in the latest update.
Yes, this is test process model to investigating the issue. but, still not working properly