wt.workflow.work
Class ProcessManagerProcessor

java.lang.Object
  extended bywt.enterprise.BasicTemplateProcessor
      extended bywt.templateutil.processor.DefaultTemplateProcessor
          extended bywt.workflow.work.ProcessManagerProcessor
All Implemented Interfaces:
ContextHolder, ContextTranslator, Evolvable, Externalizable, Serializable, TemplateProcessor

public class ProcessManagerProcessor
extends DefaultTemplateProcessor

See Also:
Serialized Form

Field Summary
private  HTMLTemplate activityInfoTemplate
           
private  HTMLTemplate activityRoleInfoTemplate
           
protected static String CODEBASE
           
private static String dateFormat
           
private static ResourceBundle dateFormatRB
           
private  String field
           
private  Object getContextObj2
           
private  Object getContextObj3
           
private static String LIST_ALL_PROCESSES_GIF
          HTML page items
private static String LIST_RUNNING_PROCESSES_GIF
           
private static String LIST_SEPARATOR
           
private static String LOCALSEARCH_GIF
           
private  WfContainer myContainer
           
private static String NO_ASSIGNMENTS
           
private static String NO_VALUE_EXISTS
           
private static String NO_VOTES
           
private static String NOT_APPLICABLE
           
private static String NOT_AVAILABLE
           
protected static int PAGE_EXPIRATION
           
private  WfTemplateObject processTemplate
           
private static String PROJECTADMIN_PAGE
           
private static ResourceBundle rb
           
private static String REPORT_PROCESSES_GIF
           
private static String RESOURCE
          Resources for localizing message text
(package private) static long serialVersionUID
           
private  String suffix
           
private static ResourceBundle task_rb
           
private static String TASK_RESOURCE
           
private  OutputStream templateOutputStream
           
private  Vector templatePreferences
           
private  HTMLTemplate unstartedActivityInfoTemplate
           
private static boolean VERBOSE
           
private static String WORKLIST_GIF
           
private static ResourceBundle worklist_rb
           
private static String WORKLIST_RESOURCE
           
 
Fields inherited from class wt.templateutil.processor.DefaultTemplateProcessor
ACTION, CLASS, EXTERNALIZATION_VERSION_UID, LINE_FEED_DELIMITER, MESSAGE_SEPARATOR, OID, OLD_FORMAT_VERSION_UID
 
Fields inherited from class wt.enterprise.BasicTemplateProcessor
ADD_HELP_ICON, ALL_CABINETS, BLANK_SPACE, BREAK_SEPARATOR, BREAK_TAG, componentFactory, CONTAINER_NAME, CONTENT_RESOURCE, contextClass, DEFAULT_CHARSET, DEFAULT_HELP_ICON_SELECTOR, DEFAULT_HELP_LABEL, DEFAULT_PREFERENCE_CONTEXT, DOCFROMTEMPLATE, ENABLE_HELP_ICON_PROPERTY_NAME, ENTERPRISE_SEARCH, FEDERATION_SEARCH, GLOBAL_NAVIGATION_ENABLE_HELP_ICON, globalNavBarHelpIconEnabledDefault, HELP_CONTEXT, HELP_ICON_POSITION, HELP_ICON_SELECTOR, HELP_LABEL, HELP_LABEL_RESOURCE, HELP_WINDOW_NAME, helpContext, helpIconEnabled, helpIconEnabledDefault, HOMEPAGE, IDPREFIX, IMPORT, INTEGRATED_SEARCH, isDndMicroAppletEnabled, isDndMicroAppletEnabledInitialized, LABEL_SEPARATOR, linkPrefix, LOCAL_SEARCH, pageContext, PDMLINK_INSTALL_KEY, PERSONAL_CABINET, PREF_WINDOW_NAME, PREFERENCE_CONTEXT, PRESENT_HELP_LABEL, PROJECTLINK_INSTALL_KEY, SEARCH, SHARE_ICON, TEXT_RESOURCE_BUNDLE, URL_RESOURCE, WORKLIST, wtAttribute, WTCORE_IMAGE_DIR
 
Fields inherited from interface wt.templateutil.processor.ContextTranslator
CONTEXT_LIST_IN, CONTEXT_LIST_OUT
 
Fields inherited from interface wt.templateutil.processor.ContextHolder
CONTEXT_ACTION, CONTEXT_CLASS_NAME, CONTEXT_OBJ, CONTEXT_PROPERTIES, FORM_DATA, QUERY_DATA, RESPONSE_EXCEPTIONS, RESPONSE_FOOTERS, RESPONSE_HEADERS, RESPONSE_MESSAGES, RESPONSE_STRING, STATUS
 
Constructor Summary
ProcessManagerProcessor()
          A no argument constructor with no side effects.
ProcessManagerProcessor(Object context)
          Constructs a ProcessManagerProcessor.
 
