我正在将新的工作流程部署到 alfresco 4.0.e。我有一个 formkey="cwf:submitLeaveTask" 的任务,这里是代码:
<type name="cwf:submitLeaveTask">
<parent>bpm:startTask</parent>
<properties>
<property name="cwf:leaveDescription">
<type>d:text</type>
</property>
<property name="cwf:duration">
<type>d:int</type>
<mandatory>true</mandatory>
</property>
<property name="cwf:startDate">
<type>d:date</type>
<mandatory>true</mandatory>
</property>
<property name="cwf:leaveType">
<type>d:text</type>
<mandatory>true</mandatory>
<constraints>
<constraint name="cwf:leaveType" type="LIST">
<parameter name="allowedValues">
<list>
<value>paid leave</value>
<value>sick leave</value>
</list>
</parameter>
</constraint>
</constraints>
</property>
</properties>
</type>
此任务使用 formkey:"cwf:submitSubstitutinUSer" 连接到另一个任务
<type name="cwf:submitSubstitutingUser">
<parent>bpm:activitiOutcomeTask</parent>
<properties>
<property name="cwf:substitutingDecisionForLeaveOutcome">
<type>d:text</type>
<default>Reject</default>
<constraints>
<constraint name="cwf:substitutingDecisionForLeaveOutcomeOptions"
type="LIST">
<parameter name="allowedValues">
<list>
<value>Approve</value>
<value>Reject</value>
</list>
</parameter>
</constraint>
</constraints>
</property>
</properties>
<overrides>
<property name="bpm:packageItemActionGroup">
<default>edit_package_item_actions</default>
</property>
<property name="bpm:outcomePropertyName">
<default>{custom.workflow.model}submitSubstitutingUserDecisionForLeaveOutcome
</default>
</property>
</overrides>
</type>
我需要在第二个任务中显示 cwf:startDate 和 cwf:duration 。我在 share-workflow-form-config.xml 中有这段代码
<config evaluator="task-type" condition="cwf:submitSubstitutingUser">
<forms>
<form>
<field-visibility>
<show id="taskOwner" />
<show id="cwf:startDate" />
<show id="cwf:duration" />
<show id="cwf:substitutingDecisionForLeaveOutcome" />
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.task.info" />
<set id="info" appearance="" template="/org/alfresco/components/form/3-column-set.ftl" />
<set id="response" appearance="title" />
<field id="taskOwner" set="info"></field>
<field id="cwf:startDate" set="info"></field>
<field id="cwf:duration" set="info"></field>
<field id="cwf:substitutingDecisionForLeaveOutcome" label-id="workflow.field.outcome"
set="response">
<control
template="/org/alfresco/components/form/controls/workflow/activiti-transitions.ftl" />
</field>
</appearance>
</form>
</forms>
</config>
但是我在我的表单中看不到 cwf:startDate 和 cwf:duration 。出了什么问题,我应该怎么做?