Customizing Operator Advisor > Services in Operator Advisor > Work Definition Management Thing Shape Services
Work Definition Management Thing Shape Services
The following services are found on the work definition management Thing Shape (PTC.SCA.SCO.WorkDefinitionManagementThingShape):
Creation Services
* 
When creating any object that is part of the Operator Advisor data model, the UID value is automatically generated by the system. Any value you enter in the UID field is ignored.
CreateWorkDefinitionControlCharacteristicResponses—Creates one or more work definition control characteristic responses based on information added to the WorkDefinitionControlCharacteristicResponses input parameter table. Returns the list of work definition control characteristic responses that were created, along with their UIDs.
Input parameters: WorkDefinitionControlCharacteristicResponses (INFOTABLE)
Output: result (INFOTABLE)
CreateWorkDefinitionControlCharacteristics—Creates one or more work definition control characteristics based on information added to the WorkDefinitionControlCharacteristics input parameter table. Returns the list of work definition control characteristics that were created, along with their UIDs.
Input parameters: WorkDefinitionControlCharacteristics (INFOTABLE)
Output: result (INFOTABLE)
CreateWorkDefinitionIllustrations—Creates one or more work definition illustrations based on information added to the WorkDefinitionIllustrations input parameter table. Returns the list of work definition illustrations that were created, along with their UIDs.
Input parameters: WorkDefinitionIllustrations (INFOTABLE)
Output: result (INFOTABLE)
CreateWorkDefinitionLinks—Creates one or more work definition links based on information added to the WorkDefinitionLinks input parameter table. Returns the list of work definition links that were created, along with their UIDs.
Input parameters: WorkDefinitionLinks (INFOTABLE)
Output: result (INFOTABLE)
CreateWorkDefinitionMaterialSpecificationInstances—Creates one or more work definition material specification instances based on information added to the WorkDefinitionMaterialSpecificationInstances input parameter table. Returns the list of work definition material specification instances that were created, along with their UIDs.
Input parameters: WorkDefinitionMaterialSpecificationInstances (INFOTABLE)
Output: result (INFOTABLE)
CreateWorkDefinitionMaterialSpecificationLinks—Creates links based on information added to the WorkDefinitionMaterialSpecificationLinks input parameter table. Returns the list of work definition material specification links that were created, along with their UIDs.
Input parameters: WorkDefinitionMaterialSpecificationLinks (INFOTABLE)
Output: result (INFOTABLE)
CreateWorkDefinitionMaterialSpecifications—Creates one or more work definition material specifications based on information added to the WorkDefinitionMaterialSpecifications input parameter table. Returns the list of work definition material specifications that were created, along with their UIDs.
Input parameters: WorkDefinitionMaterialSpecifications (INFOTABLE)
Output: result (INFOTABLE)
CreateWorkDefinitionPersonnelSpecifications—Creates one or more work definition personnel specifications based on information added to the WorkDefinitionPersonnelSpecifications input parameter table. Returns the list of work definition personnel specifications that were created, along with their UIDs.
Input parameters: WorkDefinitionPersonnelSpecifications (INFOTABLE)
Output: result (INFOTABLE)
CreateWorkDefinitionProcessingResourceSpecifications—Creates one or more work definition processing resource specifications based on information added to the WorkDefinitionProcessingResourceSpecifications input parameter table. Returns the list of work definition processing resource specifications that were created, along with their UIDs.
Input parameters: WorkDefinitionProcessingResourceSpecifications (INFOTABLE)
Output: result (INFOTABLE)
CreateWorkDefinitionRelatedDocuments—Creates one or more work definition-related documents based on information added to the WorkDefinitionRelatedDocuments input parameter table. Returns the list of work definition-related documents that were created, along with their UIDs.
Input parameters: WorkDefinitionRelatedDocuments (INFOTABLE)
Output: result (INFOTABLE)
CreateWorkDefinitions—Creates one or more work definitions based on information added to the WorkDefinitions input parameter table. Returns the list of work definitions that were created, along with their UIDs.
Input parameters: WorkDefinitions (INFOTABLE)
Output: result (INFOTABLE)
Deletion Services
DeleteWorkDefinition—Deletes the work definition with the specified UID.
Input parameters: UID (String)
Output: result (INFOTABLE)
DeleteWorkDefinitionControlCharacteristic—Deletes the work definition control characteristic with the specified UID.
Input parameters: UID (String)
Output: result (INFOTABLE)
DeleteWorkDefinitionControlCharacteristicResponse—Deletes the work definition control characteristic response with the specified UID.
Input parameters: UID (String)
Output: result (INFOTABLE)
DeleteWorkDefinitionIllustration—Deletes the work definition illustration with the specified UID.
Input parameters: UID (String)
Output: result (INFOTABLE)
DeleteWorkDefinitionLink—Deletes the work definition link with the specified UID.
Input parameters: UID (String)
Output: result (INFOTABLE)
DeleteWorkDefinitionMaterialSpecification—Deletes the work definition material specification with the specified UID.
Input parameters: UID (String)
Output: result (INFOTABLE)
DeleteWorkDefinitionMaterialSpecificationInstance—Deletes the work definition material specification instance with the specified UID.
Input parameters: UID (String)
Output: result (INFOTABLE)
DeleteWorkDefinitionMaterialSpecificationLink—Deletes the work definition material specification links with the specified UID.
Input parameters: UID (String)
Output: result (INFOTABLE)
DeleteWorkDefinitionPersonnelSpecification—Deletes the work definition personnel specification with the specified UID.
Input parameters: UID (String)
Output: result (INFOTABLE)
DeleteWorkDefinitionProcessingResourceSpecification—Deletes the work definition processing resource specification with the specified UID.
Input parameters: UID (String)
Output: result (INFOTABLE)
DeleteWorkDefinitionReleatedDocument—Deletes the work definition-related document with the specified UID.
Input parameters: UID (String)
Output: result (INFOTABLE)
Read Services
GetWorkDefinition—Retrieves the work definition with the specified UID.
Input parameters: UID (String)
Output: result (INFOTABLE)
GetWorkDefinitionControlCharacteristicResponses—Retrieves a list of all work definition control characteristic responses associated to the work definition control characteristic with the specified UID.
Input parameters: WorkDefinitionControlCharacteristicUID (String)
Output: result (INFOTABLEPTC.SCA.SCO.WorkDefinitionControlCharacteristicResponse Data Shape)
GetWorkDefinitionControlCharacteristics—Retrieves a list of all work definition control characteristics associated to the work definition with the specified UID.
Input parameters: WorkDefinitionUID (String)
Output: result (INFOTABLE)
GetWorkDefinitionExecutionLog—Retrieves execution status change log for the specified work definition.
Input parameters:
WorkDefinitionUID (String)
Output: An infotable of the PTC.SCA.SCO.WorkDefinitionExecutionStatusHistory Data Shape (INFOTABLE); format:
"TimeStamp", "StateUID", "StateName", "UserName"
GetWorkDefinitionExecutionSummary—Retrieves the execution status summary for the specified work definition with the total time spent in every execution state in seconds. The current state time is calculated only if the specified inclusion flag is 'true'.
Input parameters:
WorkDefinitionUID (String)
IncludeCurrentStatus (Boolean)—Defaults to false.
Output: An infotable of the PTC.SCA.SCO.WorkDefinitionExecutionStatusSummary Data Shape (INFOTABLE); format:
"StateUID", "StateName", "TotalTime"
GetWorkDefinitionIllustrations—Retrieves a list of all work definition illustrations with the specified work definition UID.
Input parameters: WorkDefinitionUID (String)
Output: An infotable of the PTC.SCA.SCO.WorkDefinitioExecutionStatusHistory Data Shape (INFOTABLE); format:
"TimeStamp", "StateUID", "StateName", "UserName"
GetWorkDefinitionLinks—Retrieves a list of all work definition links with the specified parent UID.
Input parameters: ParentUID (String)
Output: result (INFOTABLE)
GetWorkDefinitionMaterialSpecification—Retrieves the work definition material specification with the specified UID.
Input parameters: UID (String)
Output: result (INFOTABLE)
GetWorkDefinitionMaterialSpecificationInstance—Retrieves the work definition material specification instance with the specified UID.
Input parameters: UID (String)
Output: result (INFOTABLE)
GetWorkDefinitionMaterialSpecificationInstances—Retrieves a list of all work definition material specification instances with the specified work definition material specification UID.
Input parameters: WorkDefinitionMaterialSpecificationUID (String)
Output: result (INFOTABLE)
GetWorkDefinitionMaterialSpecificationLinks—Retrieves a list of all work definition material specification links with the specified parent UID.
Input parameters: ParentUID (String)
Output: result (INFOTABLE)
GetWorkDefinitionMaterialSpecifications—Retrieves a list of all work definition material specifications with the specified work definition UID.
Input parameters: WorkDefinitionUID (String)
Output: result (INFOTABLE)
GetWorkDefinitionPersonnelSpecifications—Retrieves a list of all work definition personnel specifications with the specified work definition UID.
Input parameters: WorkDefinitionUID (String)
Output: result (INFOTABLE)
GetWorkDefinitionProcessingResourceSpecifications—Retrieves a list of all work definition processing resource specifications with the specified work definition UID.
Input parameters: WorkDefinitionUID (String)
Output: result (INFOTABLE)
GetWorkDefinitionRelatedDocuments—Retrieves a list of all work definition-related documents with the specified work definition UID.
Input parameters: WorkDefinitionUID (String)
Output: result (INFOTABLE)
GetWorkDefinitionThumbnail—Retrieves the thumbnail image related to the specified work definition UID.
Input parameters: WorkDefinitionUID (String)
Output: result (INFOTABLE)
Update Services
UpdateWorkDefinitionControlCharacteristicResponses—Updates one or more work definition control characteristic responses by UID, using the information added to the WorkDefinitionControlCharacteristicResponses input parameter table. Returns the list of work definition control characteristic responses that were updated.
Input parameters: WorkDefinitionControlCharacteristicResponses (INFOTABLEPTC.SCA.SCO.WorkDefinitionControlCharacteristicResponse Data Shape)
Output: result (INFOTABLE)
UpdateWorkDefinitionControlCharacteristics—Updates one or more work definition control characteristics by UID, using the information added to the WorkDefinitionControlCharacteristics input parameter table. Returns the list of work definition control characteristics that were updated.
Input parameters: WorkDefinitionControlCharacteristics (INFOTABLE)
Output: result (INFOTABLE)
UpdateWorkDefinitionIllustrations—Updates one or more work definition illustrations by UID, using the information added to the WorkDefinitionIllustrations input parameter table. Returns the list of work definition illustrations that were updated.
Input parameters: WorkDefinitionIllustrations (INFOTABLE)
Output: result (INFOTABLE)
UpdateWorkDefinitionLinks—Updates one or more work definition links by UID, using the information added to the WorkDefinitionLinks input parameter table. Returns the list of work definition links that were updated.
Input parameters: WorkDefinitionLinks (INFOTABLE)
Output: result (INFOTABLE)
UpdateWorkDefinitionMaterialSpecificationInstances—Updates one or more work definition material specification instances by UID, using the information added to the WorkDefinitionMaterialSpecificationInstances input parameter table. Returns the list of work definition material specification instances that were updated.
Input parameters: WorkDefinitionMaterialSpecificationInstances (INFOTABLE)
Output: result (INFOTABLE)
UpdateWorkDefinitionMaterialSpecificationLinks—Updates one or more work definition material specification links by UID, using the information added to the WorkDefinitionMaterialSpecificationLinks input parameter table. Returns the list of work definition material specification links that were updated.
Input parameters: WorkDefinitionMaterialSpecificationLinks (INFOTABLE)
Output: result (INFOTABLE)
UpdateWorkDefinitionMaterialSpecifications—Updates one or more work definition material specifications by UID, using the information added to the WorkDefinitionMaterialSpecifications input parameter table. Returns the list of work definition material specifications that were updated.
Input parameters: WorkDefinitionMaterialSpecifications (INFOTABLE)
Output: result (INFOTABLE)
UpdateWorkDefinitionPersonnelSpecifications—Updates one or more work definition personnel specifications by UID, using the information added to the WorkDefinitionPersonnelSpecifications input parameter table. Returns the list of work definition personnel specifications that were updated.
Input parameters: WorkDefinitionPersonnelSpecifications (INFOTABLE)
Output: result (INFOTABLE)
UpdateWorkDefinitionProcessingResourceSpecifications—Updates one or more work definition processing resource specifications by UID, using the information added to the WorkDefinitionProcessingResourceSpecifications input parameter table. Returns the list of work definition processing resource specifications that were updated.
Input parameters: WorkDefinitionProcessingResourceSpecifications (INFOTABLE)
Output: result (INFOTABLE)
UpdateWorkDefinitionRelatedDocuments—Updates one or more work definition-related documents by UID, using the information added to the WorkDefinitionRelatedDocuments input parameter table. Returns the list of work definition-related documents that were updated.
Input parameters: WorkDefinitionRelatedDocuments (INFOTABLE)
Output: result (INFOTABLE)
UpdateWorkDefinitions—Updates one or more work definitions by UID, using the information added to the WorkDefinitions input parameter table. Returns the list of work definitions that were updated.
Input parameters: WorkDefinitions (INFOTABLE)
Output: result (INFOTABLE)
Miscellaneous and Utility Services
GetChildren—Retrieves a list of all child entities of the specified Data Shape with the specified parent UID. Used internally by other services. Not intended for standalone use.
Input parameters:
dataShapeName (String)
ParentUID (String)
Output: result (INFOTABLE)
GetFileType—Retrieves the file type of the specified file based on the file extension. For example, a file with a .gif file extension returns a file type of 2D; a file with a .rtf file extension returns a file type of TEXT. Used internally by other services. Not intended for standalone use.
Input parameters: FileName (String)
Output: result (JSON)
GetWorkDefinitionDBInfo—Retrieves the database table information related to work definitions, such as database table column names. Used internally by other services. Not intended for standalone use.
Input parameters: No inputs
Output: result (JSON)
GetWorkDefinitionRelatedObjects—Retrieves a list of all objects of the specified Data Shape with the specified work definition UID. Used internally by other services. Not intended for standalone use.
Input parameters:
dataShapeName (String)
WorkDefinitionUID (String)
Filter (JSON)
Output: result (INFOTABLE)
Was this helpful?