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$dcwf:leaveapproval"; //This is your workflow name as defined in processdefinition.xml workflow.parameters["bpm:workflowDescription"] = "Approve my leave"; workflow.parameters["dc:empId"] = "1445"; //set workflow property values workflow.parameters["dc:empName"] = "Srikant"; workflow.execute(document);
Please correct the errors below then click OK. * A system error happened during the operation: Failed to execute script 'workspace://SpacesStore/fe078d96-27e7-11de-b51d-2bf81e7cd3ea': Access Denied. You do not have the appropriate permissions to perform this operation.
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript"> <runas>admin</runas> <script> // your script which causes the error </script> </action>
var workflow = actions.create("start-workflow"); workflow.parameters.workflowName = "jbpm$wf:adhoc"; workflow.parameters["bpm:workflowDescription"] = "A new content has been added in Draft."; workflow.parameters["bpm:assignee"] = people.getPerson("someone"); workflow.execute(document);
var backupFolder = space.childByNamePath("Backup"); if (backupFolder == null && space.hasPermission("CreateChildren")) { // create the folder for the first time backupFolder = space.createFolder("Backup"); } var logFile = backupFolder.childByNamePath("backuplog1.txt"); if (logFile == null) { logFile = backupFolder.createFile("backuplog1.txt"); } if (logFile != null) { logFile.content += "starting logging " ; }