Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
72:custom_reports_accessing_data_reading_oldercontent [2019/02/27 19:54]
ext-bkkr
72:custom_reports_accessing_data_reading_oldercontent [2019/10/04 07:04] (current)
Christian Geupel
Line 39: Line 39:
 var ArtifactName = "Excel Metric Example";​ var ArtifactName = "Excel Metric Example";​
 var ArtifactInstanceName = "​Excel_Metric_example.xlsx";​ var ArtifactInstanceName = "​Excel_Metric_example.xlsx";​
-var process = +var process = stages.getCurrentProcess(); 
- pkit.getCurrentProject().getEntities("​containsProcess@SYSTEM"​); +var artifacts = process.getEntities("​containsArtifact@SYSTEM"​);​ 
-if (process.length !=0 ) { +for each (artifact in artifacts) {
- var artifacts = process[0].getEntities("​containsArtifact@SYSTEM"​);​ +
- for each (artifact in artifacts) {+
  if (artifact.getProperty("​DisplayName"​) == ArtifactName) {  if (artifact.getProperty("​DisplayName"​) == ArtifactName) {
  var artifacts_instances =  var artifacts_instances =
Line 55: Line 53:
  var filestream = artifact_revision.getProperty("​FileStream"​);​  var filestream = artifact_revision.getProperty("​FileStream"​);​
  ​dumpValues(artifact_revision,​ filestream);​  ​dumpValues(artifact_revision,​ filestream);​
-     } 
     }     }
    }    }
Line 61: Line 58:
  }  }
 } }
- 
 </​code>​ </​code>​