com.ptc.refimpl.co.computedvalues
Class DefaultLocationFieldComputedValue
java.lang.Object
com.ptc.core.ca.co.client.doer.function.CoSimpleFunction_Model_Param
com.ptc.refimpl.co.computedvalues.DefaultLocationFieldComputedValue
- All Implemented Interfaces:
- CoComputedValue, CoFunction_Model_Param, CoModelTaskComputedValue
- public class DefaultLocationFieldComputedValue
- extends CoSimpleFunction_Model_Param
- implements CoModelTaskComputedValue
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultLocationFieldComputedValue
public DefaultLocationFieldComputedValue()
computeValues
public List computeValues(CoConfigFeature taskParameter,
CoConfigFeature modelDoerConfig,
CoSimpleModelHandlerData execData)
throws WTException
- This sample looks into the configuration information to find the
default location. The algorithm used in this sample is to hunt down
the TI. Future versions of CoInstanceCache will let us get the TI directly
instead we have to hunt for it. If an active TI is found, we pull its folder
attribute out. If no active TI is found, we get the personal folder, and
use that as the locationField attribute.
- Specified by:
computeValues
in interface CoModelTaskComputedValue
- Parameters:
taskParameter
- This is the value of the name attribute in the <TaskParameter>
tag.
This should not be returned to the framework.modelDoerConfig
- The CoConfigFeature of the <ModelDoer>
tag. You may call CoConfigFeature.getParent
repeatedly to get the entire XML context that this tag lives in.execData
- See the Documentation for the rich set of information available to you in this data structure.
- Returns:
- List
- Throws:
WTException
addInputParameters
public void addInputParameters(CoTaskData taskData,
CoConfigFeature parameterConfig,
CoSimpleModelHandlerData execData)
throws WTException
- Description copied from class:
CoSimpleFunction_Model_Param
Supported API: false
- Specified by:
addInputParameters
in class CoSimpleFunction_Model_Param
- Parameters:
taskData
- parameterConfig
- execData
-
- Throws:
WTException
computePersonalFolderPath
private String computePersonalFolderPath()
throws WTException
- Throws:
WTException
computePersonalFolderPath
private String computePersonalFolderPath(CoTaskData taskData)
throws WTException
- Throws:
WTException