10-21-2008 04:24 AM
MODEL:
<model name="owf:MoveData" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm"/>
<import uri="www.alfresco.org/model/workflow/1.0" prefix="wf" />
<import uri="www.alfresco.org/model/content/1.0" prefix="cm" />
</imports>
<namespaces> <namespace uri="oawf" prefix="owf"/> </namespaces>
<types>
<type name="owf:startMove">
<parent>bpm:startTask</parent>
<properties>
<property name="owf:whereTo">
<title>Destination</title>
<type>d:text</type>
</property>
</properties>
</type>
</types>
</model>
<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="owf:moveFiles">
<swimlane name="initiator"/>
<start-state name="start">
<task name="owf:startMove" swimlane="initiator"/>
<transition name="" to="end">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<runas>admin</runas>
<script>
var dest = companyhome.childByNamePath("Dest");
document.move(dest);
</script>
</action>
</transition>
</start-state>
<end-state name="end"/>
</process-definition>
var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "jbpm$owf:moveFiles";
workflow.execute(document);
org.alfresco.scripts.ScriptException: Failed to execute script 'workspace://SpacesStore/a8a9950c-939c-11dd-9e2e-5be0a253008d': Failed to execute script 'workspace://SpacesStore/a8a9950c-939c-11dd-9e2e-5be0a253008d': Wrapped org.springframework.orm.hibernate3.HibernateSystemException: null index column for collection: org.jbpm.graph.def.ProcessDefinition.definitions; nested exception is org.hibernate.HibernateException: null index column for collection: org.jbpm.graph.def.ProcessDefinition.definitions (AlfrescoScript#3)
What am I doing wrong? Thanks
10-23-2008 06:41 AM
11-21-2008 08:47 AM
<script>
<variable name="companyhome" access="read" />
<expression>
var dest = companyhome.childByNamePath("Reports");
var file = dest.createFile("itWorks.html");
</expression>
</script>
11-22-2008 08:55 AM
12-02-2008 04:37 AM
<script>
//comment
do.something();
</script>
//comment do.something();
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.