A process has initiated with data, process display and node display expressions

A process has initiated with data, process display and node display expressions are built using one of process initiated variable. Unfortunately, one of initiated process variable data is wrong, hence modified the process variable data with Get and Set process plug-in, which is modified the process variable data, but initiated process and task displays are not modified. I was under impression, process and task display names should also change since it is depends on process variable data.

any idea why process and task display names are changing? how to modify process and task display names with respect to changed process variable?

OriginalPostID-155658

OriginalPostID-155658

  Discussion posts and replies are publicly visible

  • Hi srinivask

    In order to observe a change in the process name you could opt for either of the approaches specified below:
    1. Rerun the node which saves the value of pv (provided if the pv has a new value after being set by Get/ Set PV smart service) into pp!name
    2. Save the intended value directly into pp!name (Probably you may not want this because you are using the PV for setting name and obviously both should be in sync)

    In order to observe a change in the task display name, afaik restart of task(s) is the solution. But let's see if other practitioners comes with a best approach in this case.
  • Thanks Sikhivahans... let's see other practitioners provides another approaches...
  • @srinivasak 'I was under impression, process and task display names should also change since it is depends on process variable data' - here goes the explanation as per my experience:
    1. Process name: Process name itself is identified by a variable called pp!name, which is one of the process properties. So here you are copying the value from one variable (A pv which you have created for saving the value and thereby used for saving value into Process Name.) to Process Name (pp!name). So here you can't observe a change in Process Name if you make a change in the Process Variable which is used for copying the value to Process Name. Simply speaking, neither there is any connection between the PV which you created for saving the value into 'Process Name' and the process property 'Process Name' (which is identified by pp!name) nor there is a pass by reference kind of mechanism.
    2. Task Display Name: I couldn't make a comment at this point, but out of my experience, I have seen that once if a task has been initiated with the process variable in its Task Display Name, there won't be change in the title (the name which we see in the 'Tasks' list) after modification in the value of PV until the next instance of task is started. A possible solution could be storing the value in database and making a query in the 'Task Display Name' if you feel that Task Display Name is dynamic in nature.
  • Task display name and Process display names are not dynamic. The variable that hold Task display name is tp!name for the given task and pp!name for process. Once, the task or process started the only way to change the name is to set these variables.