07-04-2011 06:06 AM
<property name="finalkaplan:commentType">
<type>d:text</type>
<constraints>
<constraint ref="finalkaplan:commentTypeList" />
</constraints>
</property>
<constraint name="finalkaplan:commentTypeList" type="LIST">
<parameter name="allowedValues">
<list>
<value>copyEditError</value>
<value>subjectError</value>
<value>GeneralError</value>
<value>UnknownError</value>
</list>
</parameter>
</constraint>
<config evaluator="node-type" condition="finalkaplan:reviewTask"
replace="true">
<property-sheet>
<show-property name="bpm:workflowDescription"
display-label="Description" />
<show-property name="bpm:workflowDueDate"
display-label="Due Date" />
<show-property name="bpm:workflowPriority"
display-label="Priority" />
<show-property name="finalkaplan:commentType" display-label="CommentType"/>
<show-property name="bpm:comment" display-label="Comments" />
<script>
var temp=bpm_package.children[0].properties["finalkaplan:commentTypeList"];
taskInstance.setVariable("finalkaplan_commentTypeList",temp);
doc=companyhome.childByNamePath("Kaplan/Admin/comment");
var outFile=doc.createFile("comment.txt");
outFile.content=temp;
outFile.save();
</script>
07-28-2011 12:11 AM
<decision name="checkCommentType">
<transition to="copyEditError">
<condition expression="#{finalkaplan_commentType == 'copyEditError'}" />
</transition>
<transition to="subjectError">
<condition expression="#{finalkaplan_commentType == 'subjectError'}" />
</transition>
<transition to="GeneralError">
<condition expression="#{finalkaplan_commentType == 'GeneralError'}" />
</transition>
<transition to="UnknownError">
<condition expression="#{finalkaplan_commentType == 'UnknownError'}" />
</transition>
</decision>
then create separate node for each list value so when ever the list value is selected means decision node takes care of getting selected values.
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.