The Declare workflow action lets you declare a file or repository asset placeholder in a workflow by specifying its name and type. The Declare action lets you construct workflow elements such as the following:

Declare repository asset Press Release from repository
/my/app/PressReleaseRepository and item type pressRelease

Declare file asset Target Users from VFS
/atg/epub/file/ConfigFileSystem and file type profileGroup

In this example, Press Release is a placeholder for a repository asset, while Target Users is a placeholder for a file asset. You declare repository assets by specifying the Nucleus path of the repository and the item type, and file assets by specifying the Nucleus path of the associated VFS component and the file type.

Note: The atg.vfs package contains a VirtualFileDescriptor class that supports the notion of a file type within a virtual file system. The class has one method that returns the type name. For the RepositoryVirtualFileSystem, the name returned is the virtual file’s underlying item descriptor, such as profileGroup or scenario. For any other type of VFS, an empty string is returned.

Within the Declare action you can also optionally specify whether the asset is required. For example, in the following declaration, the Press Release asset placeholder is marked as required:

Declare repository asset Press release from repository
/my/app/PressReleaseRepository and item type pressRelease
as required

 
loading table of contents...