Comment as a separate workflow?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2014 11:39 PM
I have a js code that assigns a task whenever a content is uploaded in the folder.
The problem is, if there is a comment in the document/content, that too will be assigned as a separate task. How do I remove these tasks on comment?
I've tried setting rule tasks will only be assigned if the document type is 'Microsoft Word' or 'Adobe PDF Document'. But no tasks is sent at all under this setting.
Thank you in advance!
var workflow = actions.create("start-workflow");workflow.parameters.workflowName = "jbpm$wf:reviewpooled";workflow.parameters["bpm:workflowDescription"] = "Proses semakan dokumen : "+document.properties.name;workflow.parameters["bpm:groupAssignee"] = "GROUP_URUSETIA SEKRETARIAT";workflow.parameters["bpm:approveDestination"] = "Sites/ar-rahnutest/documentLibrary/KELULUSAN";workflow.parameters["bpm:rejectDestination"] = "Sites/ar-rahnutest/documentLibrary/RUJUKAN LAIN-LAIN";var futureDate = new Date(); futureDate.setDate(futureDate.getDate() + 3); workflow.parameters["bpm:workflowDueDate"] = futureDate;workflow.parameters["bpm:workflowPriority"]="2";workflow.parameters["bpm:mailSubject"]="Peringatan : Sila lakukan semakan pada dokumen "+document.properties.name+" dalam masa SATU HARI lagi";workflow.parameters["bpm:mailText"]="Dokumen boleh didapati melalui pautan : \n127.0.0.1:8080/share/page/document-details?nodeRef="+document.nodeRef+"\n\nAlfresco"workflow.execute(document);
The problem is, if there is a comment in the document/content, that too will be assigned as a separate task. How do I remove these tasks on comment?
I've tried setting rule tasks will only be assigned if the document type is 'Microsoft Word' or 'Adobe PDF Document'. But no tasks is sent at all under this setting.
Thank you in advance!
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2014 12:41 AM
It's okay now. I just have to untick option Run Rule on subfolders.
