04-15-2009 01:10 AM
04-15-2009 03:23 AM
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);
04-16-2009 02:30 AM
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.
04-16-2009 05:20 PM
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<runas>admin</runas>
<script>
// your script which causes the error
</script>
</action>
04-20-2009 06:08 AM
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);
04-20-2009 08:21 AM
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 " ;
}
08-25-2009 07:26 AM
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.