MicroStrategy ONE
Registering a Java-based Task
You use the Web Customization Editor to register or re-register a Java-based task. You can register a previously unregistered Java-based task class with any unused Task ID, register a currently registered Java-based task class with a different Task ID, or re-register an existing task by associating its Task ID with a different Java-based task class. In each case, the task class can be an out-of-the-box MicroStrategy task class or a custom task class.
-
When you register a task class, you select a Java-based task class and provide it with a new Task ID. If you select a task class that was previously registered, the result is that you now have two tasks that perform the same functions but have different Task IDs.
-
Re-registering an existing MicroStrategy Java-based task
When you re-register an existing MicroStrategy task, you select the Task ID for a Java-based task that was previously registered and re-link that Task ID to a different task class. The result is that you now have a task that may perform different functions from those previously performed by the task with the same Task ID.
The Task ID is also referred to as the task name or the task alias.
Registering a Java-based task
You register a Java-based task class using the Registering a New Task Wizard. To do this, you launch the Web Customization Editor and follow the steps below.
-
Select the Application Settings tab and click MicroStrategy Web Configuration to expand the hierarchical tree of customizable features.
-
Right-click Tasks and select Open in Editor from the context menu.
-
On the Task Factory Settings tab in the right-hand pane, click the Add button under Tasks. The Registering a New Task Wizard opens.
-
On the Registering a New Task Wizard, do the following.
-
For the Fully Qualified Task Class, enter or browse to the full-qualified name of the Java-based task class that you want to register.
-
For the Alias, enter the Task ID with which you want the task to be registered.
The Alias field is automatically populated based on the name of the Java class for the selected task. If this name has already been used as a Task ID, the Finish button is disabled and you must provide a different Task ID.
-
Click the Finish button.
-
- Under Tasks on the Task Factory Settings tab in the right-hand pane, the task that you registered now appears at the bottom of the list of tasks. The Task ID appears in the Namecolumn, and the fully-qualified name of the task class appears in theClass Namecolumn.
Re-registering an existing MicroStrategy Java-based task
You re-register a Java-based task with MicroStrategy using either the Modify Task Class Wizard or the Edit Task Wizard. To do this, you launch the Web Customization Editor and follow the steps below.
-
To re-register a Java-based task class using the Edit Task Wizard, you do the following:
-
Select the Application Settings tab and click MicroStrategy Web Configuration to expand the hierarchical tree of customizable features.
-
Right-click Tasks and select Open in Editor from the context menu.
-
Under Tasks on the Task Factory Settings tab in the right-hand pane, select the Task ID of the task that you want to re-register and click the Edit button.
-
The Edit Task Wizard opens.
-
For the Fully Qualified Task Class, enter or browse to the full-qualified name of the new Java-based task class that you want to register for the selected Task ID.
-
The Task ID of the task that you are re-registering is displayed in the Alias field, but it is grayed out and cannot be changed.
-
Click the Finish button.
-
-
Under Tasks on the Task Factory Settings tab in the right-hand pane, the fully-qualified name of the new task class that you selected now appears in the Class Name column for the task that you are re-registering. The Task ID in the Namecolumn remains the same.
-
-
To re-register a Java-based task class using the Modify Task Wizard, you do the following:
-
Select the Application Settings tab and click MicroStrategy Web Configuration to expand the hierarchical tree of customizable features.
-
Under Tasks, select the Java-based task (identified by its Task ID) that you want to re-register.
-
Right-click the selected task (that is, Task ID) and select Modify Class from the context menu.
-
The Modify Task Class Wizard opens.
-
For the Fully Qualified Task Class, enter or browse to the full-qualified name of the Java-based task class that you want to register (that is, associate with the Task ID of the task you selected).
-
Click the Finish button.
-
-
Under Tasks on the Task Factory Settings tab in the right-hand pane, the fully-qualified name of the new task class that you selected now appears in the Class Name column for the task that you are re-registering. The Task ID in the Name column remains the same.
-
Refer to Task Class for information about the interfaces, abstract classes, and methods used to write the Java class for the task. Refer to Code Sample for a Java-based Task for an annotated code sample that illustrates a simple Java-based task that performs folder browsing.