我正在將新工作流部署到戶外4.0.e. 我有formkey =任務 「CWF:submitLeaveTask」 這裏是代碼:Alfresco:在另一個任務中顯示任務域(查看他們)
<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:持續時間。 我在共享工作流表單-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:持續時間在我的形式。 什麼是錯,我該怎麼做?
好的,我將這個方面附加到我的第二個任務中,之後我可以看到字段,但它們是可編輯的,我使用info模板查看它們,現在它正在工作。非常感謝你。 – 2013-05-01 02:11:29