Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
8 replies
Subscribers
4 subscribers
Views
2448 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Accessing data in another incomplete task
mathieud
over 7 years ago
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
0
sikhivahans
over 7 years ago
@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.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
sikhivahans
over 7 years ago
@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.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data