Managing Master Data with webMethods OneData 10.5 | Managing Master Data with webMethods OneData | Developing for webMethods OneData | OneData Hooks | Assigning Command Hooks to Objects
 
Assigning Command Hooks to Objects
You can create hook commands that link to a defined hook. These are called Command Hooks. You can then manually trigger this command from data manager by sending single or multiple records to the external procedure.
Note: Hook commands are associated with OneData roles. Hence only users with the given role will be able to execute the Hook Command.
Once created, hook commands can be edited or deleted from the Manage Hook Commands menu. Once the hook command is created, you can invoke it from the associated entity in Data Manager.
Note: If there are three or fewer command hooks, OneData displays them in the Command toolbar in Data Manager. If there are more than three hooks, OneData displays them in the Command hook field.
In a conceptual object command hooks:
*If command hooks are set at the conceptual object level, then for all levels in the Advanced Parent Child view, the same command hooks appear.
*If command hooks are not set at the conceptual object level, then the command hooks change based on the data object the current focus is on.
Note: Before you can assign a hook to an object, you must define the hook as described in Defining a Hook.
1. On the Menu toolbar, select Define > Objects and navigate to the object to which you want to assign a command hook.
2. Click the Hooks tab.
3. Select Manage Hooks Command.
4. Click Add Hook Command and enter the details as below:
Property
Description
Command Name
Unique name of 100 characters or less. Can include spaces and special characters. Must be unique within the repository.
Command Description
Command description. Maximum length of 4000 characters.
Command Display Name
The name that displays on the Data Management screen. This does not need to be unique. If this field is blank, then the command name is used.
Associated Hook
List of hooks from which you can select one to be assigned to an object.
Associate Roles
Roles to which you can associate the hook command. Only users with the associated role are able to execute the command from Data Manager.
5. Click Save.

Copyright © 2011-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.