<serviceTask id="alfrescoScripttask1" name="fornisce elenco aziende" activiti:class="org.springframework.extensions.webscripts.DeclarativeWebScript">
<extensionElements>
?????
</extensionElements>
</serviceTask>
<sequenceFlow id="flow1" name="" sourceRef="startevent1" targetRef="usertask1">
<extensionElements>
<activiti:executionListener event="start" class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener">
<activiti:field name="script">
<activiti:string>
//imposti una query del tipo Tag
var luceneTagQuery = "PATH:"/cm:categoryRoot/cm:generalclassifiable/cm:Languages/cm:English/member\"";
//esegui la query all'interno del repository
var results = search.luceneSearch(luceneTagQuery);
//cicli i risultati
for(var i=0;i<results.length;i++){
var node = results;
//qui fai tutto quello che ti serve sui risultati della ricerca
node.properties["cm:title"] = "myNewTitle";
node.save()
}
</activiti:string>
</activiti:field>
</activiti:executionListener>
</extensionElements>
</sequenceFlow>
Archive content from product discussions in Italian.
This group is now closed and content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.