Method Summary
 void activityDeadlineTime(Properties parameters, Locale locale, OutputStream os)
          Print the deadline time of the activity.
 void activityDescription(Properties parameters, Locale locale, OutputStream os)
          Print the description of the activity.
 void activityEndTime(Properties parameters, Locale locale, OutputStream os)
          Print the end time of the activity.
 void activityErrorMessage(Properties parameters, Locale locale, OutputStream os)
          Print the error message of the activity (if one exists).
 void activityEventList(Properties parameters, Locale locale, OutputStream os)
          Print the event list for this activity.
 void activityInstructions(Properties parameters, Locale locale, OutputStream os)
          Print the instructions of the activity.
 void activityIsEscalated(Properties parameters, Locale locale, OutputStream os)
          Print whether the activity has been escalated to the responsible role or other participant.
 void activityIsOverdue(Properties parameters, Locale locale, OutputStream os)
          Print whether the activity is overdue or not.
 void activityName(Properties parameters, Locale locale, OutputStream os)
          Print the name of the activity.
 void activityPriority(Properties parameters, Locale locale, OutputStream os)
          Print the priority of the activity.
 void activityResponsibleRole(Properties parameters, Locale locale, OutputStream os)
          Print the responsible role (responsible person) for the activity.
 void activityRoleAssigneeType(Properties parameters, Locale locale, OutputStream os)
          Print the role assignee type (Principal, Team, Role, Variable, or Actor Role) of the assignment for the activity.
 void activityRoleAssigneeTypeName(Properties parameters, Locale locale, OutputStream os)
          Print the name (where applicable) of the role assignee type (Principal, Team, Role, Variable, or Actor Role) of the assignment for the activity.
 void activityRoleAssignmentPrincipals(Properties parameters, Locale locale, OutputStream os)
          Print the list of principals of this assignment for the activity.
 void activityRoleAssignmentStatus(Properties parameters, Locale locale, OutputStream os)
          Print the role assignment's status (Potential, Accepted, or Completed) for the activity.
 void activityRoleCompletionPolicy(Properties parameters, Locale locale, OutputStream os)
          Print the role assignment's completion policy (Any, All, or Number) for the activity.
 void activityRoleIsAssignmentComplete(Properties parameters, Locale locale, OutputStream os)
          Print whether the assignment has been completed for this activity.
 void activityRoleIsAssignmentRequired(Properties parameters, Locale locale, OutputStream os)
          Print whether the assignment is required for this activity.
 void activityRolePrincipal(Properties parameters, Locale locale, OutputStream os)
          Prints a principal of the assignment for the activity.
 void activityRolePrincipalVotes(Properties parameters, Locale locale, OutputStream os)
          Prints the vote results of a principal of the assignment for the activity.
 void activityStartTime(Properties parameters, Locale locale, OutputStream os)
          Print the start time of the activity.
 void activityState(Properties parameters, Locale locale, OutputStream os)
          Print the state of the activity.
 void activitySuspendTime(Properties parameters, Locale locale, OutputStream os)
          Print the suspend time of the activity (in milliseconds).
 void activityTaskName(Properties parameters, Locale locale, OutputStream os)
          Print the task name of the activity or activity template.
 void activityTemplate(Properties parameters, Locale locale, OutputStream os)
          Print the template name of the activity (that is, the activity template name).
 void activityTemplateCategory(Properties parameters, Locale locale, OutputStream os)
          Print the category of the activity template.
 void activityTimeToDeadline(Properties parameters, Locale locale, OutputStream os)
          Print the time until the deadline for the activity.
 void activityTimeToStart(Properties parameters, Locale locale, OutputStream os)
          Print the time the activity will wait once it has been instantiated (started running).
 void activityTripCount(Properties parameters, Locale locale, OutputStream os)
          Print the trip count for this activity.
 void appletFrame1(Properties parameters, Locale locale, OutputStream os)
          Print the HTML used to start the first frame of the Process Manager.
 void appletFrame2(Properties parameters, Locale locale, OutputStream os)
          Print the HTML used to start the second frame of the Process Manager.
 void appletLink(Properties parameters, Locale locale, OutputStream os)
          Print a link to the that will replace itself with the applet view This call should be used if the general user does not wish to load the graphical view of the process by default.
 void appletOid(Properties parameters, Locale locale, OutputStream os)
          Supply the process OID.
 void appletOidParameter(Properties parameters, Locale locale, OutputStream os)
          Supply the process OID as a parameter to the applet.
static String convertToHTMLAnchor(String target)
          Takes a string to be an HTML anchor, replaces the invalid characters for an HTML anchor, and returns the new string.
 void displayActivities(Properties parameters, Locale locale, OutputStream os)
          Print all activities and their attributes of the Process.
 void displayActivityRoles(Properties parameters, Locale locale, OutputStream os)
          Print all roles of the given activity.
 void displayProcess(Properties parameters, Locale locale, OutputStream os)
          Print all process attributes of the Process.
 void displayRoles(Properties parameters, Locale locale, OutputStream os)
          Print all roles of the Process.
 void displayVariables(Properties parameters, Locale locale, OutputStream os)
          Print all variable attributes of the process, activity, sub-process, etc.
(package private)  HTMLTemplate getActivityInfoTemplate()
           
(package private)  HTMLTemplate getActivityRoleInfoTemplate()
           
private  WfNode getInstantiatedNode(WfContainer container, WfNodeTemplate template)
          This method returns the instantiated node (connector or activity) for a given template and container object (WfProcess or WfBlock).
private  WfTemplateObject getProcessTemplate()
          Gets the Process Template.
private  HTMLTemplate getTemplate(Vector preferences)
          Makes and returns an HTMLTemplate object.
private  OutputStream getTemplateOutputStream()
          Gets the output stream for the HTML template.
private  Vector getTemplatePreferences()
          Gets the preferences for the HTML template.
(package private)  HTMLTemplate getUnstartedActivityInfoTemplate()
           
private  WfContainer getWfcontainer()
          Gets the process or block on which information will be displayed.
 void handleRequest(HTTPRequest req, HTTPResponse resp)
          This method handles HTTP GET requests to produce an HTML page which enables the user to view a workflow process in Process Manager.
 void listAllProcessesLink(Properties parameters, Locale locale, OutputStream os)
          Print URL link to show a list of all Workflow Processes.
 void listContent(Properties parameters, Locale locale, OutputStream os)
          Print HTML-based content for the process.
 void listRunningProcessesLink(Properties parameters, Locale locale, OutputStream os)
          Print URL link to show a list of all running Workflow Processes.
 void localSearch(Properties parameters, Locale locale, OutputStream os)
          Create a link to a page of all instances of Workflow Processes.
