studio.extensions.nuxeo-routing-defaultdata/templates/NRD-PR-TasksInfoworkflowCanceled
NRD-AC-PR-LockDocument
false
initiatorComment
expr:NodeVariables["comment"]
expr:workflowInitiator
expr:Document.isLocked()?"voidChain":"Document.Lock"
false
NRD-AC-PR-UnlockDocument
false
logInAudit
false
expr:Context["workflowInitiator"]
Consultation time excedeed
Review workflow
Some consultation tasks were aborted by the system as they received no feedback message.
This[0]
tasksInfo
expr:NodeVariables["tasks"]
numberNA
expr:NodeVariables["tasks"].getNumberEndedWithStatus("NA")
numberRejected
expr:NodeVariables["tasks"].getNumberEndedWithStatus("reject")
numberApproved
expr:NodeVariables["tasks"].getNumberEndedWithStatus("approve")
numberOfTasks
expr:NodeVariables["numberOfTasks"]
template:NRD-PR-TasksInfo
output.ftl
text/xml
ftl
review_result_file
expr:This.get(0)
review_result
expr:This.get(0).getString()
isParallelWF
expr:Event.context.getProperty("wfName").equals("wf.parallelDocumentReview.ParallelDocumentReview")?true:false
expr:isParallelWF?"Document.Unlock":"voidChain"
false
if((NodeVariables["comment"] != "") AND (NodeVariables["comment"] != null)){
WorkflowVariables["initiatorComment"]= NodeVariables["comment"];}
expr:NodeVariables["button"] =="reject"?"chain.document.refused":"chain.document.validated"
Review workflow
expr:@{nodeLastActor} @{NodeVariables["button"] =="reject"?"chain.document.refused":"chain.document.validated"} the document with the following comment: @{NodeVariables["comment"]}
if (NodeVariables["button"] == "validate") {
WorkflowVariables["index"] = WorkflowVariables["index"] + 1;
}
else if (NodeVariables["button"] == "reject") {
WorkflowVariables["index"] = WorkflowVariables["index"] - 1;
}
else if (NodeVariables["button"] == "submit") {
WorkflowVariables["index"] = 0;
}
expr:Env["mail.from"]
The document was approved by every participant.
expr:@{Env["nuxeo.notification.eMailSubjectPrefix"]} Document approved
expr:Fn.getEmail(workflowInitiator)
false
true
view_documents
if((NodeVariables["comment"] != "") AND (NodeVariables["comment"] != null)){
NodeVariables["comment"]= null;}
logInAudit
false
notifyInitiatorEndOfWorkflow
false
false
expr:WorkflowVariables["validationOrReview"] == "validation"?"validateDocument":"voidChain"
false
Review completed successfully
Review workflow
All the participants of the review have approved the document.
approve
minor
Automatic checkin after validation
falseon_missing_columns
studio_vocabulary_WorkflowType
data/vocabularies/WorkflowType.csvvocab-WorkflowType-cachevocab-WorkflowType-cache-without-references6060ReadWriteAudioFileNotePictureVideo#{!currentDocument.locked and currentDocument.currentLifeCycleState != 'approved' and !currentDocument.trashed}document.isImmutable()ReadWriteAudioFileNotePictureVideo#{currentDocument.currentLifeCycleState != 'approved' and !currentDocument.trashed}document.isImmutable()