01-29-2008 10:57 AM
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);
01-30-2008 03:13 AM
01-30-2008 03:15 AM
01-30-2008 03:32 AM
hope this link could help you,
http://forums.alfresco.com/viewtopic.php?t=10441&sid=73ade78bb00c26e0a460f6e929648fd0
FSB
01-30-2008 03:50 AM
01-30-2008 04:00 AM
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 helps
FSB
01-31-2008 12:48 AM
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);
01-31-2008 03:32 AM
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 rule
after the third step you should see the task in the 'My task to do' list in the admin user.
hope it helps and works
FSB
01-31-2008 05:19 AM
02-08-2008 10:42 AM
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);
Thanks
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.