private  void myOUT(String methodname, String output)
          Used for debugging
 void pageTitle(Properties parameters, Locale locale, OutputStream os)
          Create a localized title for the page.
 void primaryBusinessObject(Properties parameters, Locale locale, OutputStream os)
          Print a link to the Primary Business Object (Subject) if any of the Process.
 void processContent(Properties parameters, Locale locale, OutputStream os)
          Print HTML-based content for the process.
 void processCreator(Properties parameters, Locale locale, OutputStream os)
          Print the creator's name of the Process.
 void processDeadlineTime(Properties parameters, Locale locale, OutputStream os)
          Print the deadline time of the Process.
 void processDescription(Properties parameters, Locale locale, OutputStream os)
          Print the description of the Process.
 void processEndTime(Properties parameters, Locale locale, OutputStream os)
          Print the end time of the Process.
private  void processHistory(Properties parameters, Locale locale, OutputStream os)
          (NOT WORKING) Print the history of the Process.
 void processInstructions(Properties parameters, Locale locale, OutputStream os)
          Print the instructions of the process.
 void processName(Properties parameters, Locale locale, OutputStream os)
          Print the name of the Process.
 void processPriority(Properties parameters, Locale locale, OutputStream os)
          Print the priority of the Process.
 void processProjectLink(Properties parameters, Locale locale, OutputStream os)
          Print the name to the project and a URL link to the project's property page.
 void processProjectName(Properties parameters, Locale locale, OutputStream os)
          Print the team name of the Process.
 void processRoleName(Properties parameters, Locale locale, OutputStream os)
          Print the name of the role.
 void processRolePrincipals(Properties parameters, Locale locale, OutputStream os)
          Print the principals of the role.
 void processStartTime(Properties parameters, Locale locale, OutputStream os)
          Print the time the Process was started.
 void processState(Properties parameters, Locale locale, OutputStream os)
          Print the current state of the Process.
 void processSuspendTime(Properties parameters, Locale locale, OutputStream os)
          Print the suspended time of the Process (in milliseconds).
 void processTeamLink(Properties parameters, Locale locale, OutputStream os)
          Print the name to the team and a URL link to the team's property page.
 void processTeamName(Properties parameters, Locale locale, OutputStream os)
          Print the team name of the Process.
 void processTemplateCategory(Properties parameters, Locale locale, OutputStream os)
          Print the category of the process template.
 void processTemplateCreationTime(Properties parameters, Locale locale, OutputStream os)
          Print the creation time of the process' template.
 void processTemplateDescription(Properties parameters, Locale locale, OutputStream os)
          Print the description of the process template.
private  void processTemplateIteration(Properties parameters, Locale locale, OutputStream os)
          (NOT WORKING) Print the iteration of the process template.
private  void processTemplateLink(Properties parameters, Locale locale, OutputStream os)
          (NOT WORKING) Print the URL link and the name to the process template.
 void processTemplateModificationTime(Properties parameters, Locale locale, OutputStream os)
          Print the time the process template was last modified.
 void processTemplateName(Properties parameters, Locale locale, OutputStream os)
          Print the name of the process template.
 void reportAllProcessesBehindScheduleLink(Properties parameters, Locale locale, OutputStream os)
          Print URL link to show list of all processes that are currently behind schedule.
 void reportAllProcessesInitiatedByMeLink(Properties parameters, Locale locale, OutputStream os)
          Print URL link to show list of all processes that were initiated by the current user.
private  void setProcessTemplate(WfTemplateObject template)
          Sets the process template.
private  void setTemplateOutputStream(OutputStream os)
          Sets the output stream for the HTML template.
private  void setTemplatePreferences(Vector preferences)
          Sets the preferences for the HTML template.
private  void setWfcontainer(WfContainer process)
          Sets the WfContainer (process or block).
 void variableCopiedFrom(Properties parameters, Locale locale, OutputStream os)
          Print the variable name that initializes this variable if one exists; print an empty string otherwise.
 void variableCopiedTo(Properties parameters, Locale locale, OutputStream os)
          Print the variable names (in a comma-separated list) that get their value from this variable if any exist; print an empty string otherwise.
 void variableDefaultValue(Properties parameters, Locale locale, OutputStream os)
          Print the default value of the variable.
 void variableDisplayName(Properties parameters, Locale locale, OutputStream os)
          Print the displayName of the variable.
 void variableIsMutable(Properties parameters, Locale locale, OutputStream os)
          Print whether the variable is mutable (modifiable) or not.
 void variableIsRequired(Properties parameters, Locale locale, OutputStream os)
          Print whether the variable is required or not.
 void variableIsResettable(Properties parameters, Locale locale, OutputStream os)
          Print whether the variable is resettable (able to be reset to the default value) or not.
 void variableIsVisible(Properties parameters, Locale locale, OutputStream os)
          Print whether the variable is visible or not.
 void variableName(Properties parameters, Locale locale, OutputStream os)
          Print the name of the variable.
 void variableType(Properties parameters, Locale locale, OutputStream os)
          Print the type of the variable.
 void variableValue(Properties parameters, Locale locale, OutputStream os)
          Print the value of the variable.
 void worklistLink(Properties parameters, Locale locale, OutputStream os)
          Print URL link to the worklist.
 
Methods inherited from class wt.templateutil.processor.DefaultTemplateProcessor
addHiddenProperty, addToFeedbackCookie, addToFeedbackCookie, getContextPropertyValue, getCurrentUrl, getFeedbackCookieExceptions, getFeedbackCookieMessages, getHtmlTemplateFactory, getMessageSeparator, getPAGE_EXPIRATION, getPageExpirationResource, getTemplate, getTemplateDisplay, hiddenContextString, readExternal, readVersion, setContextPropertyValue, setHtmlTemplateFactory, setMethodContextProperty, setNameProcessor, setPAGE_EXPIRATION, setPageExpirationResource, writeExternal, writeHiddenContext, writeQueryStringContext
 
