Package wt.lifecycle
Class StateProcessorService
java.lang.Object
wt.lifecycle.StateProcessorService
- All Implemented Interfaces:
Externalizable,Serializable,ContextHolder,ProcessorService
When executed from a class that extends BasicTemplateProcessor, these
script call can be invoked by using the 'useProcessorService service
= ' html template entry.
Supported API: true
Extendable: false
-
Field Summary
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, STATUSFields inherited from interface wt.templateutil.processor.ProcessorService
STATE -
Method Summary
Modifier and TypeMethodDescriptionvoidgetAtGateLabel(Properties parameters, Locale locale, OutputStream os) If the context object is life cycle managed, return the 'Awaiting Promotion' label (configurable via the life cycle resource bundle).Gets the value of the attribute: contextAction; Context Action is the name of the action of the current page
Supported API: trueGets the value of the attribute: contextClassName; Context Object Name is the name of the class of the current page
Supported API: trueGets the value of the attribute: contextObj; Context Object is the reference object of the current page
Supported API: trueGets the value of the attribute: contextProperties.Gets the value of the attribute: formData; Form Data is the data present in the form of the current HTML page.voidgetHistoryLink(Properties parameters, Locale locale, OutputStream os) If the context object is life cycle managed, return a link to the life cycle history page.voidgetLifeCycleLabel(Properties parameters, Locale locale, OutputStream os) If the context object is lifecycle managed, get the 'Life Cycle' label (configurable via the life cycle resource bundle).voidgetObjProp(Properties parameters, Locale locale, OutputStream os) Provides the getLifeCycleLabel, getTemplateNameLink, getStatesLink, and getHistoryLink all in one script call.voidgetObjPropBrief(Properties parameters, Locale locale, OutputStream os) Provides the getLifeCycleLabel, getTemplateNameLink, getStateLabel and getStateLink all in one script call.voidgetObjPropVerbose(Properties parameters, Locale locale, OutputStream os) Provides the getLifeCycleLabel, getTemplateNameLink, getStatesLabel, getAtGateLabel, and isAtGate all in one script call.Gets the value of the attribute: queryData; Query Data is the information present after the "?" mark on the URL of the current page.Gets the value of the attribute: responseExceptions.Gets the value of the attribute: responseFooters.Gets the value of the attribute: responseHeaders.Gets the value of the attribute: responseMessages.Gets the value of the attribute: responseString.getState()Gets the object for the association that plays role: theState.voidgetState(Properties parameters, Locale locale, OutputStream os) If the context object is lifecycle managed, return the state of the LifeCycle Managed object.voidgetStateLabel(Properties parameters, Locale locale, OutputStream os) If the context object is lifecycle managed, return the 'State:' label (configurable in the life cycle resource bundle).voidgetStateLink(Properties parameters, Locale locale, OutputStream os) If the context object is lifecycle managed, return the state of the LifeCycle Managed object as a hyperlink to the ProcessManager.voidgetStates(Properties parameters, Locale locale, OutputStream os) If the context object is lifecycle managed, return the states of the LifeCycle Managed object.voidgetStatesLabel(Properties parameters, Locale locale, OutputStream os) If the context object is lifecycle managed, return the 'States:" label (configurable in the life cycle resource bundle)
Supported API: truevoidgetStatesLink(Properties parameters, Locale locale, OutputStream os) If the context object is lifecycle managed, return the states of the LifeCycle Managed object.intGets the value of the attribute: status.voidgetTemplateName(Properties parameters, Locale locale, OutputStream os) If the object is life cycle managed, return the name of the life cycle template.voidgetTemplateNameLink(Properties parameters, Locale locale, OutputStream os) If the context object is life cycle managed, return the name of the life cycle template as a hyperlink to viewing the life cycle.voidisAtGate(Properties parameters, Locale locale, OutputStream os) If the context object is life cycle managed, return the 'isAtGate' value in a yes/no format (configurable via the life cycle resource bundle).voidsetContextAction(String a_ContextAction) Sets the value of the attribute: contextAction; Context Action is the name of the action of the current page
Supported API: truevoidsetContextClassName(String a_ContextClassName) Sets the value of the attribute: contextClassName; Context Object Name is the name of the class of the current page
Supported API: truevoidsetContextObj(Object a_ContextObj) Sets the value of the attribute: contextObj; Context Object is the reference object of the current page
Supported API: truevoidsetContextProperties(Properties a_ContextProperties) Sets the value of the attribute: contextProperties.voidsetFormData(Properties a_FormData) Sets the value of the attribute: formData; Form Data is the data present in the form of the current HTML page.voidsetQueryData(Properties a_QueryData) Sets the value of the attribute: queryData; Query Data is the information present after the "?" mark on the URL of the current page.voidsetResponseExceptions(Vector a_ResponseExceptions) Sets the value of the attribute: responseExceptions.voidsetResponseFooters(Vector a_ResponseFooters) Sets the value of the attribute: responseFooters.voidsetResponseHeaders(Vector a_ResponseHeaders) Sets the value of the attribute: responseHeaders.voidsetResponseMessages(Vector a_ResponseMessages) Sets the value of the attribute: responseMessages.voidsetResponseString(String a_ResponseString) Sets the value of the attribute: responseString.voidSets the object for the association that plays role: theState.voidsetStatus(int a_Status) Sets the value of the attribute: status.
-
Method Details
-
getStateLabel
If the context object is lifecycle managed, return the 'State:' label (configurable in the life cycle resource bundle).
Supported API: true- Parameters:
parameters- the arguments that were passed to the Windchill script calllocale- the Locale to send to the invoked methods for localizationos- the output stream
-
getState
If the context object is lifecycle managed, return the state of the LifeCycle Managed object.
Supported API: true- Parameters:
parameters- the arguments that were passed to the Windchill script calllocale- the Locale to send to the invoked methods for localizationos- the output stream
-
getStateLink
If the context object is lifecycle managed, return the state of the LifeCycle Managed object as a hyperlink to the ProcessManager. If the context action is 'ProcessManager', the equivalent of the 'getState' will be returned. If the object is in the phase and there is is a workflow associated with the phase, the link will reference that workflow. If the object is at the gate and there is a workflow associated with the gate, the link will reference that workflow. If there is no associated workflow, the equivalent of the 'getState' will be returned.
Supported API: true- Parameters:
parameters- the arguments that were passed to the Windchill script calllocale- the Locale to send to the invoked methods for localizationos- the output stream
-
getStatesLabel
If the context object is lifecycle managed, return the 'States:" label (configurable in the life cycle resource bundle)
Supported API: true- Parameters:
parameters- the arguments that were passed to the Windchill script calllocale- the Locale to send to the invoked methods for localizationos- the output stream
-
getStates
If the context object is lifecycle managed, return the states of the LifeCycle Managed object. The current state is highlighted (configurable in the life cycle resource bundle). The seperator between the states is configurable via the life cycle resource bundle. If the object is in a dropped state, that state will be appended to the end of the string.
Supported API: true- Parameters:
parameters- the arguments that were passed to the Windchill script calllocale- the Locale to send to the invoked methods for localizationos- the output stream
-
getStatesLink
If the context object is lifecycle managed, return the states of the LifeCycle Managed object. The current state is shown as a hyperlink to the ProcessManager. If the context action is 'ProcessManager', the equivalent of 'getStates' will be returned. If the object is in the phase and there is is a workflow associated with the phase, the link will reference that workflow. If the object is at the gate and there is a workflow associated with the gate, the link will reference that workflow. If there is no associated workflow, the equivalent of the 'getStates' will be returned.
Supported API: true- Parameters:
parameters- the arguments that were passed to the Windchill script calllocale- the Locale to send to the invoked methods for localizationos- the output stream
-
getLifeCycleLabel
If the context object is lifecycle managed, get the 'Life Cycle' label (configurable via the life cycle resource bundle).
Supported API: true- Parameters:
parameters- the arguments that were passed to the Windchill script calllocale- the Locale to send to the invoked methods for localizationos- the output stream
-
getTemplateName
If the object is life cycle managed, return the name of the life cycle template.
Supported API: true- Parameters:
parameters- the arguments that were passed to the Windchill script calllocale- the Locale to send to the invoked methods for localizationos- the output stream
-
getTemplateNameLink
If the context object is life cycle managed, return the name of the life cycle template as a hyperlink to viewing the life cycle.
Supported API: true- Parameters:
parameters- the arguments that were passed to the Windchill script calllocale- the Locale to send to the invoked methods for localizationos- the output stream
-
getAtGateLabel
If the context object is life cycle managed, return the 'Awaiting Promotion' label (configurable via the life cycle resource bundle).
Supported API: true- Parameters:
parameters- the arguments that were passed to the Windchill script calllocale- the Locale to send to the invoked methods for localizationos- the output stream
-
isAtGate
If the context object is life cycle managed, return the 'isAtGate' value in a yes/no format (configurable via the life cycle resource bundle).
Supported API: true- Parameters:
parameters- the arguments that were passed to the Windchill script calllocale- the Locale to send to the invoked methods for localizationos- the output stream
-
getHistoryLink
If the context object is life cycle managed, return a link to the life cycle history page. The name of the link is configurable via the life cycle resource bundle. If the context action is 'lchistory' return nothing. This is done to eliminate the display of a link to the same page the user is currently on.
Supported API: true- Parameters:
parameters- the arguments that were passed to the Windchill script calllocale- the Locale to send to the invoked methods for localizationos- the output stream
-
getObjPropBrief
Provides the getLifeCycleLabel, getTemplateNameLink, getStateLabel and getStateLink all in one script call.
Supported API: true- Parameters:
parameters- the arguments that were passed to the Windchill script calllocale- the Locale to send to the invoked methods for localizationos- the output stream
-
getObjProp
Provides the getLifeCycleLabel, getTemplateNameLink, getStatesLink, and getHistoryLink all in one script call.
Supported API: true- Parameters:
parameters- the arguments that were passed to the Windchill script calllocale- the Locale to send to the invoked methods for localizationos- the output stream
-
getObjPropVerbose
Provides the getLifeCycleLabel, getTemplateNameLink, getStatesLabel, getAtGateLabel, and isAtGate all in one script call.
Supported API: true- Parameters:
parameters- the arguments that were passed to the Windchill script calllocale- the Locale to send to the invoked methods for localizationos- the output stream
-
getState
Gets the object for the association that plays role: theState.
Supported API: true- Specified by:
getStatein interfaceProcessorService- Returns:
- HTTPState
-
setState
Sets the object for the association that plays role: theState.
Supported API: true- Specified by:
setStatein interfaceProcessorService- Parameters:
a_State-
-
getContextAction
Gets the value of the attribute: contextAction; Context Action is the name of the action of the current page
Supported API: true- Specified by:
getContextActionin interfaceContextHolder- Returns:
- String
-
setContextAction
Sets the value of the attribute: contextAction; Context Action is the name of the action of the current page
Supported API: true- Specified by:
setContextActionin interfaceContextHolder- Parameters:
a_ContextAction-
-
getContextObj
Gets the value of the attribute: contextObj; Context Object is the reference object of the current page
Supported API: true- Specified by:
getContextObjin interfaceContextHolder- Returns:
- Object
-
setContextObj
Sets the value of the attribute: contextObj; Context Object is the reference object of the current page
Supported API: true- Specified by:
setContextObjin interfaceContextHolder- Parameters:
a_ContextObj-
-
getContextClassName
Gets the value of the attribute: contextClassName; Context Object Name is the name of the class of the current page
Supported API: true- Specified by:
getContextClassNamein interfaceContextHolder- Returns:
- String
-
setContextClassName
Sets the value of the attribute: contextClassName; Context Object Name is the name of the class of the current page
Supported API: true- Specified by:
setContextClassNamein interfaceContextHolder- Parameters:
a_ContextClassName-
-
getContextProperties
Gets the value of the attribute: contextProperties.
Supported API: true- Specified by:
getContextPropertiesin interfaceContextHolder- Returns:
- Properties
-
setContextProperties
Sets the value of the attribute: contextProperties.
Supported API: true- Specified by:
setContextPropertiesin interfaceContextHolder- Parameters:
a_ContextProperties-
-
getResponseExceptions
Gets the value of the attribute: responseExceptions.
Supported API: true- Specified by:
getResponseExceptionsin interfaceContextHolder- Returns:
- Vector
-
setResponseExceptions
Sets the value of the attribute: responseExceptions.
Supported API: true- Specified by:
setResponseExceptionsin interfaceContextHolder- Parameters:
a_ResponseExceptions-
-
getResponseHeaders
Gets the value of the attribute: responseHeaders.
Supported API: true- Specified by:
getResponseHeadersin interfaceContextHolder- Returns:
- Vector
-
setResponseHeaders
Sets the value of the attribute: responseHeaders.
Supported API: true- Specified by:
setResponseHeadersin interfaceContextHolder- Parameters:
a_ResponseHeaders-
-
getResponseMessages
Gets the value of the attribute: responseMessages.
Supported API: true- Specified by:
getResponseMessagesin interfaceContextHolder- Returns:
- Vector
-
setResponseMessages
Sets the value of the attribute: responseMessages.
Supported API: true- Specified by:
setResponseMessagesin interfaceContextHolder- Parameters:
a_ResponseMessages-
-
getResponseString
Gets the value of the attribute: responseString.
Supported API: true- Specified by:
getResponseStringin interfaceContextHolder- Returns:
- String
-
setResponseString
Sets the value of the attribute: responseString.
Supported API: true- Specified by:
setResponseStringin interfaceContextHolder- Parameters:
a_ResponseString-
-
getStatus
public int getStatus()Gets the value of the attribute: status.
Supported API: true- Specified by:
getStatusin interfaceContextHolder- Returns:
- int
-
setStatus
public void setStatus(int a_Status) Sets the value of the attribute: status.
Supported API: true- Specified by:
setStatusin interfaceContextHolder- Parameters:
a_Status-
-
getFormData
Gets the value of the attribute: formData; Form Data is the data present in the form of the current HTML page.
Supported API: true- Specified by:
getFormDatain interfaceContextHolder- Returns:
- Properties
-
setFormData
Sets the value of the attribute: formData; Form Data is the data present in the form of the current HTML page.
Supported API: true- Specified by:
setFormDatain interfaceContextHolder- Parameters:
a_FormData-
-
getQueryData
Gets the value of the attribute: queryData; Query Data is the information present after the "?" mark on the URL of the current page.
Supported API: true- Specified by:
getQueryDatain interfaceContextHolder- Returns:
- Properties
-
setQueryData
Sets the value of the attribute: queryData; Query Data is the information present after the "?" mark on the URL of the current page.
Supported API: true- Specified by:
setQueryDatain interfaceContextHolder- Parameters:
a_QueryData-
-