Hi everyone, I'm having this issue where I'm trying to index a date and time array using the index of caseID from another array with same order. Below are the process variables and the code that I wrote:
However there was no updatedDateTime value passed into my sub-process, so I'm wondering what did I do wrong with the indexing.
Any idea? Thanks a lot in advance :)
Discussion posts and replies are publicly visible
Hi
Please try this to solve your MNI
I am setting some value in caseid, casewithtask and date in first script task
In Second script task i mapped the case id and date into a CDT
In Sub Process I am using the mapped CDT for MNI
Here is the data from sub process instance
FYI, this is the sort of solution I proposed above, except now with the ability to add PVs of the type "Map", there's no need to create a custom CDT just to hold the values in question as you seem to have done here with pv!allData and the "KJA_caseswithtask" data type. We can just create a Map (multiple) PV and assemble an array of Map objects within the a!forEach loop, and the process handles it.
Edit: but i'm giving you a well-earned upvote anyway due to your apparently extensive work setting up a live example, and gathering of screenshots - well done
Thank You Mike. I create the CDT so that we are inline with proper data structure , if further needed it can be extend and easily maintained through CDT . Thank for you suggestion on using Map