My webMethods Server 10.15 | My webMethods Server Webhelp | Administering My webMethods Server | System Administrator Functions | Managing the User Interface | Managing Shell Rules | Creating Shell Rules
 
Creating Shell Rules
To create a new shell rule, use the following procedure.
*To create a new shell rule
1. As system administrator: Administration > User Interface > Manage Shell Rules > Create New Rule.
2. In the Name field, type a name for the rule.
Example: folder-thumbnails view (for image files).
3. (Optional) In the Description field, type a description for the new rule.
4. Unless you want to disable the rule during creation, leave Is Enabled selected.
5. To add a condition for individual users, click Current User(s) and do the following:
a. In the Keywords field, type a keyword representing the users you want to search for, and click Search.
b. Move one or more users to the Selected box and click Apply.
6. To add a condition based on group or role membership, click Group / Role Membership and do the following:
a. Under Search For, choose the Groups or Roles option.
b. In the Keywords field, type a keyword representing the groups or roles you want to search for, and click Search.
c. Move one or more groups or roles to the Selected box and click Apply.
7. To add a condition based on user attributes, click User Attributes, in the Pick User Attribute list, choose a user attribute, and click Apply.
For more information about the user attributes in the list, see User Information.
8. To add a condition based on global session attributes, click Global Session and do the following:
a. In the Global Session Attribute Name field, type the name of the global session attribute.
b. (Optional) In the Variable Value field, type a value for the global session attribute.
c. Click Apply.
9. To add a condition based on the request header, click Request and do the following:
a. Choose the expression, and click Submit.
b. In the Condition field, complete the expression.
For example, assume that you want to match any HTTP GET request. The wizard moves #{request.method} into the Condition field and you type the remainder:
#{request.method} == "GET"
10. To add a condition that matches the current resource or a parent of the current resource, click Parent Resource and then do the following:
a. To find children of a resource, click the name of the resource.
b. To select a resource, click the option button to the left of the resource.
c. Click Apply.
11. To add a condition that matches the current resource type, click Current Resource Type, choose the resource type and then do the following:.
a. To find children of a resource, click the name of the resource.
b. To select a resource, click the option button to the left of the resource.
c. Click Apply.
12. To add a condition for a resource property and a value associated with it, click Resource Properties, and do the following:
a. In the Property Name field, type the property name.
b. In the Property Value field, type the property value.
c. Click Apply.
For example, if you want to match files that are PDFs, the property name is mimeType and the property value is pdf.
13. In the Result list, choose the target shell.
The renderer you select will be applied to all server objects that meet the evaluation criteria you define in the following steps. For example, the thumbnails renderer is useful for displaying thumbnail views for images that are published to the server.
14. Click Create Rule.