10-14-2010 12:06 PM
10-14-2010 04:21 PM
10-15-2010 12:02 AM
10-28-2010 10:58 AM
<node name="Setup">
<event type="node-enter">
<script>
<variable name="lookAgainFlag" access="read,write"/>
<expression>lookAgainFlag = 0;</expression>
<variable name="approveCount" access="read,write"/>
<expression>approveCount = 0;</expression>
</script>
</event>
<transition name="review" to="SubmitForReview" />
</node>
And I am using it like thiS. What do I do?
<node name="SubmitForReview">
<event type="node-enter">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<runas>admin</runas>
<script>
<!– NEED TO SET 'SUBJECT' VAR FOR USE BELOW –>
var subject = "";
<variable name="lookAgainFlag" access="read" />
<expression>
if (lookAgainFlag == 0)
{
subject = "(first request subject line)";
}
else
{
subject = "(resubmitted subject line)";
}</expression>
var all_members = people.getMembers(people.getGroup('GROUP_myReviewers'));
for (var i = 0; i < all_members.length; i++) {
var mail = actions.create("mail");
…etc.
10-28-2010 11:09 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.