Personnalisation avancée > Business Logic Customization > Customizing Workflow Administration > Customizing Change Tables Designed for Workflow > Solution > Define a Workflow Action for the New Component
  
Define a Workflow Action for the New Component
Define an action as a component to be added in Workflow layouts. An action needs to be defined for the new table component to be shown in workflow task pages. Note that the resource bundle entries for all custom actions should be defined in the com.ptc.windchill.enterprise.object.CustomRB file. For more information on how to create a new resource bundle file, see Adding New Resource Bundle Entries.
<objecttype name="object" class=""
resourceBundle="com.ptc.windchill.enterprise.object.CustomRB">
<action name="customTask_ResultingDataTable">
<description>Resulting data table for a new workflow
task</description>
<component name="workflowTask.pbo"
urlParams="pboCompId=changeTask.resultingItemsTable&amp;
useTypeBased=true&amp;changeableTableId=customTask.resultingItems&amp;
changeableLabel= com.ptc.windchill.enterprise.object.CustomRB.
CUSTOM_TASK_RESULTING_ITEMS_TABLE&amp;enableAddToWorkspace=true"/>
<includeFilter name="configurableTypeBaseFilter"/>
</action>
Tag Elements
Description
action
name - name for the new action for workflow pages.
component
name - Should be "workflowTask.pbo" which denotes it is a subject(pbo) component on workflow pages.
urlParams
Parameters to build the new table component.
pboCompId – the id of the component of subject(pbo). The below table refers to the pboCompId for resulting objects and summary table.
Component
pboCompId
Resulting Object
“changeTask.resultingItemsTable”
Change Summary
changeNotice.changeSummary
useTypeBased is true as both resulting object and summary table component are defined as TypeBased. For more information see, Configuring Workflow Task Detail Pages.
changeableTableId – The table id for the new component. Example for table id is ”customTask.resultingItems”.
changeableLabel= the resource bundle entry of title for the new table component. You need to add an entry in CustomRB
enableAddToWorkspace = flag that needs to be passed for enabling add to workspace action on change tables.
includeFilter
name - configurableTypeBaseFilter; You need to add entries to type based action filter properties if the component needs to be filtered by type. For more information see, Configuring Workflow Task Detail Pages