Version Differences for Miscellaneous Scripts

(AHPSCRIPTS-9)
(AHPSCRIPTS-9)
Line 2262:
  DependencyXml depXml = new DependencyXml();    DependencyXml depXml = new DependencyXml(); 
  depXml.importDependencies(xmlString);</pre>    depXml.importDependencies(xmlString);</pre> 
       
    + = Dashboard Not Displaying Latest BuildLife For Workflow Fix =  
    + *In older versions there was a bug where some build lives did not get entries in the BUILD_WORKFLOW_SUMMARY table that feeds the latest activity on the dashboard.  
    + **This can be run from Evaluate Script step. Enter the build life ids in the array for which ones to fix.  
    + ==== AHPSCRIPTS-136 ====  
    + <pre>import com.urbancode.anthill3.domain.buildlife.BuildLife;  
    + import com.urbancode.anthill3.domain.buildlife.BuildLifeFactory;  
    + import com.urbancode.anthill3.domain.workflow.WorkflowCase;  
    + import com.urbancode.anthill3.domain.workflow.WorkflowEndEvent;  
    + import com.urbancode.anthill3.services.event.EventService;  
       
    + long[] buildLifeIds = new long[] {  
    + 400L, 468L, 469L, 506L, 512L, 537L, 576L, 585L, 596L, 642L, 649L,  
    + 658L, 780L, 786L, 980L, 1025L, 1046L, 1051L, 1057L, 1086L, 1090L,  
    + 1094L, 1095L, 1110L, 1168L, 1174L, 1228L, 1366L, 1367L, 1378L,  
    + 1379L, 1383L, 1400L, 1426L, 1609L, 1712L, 1719L, 1749L, 1758L,  
    + 1770L, 1889L, 1917L, 1920L, 1931L, 1968L, 2033L, 2119L  
    + };  
    + for (long buildLifeId : buildLifeIds) {  
    + BuildLife buildLife = BuildLifeFactory.getInstance().restore(buildLifeId);  
    + WorkflowCase workflowCase = buildLife.getOriginatingWorkflow();  
    + WorkflowEndEvent workflowEndEvent = new WorkflowEndEvent(workflowCase);  
    + EventService.getInstance().sendEvent(workflowEndEvent);  
    + }</pre>