Methods inherited from class wt.enterprise.BasicTemplateProcessor
AccessOK, addHTMLHelpLink, addToResponseExceptions, addToResponseFooters, addToResponseHeaders, addToResponseMessages, allVersions, bcwti, buildFormProcessorURL, buildFormProcessorURL, comment, createActionsBar, createFederationNavigationBar, createGlobalNavigationBar, createNavigationBar, createParentFolderLink, currentTimestamp, displayAllCabinets, displayAttributeName, displayAttributesTable, displayAttributeValue, displayFolderContents, displayFolderObject, displayFolderTrail, displayGoToLatestLink, displayOrganizationIdentifier, displayPendingChangeIndicator, displayStyleSheetAttributesTable, displayVisualData, formatDate, getActionPairs, getAllCabinetsURL, getBaselineItems, getCharsetEncoding, getCheckedOutFolderURL, getClassIcon, getClassInfo, getContextAction, getContextClass, getContextClassName, getContextListIn, getContextListOut, getContextObj, getContextProperties, getContextServiceName, getDisplayName, getDomainPath, getEnabledVersion, getEncoding, getFederationSearchURL, getFolderLocation, getFolderPath, getFormData, getGenericInstanceIconImgTag, getGlyphImageTag, getGlyphsArray, getGlyphTagsNoDnD, getHelpContext, getHomepageURL, getHTMLComponentFactory, getHTMLHelpLink, getHTMLHelpURL, getHTMLHelpURL, getHTMLTableService, getIconResource, getIconResource, getIconResource, getIconSelector, getId, getJavaScriptManager, getLocalizedDateFormatMessage, getLocalizedMessage, getLocalizedPrintWriter, getLocalizedString, getObjectDnDIcon, getObjectIcon, getObjectIconDnDTag, getObjectIconGlyphs, getObjectIconImgTag, getObjectIconImgTag, getObjectIconImgTag, getObjectIconImgTag, getObjectIconImgTag, getObjectIconImgTag, getObjectPropertyValueString, getObjectPropertyValueString, getPageContext, getParentFolderLink, getPersonalCabinet, getPersonalCabinetURL, getPreferenceValue, getPrincipalEmailLink, getPrincipalEmailLink, getPrintWriter, getPropertyFromPropertyFile, getQuery, getQueryData, getReferenceString, getReferenceString, getResourceString, getResourceString, getResponseExceptions, getResponseFooters, getResponseHeaders, getResponseMessages, getResponseString, getSearchCriteriaURL, getSearchCriteriaURL, getSearchResultsURL, getShareImage, getShareImage, getState, getStatus, getStringFromResourceBundle, getStringFromResourceBundle, getTemplateDisplayGeneral, getTrailId, getTrlIdAttribute, getURLActions, getURLActions, getURLActions, getURLActions, getURLActionsString, getURLActionsString, getURLFactory, getURLFromDelegate, getURLProcessorLink, getURLProcessorLink, getURLProcessorLink, getURLProcessorLinkWithLabel, getUsedByLinks, getWCColor, getWCColor, getWCColorDec, getWCColorDec, getWCFontFamily, getWCFontFamily, getWorklistURL, getWTAttribute, getWTContainerByName, getWTContainerRef, handleExceptionTP, handleExceptionTP, handleProcessorException, include, initJavaScriptManager, isDndMicroAppletEnabled, isEqual, objectActionLink, objectActionLinkAux, objectActionLinkAux, objectActionLinkAux, objectActionLinkAux, objectActionLinkAux, objectActionLinkAux, objectActionLinkAux, objectBackground, objectIdentification, objectIdentifier, objectProperties, objectPropertyName, objectPropertyNameAux, objectPropertyNameAux2, objectPropertyValue, objectPropertyValueAux, objectPropertyValueAux2, objectPropertyValueString, outputLink, outputPropertyFromPropertyFile, parameterValue, partUsedBy, PDMLinkIsInstalled, printQueryTable, printTable, printTextArea, processSubTemplate, readContext, readVersion, setColumnProperties, setContextAction, setContextClass, setContextClassName, setContextListIn, setContextListOut, setContextObj, setContextProperties, setFormData, setHelpContext, setHTMLTableService, setJavaScriptManager, setPageContext, setQueryData, setResponseExceptions, setResponseFooters, setResponseHeaders, setResponseMessages, setResponseString, setState, setStatus, showResponseExceptions, showResponseFooters, showResponseHeaders, showResponseMessage, showResponseMessages, showVersions, sortQueryResult, splitStringIntoTokens, tableService, translateToHtml, useProcessorService, visualizationIsEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

myContainer

private WfContainer myContainer

processTemplate

private WfTemplateObject processTemplate

templatePreferences

private Vector templatePreferences

templateOutputStream

private OutputStream templateOutputStream

VERBOSE

private static boolean VERBOSE

CODEBASE

protected static String CODEBASE

PAGE_EXPIRATION

protected static int PAGE_EXPIRATION

suffix

private String suffix

getContextObj2

private Object getContextObj2

getContextObj3

private Object getContextObj3

field

private String field

activityInfoTemplate

private HTMLTemplate activityInfoTemplate

activityRoleInfoTemplate

private HTMLTemplate activityRoleInfoTemplate

unstartedActivityInfoTemplate

private HTMLTemplate unstartedActivityInfoTemplate

LIST_ALL_PROCESSES_GIF

