Script functions reference > Script functions in alphabetical order > I > IsDocDefAvailable

IsDocDefAvailable
Syntax
IsDocDefAvailable(template_name);
template_name 
Description
Checks if a Composition Center document definition is available for a specified StoryTeller template. If no template_name argument is assigned, the function checks if there are any document definitions available for the current Message.
The function could be used in an exception rule to pause Messages without document definitions in the Message storage in the runtime repository.
The function can be used at all scripting levels except in Before Job or Retrieved script.
Returns
1
0
Example
if(IsDocDefAvailable("MyTemplate"))
{
return "true";
else
   return "false";
}
OpenText StreamServe 5.6 Updated: 2013-03-01