05-26-2014 04:01 PM
<serviceTask id="alfrescoScripttask1" name="fornisce elenco aziende" activiti:class="org.springframework.extensions.webscripts.DeclarativeWebScript">
<extensionElements>
?????
</extensionElements>
</serviceTask>
05-27-2014 03:50 PM
<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>
05-28-2014 05:01 AM
05-29-2014 08:11 AM
05-30-2014 10:15 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.