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.
<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);
<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>