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 workflow = actions.create("start-workflow"); workflow.parameters.workflowName = "jbpm$wf:review"; workflow.parameters["bpm:workflowDescription"] = "The attached documents have been uploaded . Please review within 3 days."; workflow.parameters["bpm:assignee"] = "admin"; var futureDate = new Date(); futureDate.setDate(futureDate.getDate() + 3); workflow.parameters["bpm:workflowDueDate"] = futureDate; workflow.execute(document);
hope this link could help you,http://forums.alfresco.com/viewtopic.php?t=10441&sid=73ade78bb00c26e0a460f6e929648fd0FSB
Hi,instead of "All Item" condition, try the condition which means, adding new content (right now i dont have alfresco, you should wait till tomorrow for saying the exact condition name) but you can find it in the condition list.it should work, becuase i did the same and it's working.hope this one helpsFSB
var workflow = actions.create("start-workflow"); workflow.parameters.workflowName = "jbpm$wf:adhoc"; workflow.parameters["bpm:workflowDescription"] = "The attached document has been uploaded to Alfresco. Please review within 3 days."; workflow.parameters["bpm:assignee"] = "admin"; var futureDate = new Date(); futureDate.setDate(futureDate.getDate() + 3); workflow.parameters["bpm:workflowDueDate"] = futureDate; workflow.execute(document);
Hi,follow these steps in order:1. create a script like these and add it to the DataDictionary>Scripts space var workflow = actions.create("start-workflow"); workflow.parameters.workflowName = "jbpm$wf:adhoc"; workflow.parameters["bpm:workflowDescription"] = "The attached document has been uploaded to Alfresco. Please review within 3 days."; workflow.parameters["bpm:assignee"] = "admin"; var futureDate = new Date(); futureDate.setDate(futureDate.getDate() + 3); workflow.parameters["bpm:workflowDueDate"] = futureDate; workflow.execute(document);2. create a rule in the space that you want to affect in that space 2.1 in Conditions sptep select 'All Items' and click on set Values and Add 2.2 in Action step select 'Execute a Script' and click on set Values and Add 2.3 in the next step select the scipt that you have just added in script step 2.4 in the Details step select the type as 'Inbound'3. add a content in the space that you have just created a ruleafter the third step you should see the task in the 'My task to do' list in the admin user.hope it helps and worksFSB
var workflow = actions.create("start-workflow"); workflow.parameters.workflowName = "jbpm$wf:adhoc"; workflow.parameters["bpm:workflowDescription"] = "The attached document has been uploaded to Alfresco. Please review within 3 days."; workflow.parameters["bpm:assignee"] = "admin"; var futureDate = new Date(); futureDate.setDate(futureDate.getDate() + 3); workflow.parameters["bpm:workflowDueDate"] = futureDate; workflow.execute(document);