question

Maryam H2 avatar image
0 Likes"
Maryam H2 asked Maryam H2 commented

List Pull and Push Source Identificaion

Hi,

Is it possible to determine which flows and activities are pulling from or pushing to each Item List without the need to locate and inspect the individual flows themselves?

FlexSim 23.2.0
listlist pullpush to list
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Maryam H2 commented

Open a tree view and using the Find tool in the Properties panel to seach for occurances of your list name.

· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Maryam H2 avatar image Maryam H2 commented ·
It shows me "No Results"
0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Maryam H2 commented ·

Try this script, replacing "List1" with your global list name or adding a user command that has that passed as a parameter:

//findListReferences
string listName="List1";    //param(1);
List reflist=List(listName);
Array listActivities=Array(0);
treenode processFlows=Model.find("Tools/ProcessFlow");
Object o;
Array results=Array(0);
forobjecttreeunder(processFlows){
    o=a;
    if (node("listRef+",variables(o))==reflist)
        listActivities.push(o);
}
forobjecttreeunder(processFlows){
    o=a;
    treenode listref=node("listRef+",variables(o));
    if (listref && listActivities.indexOf(listref)>0)
        results.push(o);
}
for (int n=results.length;n>0;n--)
    print(results[n]);
return results;

This script doesn't account for conditional list selection in push/pull activities or local lists.

0 Likes 0 ·
Maryam H2 avatar image Maryam H2 Jason Lightfoot ♦♦ commented ·

thanks!

0 Likes 0 ·