Hi, take a look at following XML code. This task can either be approved or rejected by the user:
<ItemType name="uwl.task.webflow.decision.TS90100029.HR_System"
connector="WebFlowConnector"
defaultView="DefaultView"
defaultAction="viewDetail"
executionMode="default">
<ItemTypeCriteria systemId="HR_System"
externalType="TS90100029"
connector="WebFlowConnector"/>
</ItemType>
Following is the code for defaultView. I don't understand how the Approve and Reject buttons show up in this view? And where are the actions that are linked to these buttons defined?
<View name="DefaultView"
selectionMode="SINGLESELECT"
width="98%"
supportedItemTypes="uwl.task"
columnOrder="statusIcon, subject, creatorId, createdDate, detailIcon"
sortby="priority:descend, dueDate:ascend, createdDate:descend"
tableDesign="STANDARD"
visibleRowCount="10"
headerVisible="yes"
queryRange="undefined"
tableNavigationFooterVisible="yes"
tableNavigationType="CUSTOMNAV"
actionRef=""
refresh="300"
dueDateSevere="86400000"
dueDateWarning="259200000"
emphasizedItems="new"
displayOnlyDefinedAttributes="yes"
dynamicCreationAllowed="yes"
actionPosition="top"
referenceBundle="tasks">
<DisplayAttributes>
<DisplayAttribute name="priority"
type="user"
width="10"
sortable="yes"
format="default"
referenceBundle="priority"
hAlign="LEFT"
vAlign="BASELINE"
maxTextWidth="0"
headerVisible="yes">
<Menu>
<MenuItem name="Low" actionRef="priorityLow" referenceBundle="menu_priority_low"/>
<MenuItem name="Normal" actionRef="priorityNormal" referenceBundle="menu_priority_normal"/>
<MenuItem name="High" actionRef="priorityHigh" referenceBundle="menu_priority_high"/>
<MenuItem name="VeryHigh" actionRef="priorityVeryHigh" referenceBundle="menu_priority_v_high"/>
</Menu>
</DisplayAttribute>
</DisplayAttributes>
<Actions>
<Action reference="refresh"/>
<Action reference="defaultGlobalWizard"/>
<Action reference="addToNavigation"/>
<Action reference="removeFromNavigation"/>
<Action reference="personalize"/>
<Action reference="launchSubstitutionManager"/>
</Actions>
</View>