private static String LIST_ALL_PROCESSES_GIF
HTML page items


LIST_RUNNING_PROCESSES_GIF

private static String LIST_RUNNING_PROCESSES_GIF

REPORT_PROCESSES_GIF

private static String REPORT_PROCESSES_GIF

LOCALSEARCH_GIF

private static String LOCALSEARCH_GIF

WORKLIST_GIF

private static String WORKLIST_GIF

PROJECTADMIN_PAGE

private static String PROJECTADMIN_PAGE

RESOURCE

private static final String RESOURCE
Resources for localizing message text

See Also:
Constant Field Values

TASK_RESOURCE

private static final String TASK_RESOURCE
See Also:
Constant Field Values

WORKLIST_RESOURCE

private static final String WORKLIST_RESOURCE
See Also:
Constant Field Values

rb

private static final ResourceBundle rb

task_rb

private static final ResourceBundle task_rb

worklist_rb

private static final ResourceBundle worklist_rb

dateFormatRB

private static ResourceBundle dateFormatRB

dateFormat

private static String dateFormat

NOT_AVAILABLE

private static final String NOT_AVAILABLE

NOT_APPLICABLE

private static final String NOT_APPLICABLE

NO_VALUE_EXISTS

private static final String NO_VALUE_EXISTS

NO_ASSIGNMENTS

private static final String NO_ASSIGNMENTS

NO_VOTES

private static final String NO_VOTES

LIST_SEPARATOR

private static final String LIST_SEPARATOR
Constructor Detail

ProcessManagerProcessor

public ProcessManagerProcessor()
A no argument constructor with no side effects.


ProcessManagerProcessor

public ProcessManagerProcessor(Object context)
Constructs a ProcessManagerProcessor. The contextual object of the instance is set to the object context.

Parameters:
context - The contextual object of the ProcessManagerProcessor.
Method Detail

convertToHTMLAnchor

public static String convertToHTMLAnchor(String target)
Takes a string to be an HTML anchor, replaces the invalid characters for an HTML anchor, and returns the new string.

Returns:
the new string as a valid HTML anchor

getTemplate

private HTMLTemplate getTemplate(Vector preferences)
                          throws WTException
