09-14-2010 10:05 AM
09-14-2010 02:06 PM
<types>
<type name="scwf:submitHelloWorldTask">
<parent>bpm:startTask</parent>
<properties>
<property name="scwf:helloName">
<type>d:text</type>
<mandatory>true</mandatory>
<multiple>false</multiple>
</property>
</properties>
</type>
// create file, make it versionable
var doc = userhome.createFile("checkmeout.txt");
doc.addAspect("cm:versionable");
doc.content = "original text";
// check it out and update content on the working copy
var workingCopy = doc.checkout();
workingCopy.content = "updated text 1";
// check it in
doc = workingCopy.checkin();
// check it out again
workingCopy = doc.checkout();
workingCopy.content = "updated text 2";
// check it in again, but with a version history note and as major version increment
doc = workingCopy.checkin("a history note", true);
this would be how to create docs with text , update it ect.
09-15-2010 01:17 AM
09-15-2010 08:23 AM
09-15-2010 08:43 AM
09-21-2010 02:53 PM
<event type="node-enter">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<runas>admin</runas>
<script>
<expression>
var doc = bpm_package.createFile("checkmeout.txt");
doc.content = "original text";
</expression>
</script>
</action>
</event>
Please look at the following: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.