Action Type Action Name

Customizing Services 3-9 Figure 3–4 The Actions Column of the DELETE_DOC Service Definition

3.1.3.1 Action Type

The first segment of an action statement defines the type of action. ■ Action Type : used to identify the action type in the service resource file. ■ Component Wizard Identifier : used to identify the action type in the Component Wizard. In the service resource file, the action type is represented as a number. ■ Java Constant : used to identify the action type in Java code. The possible action types are: In the example of the first action of the DELETE_DOC service, the action is a Select cache query type 5: 5 :QdocInfo:DOC_INFO:6:csUnableToDeleteItemdDocNamecsRevisionNoLongerExists Action Type Component Wizard Identifier Java Constant Description 1 Select query QUERY_TYPE Executes a predefined SQL database query to retrieve information read-only action and then immediately discards the results. For example, a select query might be used to see if a specific dDocName Content ID already exists in the database. The query is specified by the Action Name of the action. 2 Execute query EXECUTE_TYPE Executes a predefined SQL database query to delete, add, or update information in the database. 3 Java method CODE_TYPE Specifies a code module that is a part of the Java class implementing the service. 4 Load option list OPTION_TYPE Loads an option list stored in the system. This is a deprecated action type. 5 Select cache query CACHE_RESULT_TYPE Executes an SQL database query to retrieve information read-only action and then stores the results for later use. For example, a select cache query might be used to find all users subscribed to a content item and save the list for display to consumers. The query is specified by the Action Name of the action. 3-10 Oracle Fusion Middleware Services Reference Guide for Oracle Universal Content Management

3.1.3.2 Action Name

The second segment of an action statement defines the name of the action. ■ For the Java method action type, the action name is the Java method. ■ For the Load option list action type, the action name is the option list. ■ For the Select query, Execute query, and Select cache query action types, the action name is the query name. For standard Oracle Content Server services, typically uses a prefix to identify the action performed on the database. The possible prefixes for queries are: In the example of the first action of the DELETE_DOC service, the name of the action is QdocInfo. This specifies that a read-only query Q will be performed on the database: 5:QdocInfo:DOC_INFO:6:csUnableToDeleteItemdDocNamecsRevisionNoLongerExists

3.1.3.3 Action Parameters