Makes and returns an HTMLTemplate object. This method makes an HTMLTemplate object (using a suffix for part of the template's name) for HTML template processing, and sets the template's preferences.

Returns:
HTMLTemplate
Throws:
WTException

handleRequest

public void handleRequest(HTTPRequest req,
                          HTTPResponse resp)
                   throws WTException
This method handles HTTP GET requests to produce an HTML page which enables the user to view a workflow process in Process Manager. The format of the HTML output is determined by the ProcessManager collective templates.

Specified by:
handleRequest in interface TemplateProcessor
Overrides:
handleRequest in class DefaultTemplateProcessor
Parameters:
req - HTTPRequest
resp - HTTPResponse
Throws:
WTException

setProcessTemplate

private void setProcessTemplate(WfTemplateObject template)
Sets the process template. This is used by setProcess() to save the template of the process.


getProcessTemplate

private WfTemplateObject getProcessTemplate()
Gets the Process Template.

Returns:
The process template used by the process.

setWfcontainer

private void setWfcontainer(WfContainer process)
Sets the WfContainer (process or block). This is the process or block on which the Process Manager will display information.


getWfcontainer

private WfContainer getWfcontainer()
Gets the process or block on which information will be displayed.

Returns:
The WfContainer (process or block) on which information is being displayed.

setTemplateOutputStream

private void setTemplateOutputStream(OutputStream os)
Sets the output stream for the HTML template.


getTemplateOutputStream

private OutputStream getTemplateOutputStream()
Gets the output stream for the HTML template.

Returns:
the output stream for the HTML template.

setTemplatePreferences

private void setTemplatePreferences(Vector preferences)
Sets the preferences for the HTML template.


getInstantiatedNode

private WfNode getInstantiatedNode(WfContainer container,
                                   WfNodeTemplate template)
                            throws WTException
This method returns the instantiated node (connector or activity) for a given template and container object (WfProcess or WfBlock). Returns null if node hasn't been instantiated.

Returns:
Instantiated node if existing; null otherwise.
Throws:
WTException

getTemplatePreferences

private Vector getTemplatePreferences()
Gets the preferences for the HTML template.

Returns:
A vector of preferences for the HTML template.

activityDeadlineTime

public void activityDeadlineTime(Properties parameters,
                                 Locale locale,
                                 OutputStream os)
                          throws WTException
Print the deadline time of the activity.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityDescription

public void activityDescription(Properties parameters,
                                Locale locale,
                                OutputStream os)
                         throws WTException
Print the description of the activity.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityEndTime

public void activityEndTime(Properties parameters,
                            Locale locale,
                            OutputStream os)
                     throws WTException
Print the end time of the activity.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityErrorMessage

public void activityErrorMessage(Properties parameters,
                                 Locale locale,
                                 OutputStream os)
                          throws WTException
Print the error message of the activity (if one exists).

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityEventList

public void activityEventList(Properties parameters,
                              Locale locale,
                              OutputStream os)
                       throws WTException
Print the event list for this activity.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityInstructions

public void activityInstructions(Properties parameters,
                                 Locale locale,
                                 OutputStream os)
                          throws WTException
Print the instructions of the activity.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityIsEscalated

public void activityIsEscalated(Properties parameters,
                                Locale locale,
                                OutputStream os)
                         throws WTException
Print whether the activity has been escalated to the responsible role or other participant.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityIsOverdue

public void activityIsOverdue(Properties parameters,
                              Locale locale,
                              OutputStream os)
                       throws WTException
Print whether the activity is overdue or not. Only makes sense if the "activity" is a WfAssignedActivity or a WfRobotActivity. It does not make sense for any of the templates (including non-instantiated activities) or for blocks (instantiated or non-instantiated).

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityName

public void activityName(Properties parameters,
                         Locale locale,
                         OutputStream os)
                  throws WTException
Print the name of the activity.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityPriority

public void activityPriority(Properties parameters,
                             Locale locale,
                             OutputStream os)
                      throws WTException
Print the priority of the activity.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityResponsibleRole

public void activityResponsibleRole(Properties parameters,
                                    Locale locale,
                                    OutputStream os)
                             throws WTException
Print the responsible role (responsible person) for the activity.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityRoleAssigneeType

public void activityRoleAssigneeType(Properties parameters,
                                     Locale locale,
                                     OutputStream os)
                              throws WTException
Print the role assignee type (Principal, Team, Role, Variable, or Actor Role) of the assignment for the activity.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityRoleAssigneeTypeName

public void activityRoleAssigneeTypeName(Properties parameters,
                                         Locale locale,
                                         OutputStream os)
                                  throws WTException
Print the name (where applicable) of the role assignee type (Principal, Team, Role, Variable, or Actor Role) of the assignment for the activity.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityRoleAssignmentPrincipals

public void activityRoleAssignmentPrincipals(Properties parameters,
                                             Locale locale,
                                             OutputStream os)
                                      throws WTException
Print the list of principals of this assignment for the activity.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityRoleAssignmentStatus

public void activityRoleAssignmentStatus(Properties parameters,
                                         Locale locale,
                                         OutputStream os)
                                  throws WTException
Print the role assignment's status (Potential, Accepted, or Completed) for the activity.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityRoleCompletionPolicy

public void activityRoleCompletionPolicy(Properties parameters,
                                         Locale locale,
                                         OutputStream os)
                                  throws WTException
Print the role assignment's completion policy (Any, All, or Number) for the activity.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityRoleIsAssignmentComplete

public void activityRoleIsAssignmentComplete(Properties parameters,
                                             Locale locale,
                                             OutputStream os)
                                      throws WTException
Print whether the assignment has been completed for this activity.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityRoleIsAssignmentRequired

public void activityRoleIsAssignmentRequired(Properties parameters,
                                             Locale locale,
                                             OutputStream os)
                                      throws WTException
Print whether the assignment is required for this activity.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityRolePrincipal

public void activityRolePrincipal(Properties parameters,
                                  Locale locale,
                                  OutputStream os)
                           throws WTException
Prints a principal of the assignment for the activity. The principal is found in the Ballot object of the Assignment object.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityRolePrincipalVotes

public void activityRolePrincipalVotes(Properties parameters,
                                       Locale locale,
                                       OutputStream os)
                                throws WTException
Prints the vote results of a principal of the assignment for the activity. The vote is found in the Ballot object of the Assignment object.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityStartTime

public void activityStartTime(Properties parameters,
                              Locale locale,
                              OutputStream os)
                       throws WTException
Print the start time of the activity.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityState

public void activityState(Properties parameters,
                          Locale locale,
                          OutputStream os)
                   throws WTException
Print the state of the activity.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activitySuspendTime

public void activitySuspendTime(Properties parameters,
                                Locale locale,
                                OutputStream os)
                         throws WTException
Print the suspend time of the activity (in milliseconds). This is the time the activity was moved to a suspended state.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityTaskName

public void activityTaskName(Properties parameters,
                             Locale locale,
                             OutputStream os)
                      throws WTException
Print the task name of the activity or activity template. This only makes sense for any activity that can be of type WfAssignedActivity (therefore, this includes ad hoc activities).

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityTemplate

public void activityTemplate(Properties parameters,
                             Locale locale,
                             OutputStream os)
                      throws WTException
Print the template name of the activity (that is, the activity template name).

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityTemplateCategory

public void activityTemplateCategory(Properties parameters,
                                     Locale locale,
                                     OutputStream os)
                              throws WTException
Print the category of the activity template.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityTimeToDeadline

public void activityTimeToDeadline(Properties parameters,
                                   Locale locale,
                                   OutputStream os)
                            throws WTException
Print the time until the deadline for the activity.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityTimeToStart

public void activityTimeToStart(Properties parameters,
                                Locale locale,
                                OutputStream os)
                         throws WTException
Print the time the activity will wait once it has been instantiated (started running). If the activity is not instantiated then the time until start doesn't make sense. Otherwise, this method prints the delay time for the activity once it has been instantiated (started running).

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

appletFrame1

public void appletFrame1(Properties parameters,
                         Locale locale,
                         OutputStream os)
                  throws WTException
Print the HTML used to start the first frame of the Process Manager. The HTML will be a reference to the ProcessManagerFrame1 html file.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

appletFrame2

public void appletFrame2(Properties parameters,
                         Locale locale,
                         OutputStream os)
                  throws WTException
Print the HTML used to start the second frame of the Process Manager. The HTML will be a reference to the ProcessManagerFrame2 html file.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

appletOid

public void appletOid(Properties parameters,
                      Locale locale,
                      OutputStream os)
               throws WTException
Supply the process OID. The template processor will be used to construct the workflow process.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

appletOidParameter

public void appletOidParameter(Properties parameters,
                               Locale locale,
                               OutputStream os)
                        throws WTException
Supply the process OID as a parameter to the applet. The template processor will be used to construct the workflow process.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

appletLink

public void appletLink(Properties parameters,
                       Locale locale,
                       OutputStream os)
                throws WTException
Print a link to the that will replace itself with the applet view This call should be used if the general user does not wish to load the graphical view of the process by default. If the user chooses to open the link in a new window, the communication between the applet & the html attributes will be broken.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

displayActivities

public void displayActivities(Properties parameters,
                              Locale locale,
                              OutputStream os)
                       throws WTException
Print all activities and their attributes of the Process. This method will order the "activities" (ie, activities, ad hoc activites, sub-processes, and blocks) by the start time of the activity. All activities that have not been started (non-instantiated activities) will follow those that have been started (instantiated activities).

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

displayActivityRoles

public void displayActivityRoles(Properties parameters,
                                 Locale locale,
                                 OutputStream os)
                          throws WTException
Print all roles of the given activity. This call is done inside of the template used by displayActivities processor call.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

displayProcess

public void displayProcess(Properties parameters,
                           Locale locale,
                           OutputStream os)
                    throws WTException
Print all process attributes of the Process.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

displayRoles

public void displayRoles(Properties parameters,
                         Locale locale,
                         OutputStream os)
                  throws WTException
Print all roles of the Process.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

displayVariables

public void displayVariables(Properties parameters,
                             Locale locale,
                             OutputStream os)
                      throws WTException
Print all variable attributes of the process, activity, sub-process, etc.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException
See Also:
displayActivityVariables

listAllProcessesLink

public void listAllProcessesLink(Properties parameters,
                                 Locale locale,
                                 OutputStream os)
                          throws WTException
Print URL link to show a list of all Workflow Processes.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

listContent

public void listContent(Properties parameters,
                        Locale locale,
                        OutputStream os)
                 throws WTException,
                        IllegalAccessException,
                        PropertyVetoException,
                        InvocationTargetException
Print HTML-based content for the process.

Overrides:
listContent in class BasicTemplateProcessor
Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
InvocationTargetException - Description of the Exception
PropertyVetoException - Description of the Exception
WTException - Description of the Exception
IllegalAccessException - Description of the Exception

listRunningProcessesLink

public void listRunningProcessesLink(Properties parameters,
                                     Locale locale,
                                     OutputStream os)
                              throws WTException
Print URL link to show a list of all running Workflow Processes.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

localSearch

public void localSearch(Properties parameters,
                        Locale locale,
                        OutputStream os)
                 throws WTException
Create a link to a page of all instances of Workflow Processes.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

pageTitle

public void pageTitle(Properties parameters,
                      Locale locale,
                      OutputStream os)
               throws WTException
Create a localized title for the page.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

primaryBusinessObject

public void primaryBusinessObject(Properties parameters,
                                  Locale locale,
                                  OutputStream os)
                           throws WTException
Print a link to the Primary Business Object (Subject) if any of the Process.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

processContent

public void processContent(Properties parameters,
                           Locale locale,
                           OutputStream os)
                    throws WTException,
                           IllegalAccessException,
                           PropertyVetoException,
                           InvocationTargetException
Print HTML-based content for the process. Merely calls listContent().

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException
IllegalAccessException
PropertyVetoException
InvocationTargetException
See Also:
listContent(java.util.Properties, java.util.Locale, java.io.OutputStream)

processCreator

public void processCreator(Properties parameters,
                           Locale locale,
                           OutputStream os)
                    throws WTException
Print the creator's name of the Process.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

processDeadlineTime

public void processDeadlineTime(Properties parameters,
                                Locale locale,
                                OutputStream os)
                         throws WTException
Print the deadline time of the Process. This is the time by which the process needs to be completed.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

processDescription

public void processDescription(Properties parameters,
                               Locale locale,
                               OutputStream os)
                        throws WTException
Print the description of the Process.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

processEndTime

public void processEndTime(Properties parameters,
                           Locale locale,
                           OutputStream os)
                    throws WTException
Print the end time of the Process.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException
See Also:
processStartTime(java.util.Properties, java.util.Locale, java.io.OutputStream)

processHistory

private void processHistory(Properties parameters,
                            Locale locale,
                            OutputStream os)
                     throws WTException
(NOT WORKING) Print the history of the Process.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

processInstructions

public void processInstructions(Properties parameters,
                                Locale locale,
                                OutputStream os)
                         throws WTException
Print the instructions of the process.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

processName

public void processName(Properties parameters,
                        Locale locale,
                        OutputStream os)
                 throws WTException
Print the name of the Process.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

processPriority

public void processPriority(Properties parameters,
                            Locale locale,
                            OutputStream os)
                     throws WTException
Print the priority of the Process.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

processProjectLink

public void processProjectLink(Properties parameters,
                               Locale locale,
                               OutputStream os)
                        throws WTException
Print the name to the project and a URL link to the project's property page.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

processProjectName

public void processProjectName(Properties parameters,
                               Locale locale,
                               OutputStream os)
                        throws WTException
Print the team name of the Process.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

processTeamLink

public void processTeamLink(Properties parameters,
                            Locale locale,
                            OutputStream os)
                     throws WTException
Print the name to the team and a URL link to the team's property page.

Parameters:
parameters - The arguments that were passed to the Windchill script c all.
locale - The Locale to send to the invoked methods for localizati on.
os - The output stream.
Throws:
WTException

processTeamName

public void processTeamName(Properties parameters,
                            Locale locale,
                            OutputStream os)
                     throws WTException
Print the team name of the Process.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

processRoleName

public void processRoleName(Properties parameters,
                            Locale locale,
                            OutputStream os)
                     throws WTException
Print the name of the role.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

processRolePrincipals

public void processRolePrincipals(Properties parameters,
                                  Locale locale,
                                  OutputStream os)
                           throws WTException
Print the principals of the role.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

processStartTime

public void processStartTime(Properties parameters,
                             Locale locale,
                             OutputStream os)
                      throws WTException
Print the time the Process was started. The start time is different from the time the process was created, since the process can be set up to do a delayed start.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException
See Also:
wt.workflow.work.ProcessManagerProcessor#processCreationDate, processEndTime(java.util.Properties, java.util.Locale, java.io.OutputStream)

processState

public void processState(Properties parameters,
                         Locale locale,
                         OutputStream os)
                  throws WTException
Print the current state of the Process.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

processSuspendTime

public void processSuspendTime(Properties parameters,
                               Locale locale,
                               OutputStream os)
                        throws WTException
Print the suspended time of the Process (in milliseconds). This is the time the process was moved to a suspended state.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

processTemplateCategory

public void processTemplateCategory(Properties parameters,
                                    Locale locale,
                                    OutputStream os)
                             throws WTException
Print the category of the process template.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

processTemplateCreationTime

public void processTemplateCreationTime(Properties parameters,
                                        Locale locale,
                                        OutputStream os)
                                 throws WTException
Print the creation time of the process' template.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException
See Also:
processStartTime(java.util.Properties, java.util.Locale, java.io.OutputStream)

processTemplateDescription

public void processTemplateDescription(Properties parameters,
                                       Locale locale,
                                       OutputStream os)
                                throws WTException
Print the description of the process template.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

processTemplateIteration

private void processTemplateIteration(Properties parameters,
                                      Locale locale,
                                      OutputStream os)
                               throws WTException
(NOT WORKING) Print the iteration of the process template.

Returns:
The iteration of the process as a String.
Throws:
WTException

processTemplateModificationTime

public void processTemplateModificationTime(Properties parameters,
                                            Locale locale,
                                            OutputStream os)
                                     throws WTException
Print the time the process template was last modified.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException
See Also:
processStartTime(java.util.Properties, java.util.Locale, java.io.OutputStream)

processTemplateLink

private void processTemplateLink(Properties parameters,
                                 Locale locale,
                                 OutputStream os)
                          throws WTException
(NOT WORKING) Print the URL link and the name to the process template. This method returns the template's name and a URL link to the template.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

processTemplateName

public void processTemplateName(Properties parameters,
                                Locale locale,
                                OutputStream os)
                         throws WTException
Print the name of the process template.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

reportAllProcessesBehindScheduleLink

public void reportAllProcessesBehindScheduleLink(Properties parameters,
                                                 Locale locale,
                                                 OutputStream os)
                                          throws WTException
Print URL link to show list of all processes that are currently behind schedule. Uses the Report Generator to generate the report.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

reportAllProcessesInitiatedByMeLink

public void reportAllProcessesInitiatedByMeLink(Properties parameters,
                                                Locale locale,
                                                OutputStream os)
                                         throws WTException
Print URL link to show list of all processes that were initiated by the current user. Uses the Report Generator to generate the report.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

variableCopiedFrom

public void variableCopiedFrom(Properties parameters,
                               Locale locale,
                               OutputStream os)
                        throws WTException
Print the variable name that initializes this variable if one exists; print an empty string otherwise. Note that it does not make sense to get these variables from a block (either instantiated or not) or a robot (either instantiated or not), only from activities, ad hoc activities, and subprocesses (each of these either instantiated or not).

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

variableCopiedTo

public void variableCopiedTo(Properties parameters,
                             Locale locale,
                             OutputStream os)
                      throws WTException
Print the variable names (in a comma-separated list) that get their value from this variable if any exist; print an empty string otherwise.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

variableDefaultValue

public void variableDefaultValue(Properties parameters,
                                 Locale locale,
                                 OutputStream os)
                          throws WTException
Print the default value of the variable.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

variableIsMutable

public void variableIsMutable(Properties parameters,
                              Locale locale,
                              OutputStream os)
                       throws WTException
Print whether the variable is mutable (modifiable) or not.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

variableIsRequired

public void variableIsRequired(Properties parameters,
                               Locale locale,
                               OutputStream os)
                        throws WTException
Print whether the variable is required or not.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

variableIsResettable

public void variableIsResettable(Properties parameters,
                                 Locale locale,
                                 OutputStream os)
                          throws WTException
Print whether the variable is resettable (able to be reset to the default value) or not.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

variableIsVisible

public void variableIsVisible(Properties parameters,
                              Locale locale,
                              OutputStream os)
                       throws WTException
Print whether the variable is visible or not.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

variableName

public void variableName(Properties parameters,
                         Locale locale,
                         OutputStream os)
                  throws WTException
Print the name of the variable.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

variableDisplayName

public void variableDisplayName(Properties parameters,
                                Locale locale,
                                OutputStream os)
                         throws WTException
Print the displayName of the variable.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

variableType

public void variableType(Properties parameters,
                         Locale locale,
                         OutputStream os)
                  throws WTException
Print the type of the variable.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

variableValue

public void variableValue(Properties parameters,
                          Locale locale,
                          OutputStream os)
                   throws WTException
Print the value of the variable.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

worklistLink

public void worklistLink(Properties parameters,
                         Locale locale,
                         OutputStream os)
                  throws WTException
Print URL link to the worklist.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

activityTripCount

public void activityTripCount(Properties parameters,
                              Locale locale,
                              OutputStream os)
                       throws WTException
Print the trip count for this activity.

Parameters:
parameters - The arguments that were passed to the Windchill script call.
locale - The Locale to send to the invoked methods for localization.
os - The output stream.
Throws:
WTException

getActivityInfoTemplate

HTMLTemplate getActivityInfoTemplate()

getActivityRoleInfoTemplate

HTMLTemplate getActivityRoleInfoTemplate()

getUnstartedActivityInfoTemplate

HTMLTemplate getUnstartedActivityInfoTemplate()

myOUT

private void myOUT(String methodname,
                   String output)
Used for debugging