Avatar

Level 6

Hi, I do not have ACC on this laptop unfortunately so I cannot develop it with you. But no, that's not the code at all I'm describing: you can inspire yourself about this code I've just wrote in notepad:

 

var wkf2restart = NLWS.xtkQueryDef.create(

<queryDef schema={vars.targetSchema} operation="select">

   <select>

       <node expr="@internalName"/>

   </select>

</queryDef>

);

 

var workflows = wkf2restart.ExecuteQuery()

 

for each(var workflow in workflows.*) {

  logInfo("restarting :" + workflow.@internalName);

  xtk.workflow.restart(workflow.@internalName);

}