Designer 10.7 | webMethods BPM Task Development Help | Working with Task Portlets | Adding a New Portlet to a Task | Modifying the Task Start Definition
 
Modifying the Task Start Definition
If you add a new task start portlet in a task that contains an existing task start portlet, the new portlet will automatically replace the existing one. However, you must modify the task start definition if you want to revert to a previous task start portlet contained in the task.
*To modify the task start definition
1. In the Solutions view, open the task in the task editor by double-clicking the task name.
2. On the Overview page, make a note of the task type ID.
3. In the Navigator view, navigate to the taskStart.xml file as follows:
[taskApplication] > WebContent > WEB-INF > tasks > [taskTypeID] > taskStart.xml
4. Double-click the taskStart.xml file to open it in the editor and click the Source tab.
5. This XML file defines the task start portlet usage in the following elements:
<projectName___portletName name="Display Name">
...
</projectName___portletName>
where:
projectName = the name of the task application project (an alias may be included)
portletName = the name of the portlet used as the task start portlet
Display Name = the name that will be displayed in the design-time and run-time interfaces.
For example:
<myportletapplication___mynewtaskstart name="Task Start"
alias="taskTypeID.task.app.start.portlet"> <layout name="titlebar"
value="false"/> <layout name="border" value="false"/>
</myportletapplication___mynewtaskstart>
6. To redefine the task start portlet, do the following:
*Substitute the new portlet name for the existing name.
*Add or modify the portlet alias if desired.
*Modify the display name for the portlet if desired.
7. Save your modifications.
You can view the results on the My webMethods Server associated with the task application project. For more information, see Running a Task Portlet. Otherwise, to view the results in the My webMethods Server run time, you must re-publish the task application. For more information, see Publishing a Task.
Related Topics