Administering SAS Enterprise Guide |
Overview |
Custom add-in tasks are .NET assemblies (DLL files) that you create, deploy, register in SAS Enterprise Guide, and execute them from the SAS Enterprise Guide task list or Add-In menu.
To provide access to custom tasks, you can register custom tasks as capabilities, assign the capabilities to roles, and assign users to roles.
Create Custom Tasks |
To create custom tasks, you develop Windows executables and package
them as .NET assemblies. It is convenient to assemble multiple tasks in a
single .NET assembly so that you can share code and implementation among the
tasks. For additional information, sample DLLs, and sample executable source
files, see Creating Custom Add-In Tasks for SAS Enterprise Guide,
at
http://support.sas.com/documentation/onlinedoc/guide/customtasks/index.htm#reference.
Deploy Custom Tasks |
You can deploy custom tasks to SAS Enterprise Guide computers in two ways, using drop-in deployment or add-in deployment. Drop-in deployment copies .NET assemblies into local directories that are recognized by SAS Enterprise Guide. Custom tasks in drop-in directories are automatically registered (made available for execution) the next time the user starts SAS Enterprise Guide.
Add-in deployment copies .NET assemblies into any local directory. You then identify those directories in SAS Enterprise Guide using the Add-In Manager to make those tasks available for execution.
When you deploy, make sure that you include any dependent assemblies that are referenced by your custom tasks. Make sure that you do not include any dependent assemblies that are provided by SAS Enterprise Guide or the SAS Add-In for Microsoft Office.
Follow these steps to use the Add-In Manager:
Copy the .NET assembly into one of the following directories:
C:\ProgramFiles\SAS\EnterpriseGuide\release-number\Custom
%appdata%\SAS\EnterpriseGuide\release-number\Custom
%appdata%
is the Microsoft Window environment variable that
maps to a user account. Repeat the copy in other user accounts if multiple
users run SAS Enterprise Guide on the same
host.
%appdata%\SAS\SharedSettings\release-number\Custom
Use this location
to deploy custom tasks to specified user accounts, using a directory
that is accessed by SAS Enterprise Guide and the SAS Add-In for Microsoft
Office.
Restart SAS Enterprise Guide. SAS Enterprise Guide automatically registers the new custom tasks in the specified directories.
Test the new custom tasks by selecting View Task List or Tools Add-In.
Follow these steps to use add-in deployment:
Copy the .NET assembly into any local directory.
In SAS Enterprise , start the Add-In Manager in SAS Enterprise Guide. Select Tools Add-In Add-In Manager.
In the Add-In Manager dialog box, select Browse .
Navigate to the directory where you stored your .NET assembly.
Click Open to display the names of the custom tasks in the assembly.
Click OK to accept the custom tasks and register them in SAS Enterprise Guide.
Test the new custom tasks by selecting View Task List or Tools Add-In.
Register Custom Tasks As Capabilities |
After you deploy custom tasks, follow these steps to register custom tasks as capabilities:
In SAS Enterprise Guide, start SAS Enterprise Guide Explorer. Select Tools SAS Enterprise Guide Explorer.
In Explorer, select Tools Task Import Wizard.
In the first page of the Task Import Wizard, you see your current metadata profile connection. If you need to connect with a different profile, click Cancel to close the wizard and select File Manage Profiles. After you change your profile, click Close, then start the Task Import Wizard.
In the second page of the Task Import Wizard, specify the location from which you want to import task definitions. You can choose to have the wizard search standard locations for task definitions or you can specify a task-definition XML file.
Select tasks to receive metadata and then click Finish in the sixth wizard page to create metadata.
If you are unable to create metadata, then you might need to install the package named SAS Enterprise Guide Server Data on the host that contains your current metadata repository.
Apply Custom-Task Capabilities to Roles |
Follow these steps to apply custom-task capabilities to roles:
In SAS Management Console, open the User Manager.
To create a new role for your custom-task capabilities, right-click in the User Manager and select New Role.
To add a custom-task capability to an existing role, double-click a Enterprise Guide role.
In the role properties window, click the Capabilities tab.
Expand the Plug-Ins branch in the tree view.
Click the custom-task capabilities that you want to add to that role.
Click OK.
The custom-task capabilities will be applied to the role the next time affected users initialize SAS Enterprise Guide.
Note: To access unregistered custom tasks, you need the capability Access Unregistered Custom Tasks, which is available in the Tools and Help category, as described in Default Roles and Capabilities for SAS Enterprise Guide.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.