com.ptc.windchill.uwgm.cadx.setstate
Class SetStateTaskSubmitHelper

java.lang.Object
  extended bycom.ptc.windchill.uwgm.cadx.setstate.SetStateTaskSubmitHelper
All Implemented Interfaces:
JSTableTaskSubmitHelper

public class SetStateTaskSubmitHelper
extends Object
implements JSTableTaskSubmitHelper

Factory that is based on the ApplicationContextServices service. It uses a context String and a Context Class to decide what JSTableTaskSubmitHelper subclass to use. The context String and the Context Class relate to an entry in service.properties(or another properties file with the same syntax) in the following way :

wt.services/svc/default/com.ptc.core.htmlcomp.jstable.JSTableTaskSubmitHelper// java.lang.Object/0=/duplicate The duplicate keyword should always be used The MUST have a no argument constructor.

A concrete example of such an entry is wt.services/svc/default/com.ptc.core.htmlcomp.jstable.JSTableTaskSubmitHelper/DeleteWSTaskSubmitHelper/java.lang.Object/0=com.ptc.windchill.uwgm.task.DeleteWorkspaceSubmitHelper/duplicate

Supported API: false

Extendable: false


Constructor Summary
SetStateTaskSubmitHelper()
           
 
Method Summary
 void renderTaskJSCode(Properties formData, Task task, TaskResult result, PrintWriter out, Locale locale)
           
 void setAdditionalTaskObjectAttributes(String taskid, Properties parameters, Properties formData, Locale locale, DefaultTaskObject td)
           
 void setTaskAttributes(String taskid, Properties parameters, Properties formData, Locale locale, DefaultTaskData td)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetStateTaskSubmitHelper

public SetStateTaskSubmitHelper()
Method Detail

setTaskAttributes

public void setTaskAttributes(String taskid,
                              Properties parameters,
                              Properties formData,
                              Locale locale,
                              DefaultTaskData td)
                       throws WTException
Specified by:
setTaskAttributes in interface JSTableTaskSubmitHelper
Throws:
WTException

setAdditionalTaskObjectAttributes

public void setAdditionalTaskObjectAttributes(String taskid,
                                              Properties parameters,
                                              Properties formData,
                                              Locale locale,
                                              DefaultTaskObject td)
                                       throws WTException
Specified by:
setAdditionalTaskObjectAttributes in interface JSTableTaskSubmitHelper
Throws:
WTException

renderTaskJSCode

public void renderTaskJSCode(Properties formData,
                             Task task,
                             TaskResult result,
                             PrintWriter out,
                             Locale locale)
                      throws WTException
Specified by:
renderTaskJSCode in interface JSTableTaskSubmitHelper
Throws:
WTException