06-13-2014 02:40 AM
<serviceTask id="alfrescoScripttask1" name="fornisce elenco aziende" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate">
<extensionElements>
<activiti:field name="script">
<activiti:string>
var tag = "sigima";
var taggedNodes = companyhome.childrenByTags(tag);
var aziende= new Array();
for(var i=0; taggedNodes.length; i++){
aziende=taggedNodes.name;
}
</activiti:string>
</activiti:field>
</extensionElements>
</serviceTask>
06-13-2014 03:46 AM
06-16-2014 03:27 AM
<aspect name="wf:aziendeScelte">
<properties>
<property name="wf:taggedNodes[0].name">
<type>d:text</type>
</property>
<property name="wf:taggedNodes[1].name">
<type>d:text</type>
</property>
</properties>
</aspect>
06-16-2014 03:33 AM
06-16-2014 05:13 AM
<aspect name="wf:aziendeScelte">
<properties>
<property name="wf:taggedNodesNames">
<type>d:text</type>
<multiple>true</multiple>
</property>
</properties>
</aspect>
06-16-2014 11:41 AM
06-16-2014 10:33 PM
06-17-2014 03:21 AM
<serviceTask id="alfrescoScripttask1" name="fornisce elenco aziende" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate">
<extensionElements>
<activiti:field name="script">
<activiti:string>
var tag = "collaborazione";
var wf_taggedNodes = companyhome.childrenByTags(tag);
execution.setVariable('wf_taggedNodes','wf_taggedNodes');
</activiti:string>
</activiti:field>
</extensionElements>
<type name="wf:sceltaAzienda">
<parent>bpm:workflowTask</parent>
<mandatory-aspects>
<aspect>wf:aziendeScelte</aspect>
<aspect>wf:ordineInfoCollaborazione</aspect>
</mandatory-aspects>
</type>
<aspect name="wf:aziendeScelte">
<properties>
<property name="wf:taggedNodesNames">
<type>d:text</type>
<multiple>true</multiple>
</property>
</properties>
</aspect>
<config evaluator="task-type" condition="wf:sceltaAzienda">
<forms>
<form>
<field-visibility>
<show id="wf:aziendeScelte" />
<show id="bpm:assignee" />
<show id="wf:tipoOrdineColl" />
<show id="wf:tempoPagamentoColl" />
<show id="packageItems" />
<show id="transitions" />
</field-visibility>
<appearance>
<set id="aziende" appearance="title" label-id="Aziende selezionate" />
<set id="assignee" appearance="title" label-id="workflow.set.assignee" />
<set id="other" appearance="title" label-id="Dettagli ordine" />
<set id="items" appearance="title" label-id="workflow.set.items" />
<set id="response" appearance="title" label-id="workflow.set.response" />
<field id="wf:aziendeScelte" label="azienda" set="aziende" >
<control template="/org/alfresco/components/form/controls/info.ftl" />
</field>
<field id="bpm:assignee" label="workflow.field.assign_to" set="assignee" />
<field id="wf:tipoOrdineColl" label="Tipo ordine" set="other" />
<field id="wf:tempoPagamentoColl" label="Tempo pagamento" set="other" />
<field id="packageItems" label="Specifica del prodotto" set="items" />
<field id="transitions" set="response" />
</appearance>
</form>
</forms>
</config>
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.