Accessing data in another incomplete task

Let's say you have 2 tasks running in parallel and you wanted each person to see each other's work while they are completing it. It seems like the only way to achieve this is to put a "Save" button inside that task that writes to a CDT and returns the user to the task. Any simpler ways you can think of that doesn't involve putting a bunch of loop back in the process?

OriginalPostID-237517

  Discussion posts and replies are publicly visible

Parents
  • @mathieud I do have a fancy idea in my mind and it might be worth giving it a try:

    1. Create a process model which takes a process id and set of values (for those variables that needs to in the target process)as input parameters. Make use of the Set PV/Get PV smart services and update the desired PVs (with the values that you get from parameterised variables) in the target process which will be identified using the process id that we get as input.
    2. In the User Input Task, which you are working on, under the editable SAIL components, trigger the process created in the above step with the current process id and the values of those variables that you want to update. The output of this step is that whatever the user fills in will be updated in the process variables of the current process.
    3. Create a report on the process(from which you want to read the Task details). Use a!queryProcessAnalytics() in the other Task(parallel task as per your question) and query the required data and you should get the latest data all the time as the process created in Step - 1 keeps the PVs updated. (Note: Even if you are in the same process context for either task, don't pass PVs as arguments to Form of parallel Task. Instead, depend on a!queryProcessAnalytics to get the latest information always.)

    The above might be of use just in case if you want to strictly avoid Database and 'Save' approach(which you have described in your post) as well.
Reply
  • @mathieud I do have a fancy idea in my mind and it might be worth giving it a try:

    1. Create a process model which takes a process id and set of values (for those variables that needs to in the target process)as input parameters. Make use of the Set PV/Get PV smart services and update the desired PVs (with the values that you get from parameterised variables) in the target process which will be identified using the process id that we get as input.
    2. In the User Input Task, which you are working on, under the editable SAIL components, trigger the process created in the above step with the current process id and the values of those variables that you want to update. The output of this step is that whatever the user fills in will be updated in the process variables of the current process.
    3. Create a report on the process(from which you want to read the Task details). Use a!queryProcessAnalytics() in the other Task(parallel task as per your question) and query the required data and you should get the latest data all the time as the process created in Step - 1 keeps the PVs updated. (Note: Even if you are in the same process context for either task, don't pass PVs as arguments to Form of parallel Task. Instead, depend on a!queryProcessAnalytics to get the latest information always.)

    The above might be of use just in case if you want to strictly avoid Database and 'Save' approach(which you have described in your post) as well.
Children
No Data