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.
<start-state name="start"> <task name="wf:startWorkflow" swimlane="Initiator" /> <transition to="Peer Review" name="to Peer Review"> <script> <expression> <!– extract the username from the value selected from the peer dropdown format = "jsmith - John Smith" we need the "jsmith" –> var tempPeer = wf_peer; var pos = tempPeer.indexOf("-"); tempPeer = tempPeer.substring(0,(pos-1)); PeerReviewer = tempPeer; var currentTime = new Date(); var totTime = (currentTime.getHours() + ":" + currentTime.getMinutes() + ":" + currentTime.getSeconds()); System.out.println("Capture Peer ID " + totTime + " ######## Ended ######### " + PeerReviewer); </expression> <variable name="wf_peer" access="read" /> <variable name="PeerReviewer" access="write" /> </script> </transition> <event type="task-assign"> <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript"> <script> taskInstance.description = "Workflow Started"; var currentTime = new Date(); var totTime = (currentTime.getHours() + ":" + currentTime.getMinutes() + ":" + currentTime.getSeconds()); java.lang.System.out.println("Workflow Started ######### " + totTime + " ##############"); </script> </action> </event> </start-state>
<type name="wf:startWorkflow"> <parent>bpm:startTask</parent> <properties> <property name="wf:peer"> <type>d:text</type> <mandatory>true</mandatory> <multiple>false</multiple> <constraints><constraint ref="wf:PeertConstraint" /></constraints> </property> </properties> <mandatory-aspects> <aspect>wf:comments</aspect> </mandatory-aspects> </type>
<config evaluator="node-type" condition="wf:startWorkflow" replace="true"> <property-sheet> <separator name="sep1a" display-label-id="general" component-generator="HeaderSeparatorGenerator" /> <show-property name="wf:peer" /> <show-property name="wf:newComments" component-generator="FullTextAreaGenerator" /> </property-sheet> </config>