Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <activiti:executionListener event="end" class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener">
- <activiti:field name="script">
- <activiti:string><![CDATA[for (var i = 0; i < bpm_package.children.length; i++) {
- if (bpm_package.children[i].typeShort == "hrf:pastaLote") {
- execution.setVariable('hrf_empreendimento', bpm_package.children[i].properties["hrf:empreendimento"]);
- execution.setVariable('hrf_quadra', bpm_package.children[i].properties["hrf:quadra"]);
- execution.setVariable('hrf_lote', bpm_package.children[i].properties["hrf:lote"]);
- var description = bpm_package.children[i].properties["hrf:empreendimento"] + " > " +
- bpm_package.children[i].properties["hrf:quadra"] + " > " +
- bpm_package.children[i].properties["hrf:lote"];
- execution.setVariable("bpm_workflowDescription", description);
- }
- }]]></activiti:string>
- </activiti:field>
- </activiti:executionListener>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement