{
  "version": 0,
  "execution": {
    "transactionMode": "SAFE_AUTO_COMMIT"
  },
  "entry": "b1",
  "blocks": {
    "b1": {
      "type": "setVar",
      "inputs": {
        "name": "selectedItems",
        "value": {
          "type": "prListProjectItems",
          "inputs": {
            "onlySelected": true,
            "includeSubbins": "BIN_AND_SUBBINS"
          }
        }
      },
      "next": "b2"
    },
    "b2": {
      "type": "setVar",
      "inputs": {
        "name": "selectedItem",
        "value": {
          "type": "listGet",
          "inputs": {
            "list": {
              "var": "selectedItems"
            },
            "where": "FIRST"
          }
        }
      },
      "next": "b3"
    },
    "b3": {
      "type": "setVar",
      "inputs": {
        "name": "visibleCount",
        "value": 0
      },
      "next": "b4"
    },
    "b4": {
      "type": "prForEachProjectItemVisibleMetadataColumn",
      "inputs": {
        "item": {
          "var": "selectedItem"
        },
        "columnNameVar": "columnName",
        "displayValueVar": "displayValue"
      },
      "body": [
        {
          "type": "esConsoleLog",
          "inputs": {
            "message": {
              "type": "textJoin",
              "inputs": {
                "items": [
                  "ENTRY|kind=visible-column|name=",
                  {
                    "type": "jsonStringify",
                    "inputs": {
                      "value": {
                        "var": "columnName"
                      },
                      "pretty": false
                    }
                  },
                  "|value=",
                  {
                    "type": "jsonStringify",
                    "inputs": {
                      "value": {
                        "var": "displayValue"
                      },
                      "pretty": false
                    }
                  }
                ]
              }
            }
          }
        },
        {
          "type": "setVar",
          "inputs": {
            "name": "visibleCount",
            "value": {
              "type": "mathArithmetic",
              "inputs": {
                "op": "ADD",
                "a": {
                  "var": "visibleCount"
                },
                "b": 1
              }
            }
          }
        }
      ],
      "next": "b5"
    },
    "b5": {
      "type": "setVar",
      "inputs": {
        "name": "projectPropertyCount",
        "value": 0
      },
      "next": "b6"
    },
    "b6": {
      "type": "prForEachProjectItemProjectMetadataProperty",
      "inputs": {
        "item": {
          "var": "selectedItem"
        },
        "pathVar": "projectPath",
        "propertyIdVar": "propertyId",
        "valueVar": "projectValue"
      },
      "body": [
        {
          "type": "esConsoleLog",
          "inputs": {
            "message": {
              "type": "textJoin",
              "inputs": {
                "items": [
                  "ENTRY|kind=project-property|path=",
                  {
                    "type": "jsonStringify",
                    "inputs": {
                      "value": {
                        "var": "projectPath"
                      },
                      "pretty": false
                    }
                  },
                  "|propertyId=",
                  {
                    "type": "jsonStringify",
                    "inputs": {
                      "value": {
                        "var": "propertyId"
                      },
                      "pretty": false
                    }
                  },
                  "|value=",
                  {
                    "type": "jsonStringify",
                    "inputs": {
                      "value": {
                        "var": "projectValue"
                      },
                      "pretty": false
                    }
                  }
                ]
              }
            }
          }
        },
        {
          "type": "setVar",
          "inputs": {
            "name": "projectPropertyCount",
            "value": {
              "type": "mathArithmetic",
              "inputs": {
                "op": "ADD",
                "a": {
                  "var": "projectPropertyCount"
                },
                "b": 1
              }
            }
          }
        }
      ],
      "next": "b7"
    },
    "b7": {
      "type": "setVar",
      "inputs": {
        "name": "xmpPropertyCount",
        "value": 0
      },
      "next": "b8"
    },
    "b8": {
      "type": "prForEachProjectItemXmpProperty",
      "inputs": {
        "item": {
          "var": "selectedItem"
        },
        "namespaceVar": "xmpNamespace",
        "pathVar": "xmpPath",
        "valueVar": "xmpValue"
      },
      "body": [
        {
          "type": "esConsoleLog",
          "inputs": {
            "message": {
              "type": "textJoin",
              "inputs": {
                "items": [
                  "ENTRY|kind=xmp-property|namespace=",
                  {
                    "type": "jsonStringify",
                    "inputs": {
                      "value": {
                        "var": "xmpNamespace"
                      },
                      "pretty": false
                    }
                  },
                  "|path=",
                  {
                    "type": "jsonStringify",
                    "inputs": {
                      "value": {
                        "var": "xmpPath"
                      },
                      "pretty": false
                    }
                  },
                  "|value=",
                  {
                    "type": "jsonStringify",
                    "inputs": {
                      "value": {
                        "var": "xmpValue"
                      },
                      "pretty": false
                    }
                  }
                ]
              }
            }
          }
        },
        {
          "type": "setVar",
          "inputs": {
            "name": "xmpPropertyCount",
            "value": {
              "type": "mathArithmetic",
              "inputs": {
                "op": "ADD",
                "a": {
                  "var": "xmpPropertyCount"
                },
                "b": 1
              }
            }
          }
        }
      ],
      "next": "b9"
    },
    "b9": {
      "type": "esConsoleLog",
      "inputs": {
        "message": {
          "type": "textJoin",
          "inputs": {
            "items": [
              "SUMMARY|visibleColumns=",
              {
                "var": "visibleCount"
              },
              "|projectProperties=",
              {
                "var": "projectPropertyCount"
              },
              "|xmpProperties=",
              {
                "var": "xmpPropertyCount"
              },
              "|item=\"",
              {
                "var": "selectedItem"
              },
              "\""
            ]
          }
        }
      },
      "next": null
    }
  }
}
