MicroStrategy ONE
Code Samples for Creating Java-based Tasks
This section includes two code samples for creating a Java-based task.
-
Using Beans to Create a Java-based Task:
This code sample extends the BeanTask class to construct a simple Java-based task that performs folder browsing.
-
Using Web Objects to Create a Java-based Task:
This code sample uses WebObjects to construct a Java-based task. It illustrates the following:
-
How to add parameter metadata to the task in a simple format
-
How to throw exceptions
-
How to check the task envelope (taskEnv)
-
How to retrieve the session state
-