As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
var propiedades = new Object(); propiedades["bpm:workflowDescription"] = "Solicitud de pago de factura " + document.name; propiedades["bpm:assignee"] = person; propiedades["bnvwf:departmentChief"] = people.getPerson('usuario1'); propiedades["bnvwf:mainChief"] = people.getPerson('usuario2'); propiedades["bnvwf:archiveFolder"] = companyhome.childByNamePath("Facturacion/Pendientes Pago"); propiedades["bnvwf:removeFolder"] = companyhome.childByNamePath("Facturacion/No aceptadas"); var workflowFactura = workflow.getDefinitionByName('jbpm$bnvwf:departamentalInvoicePayment'); var paquete = workflow.createPackage(); paquete.addNode(document); var workflowNodoInicial = workflowFactura.startWorkflow(paquete, propiedades); /** * Auto finalizar las tareas de inicio del workflow. **/ var tareas = workflowNodoInicial.getTasks(); for (tarea in tareas) { tareas[tarea].endTask(null); }