Creation API

This topic describes the creation API.

This page discusses:

See Also
Workflow for Setting up the Environment for Public API to Customize Analyses
About Script Creation

createFailureModesEffectsAnalysis

createFailureModesEffectsAnalysis corresponds to the method used to create a new failure modes effects analysis.

createFailureModesEffectsAnalysis(
  name: string, 
  templateName: string, 
  templateRevision: string, 
  analyzedItem: FallibleProxyInterface, 
  context: FallibleProxyInterface | undefined
): Promise<FailureModesEffectsAnalysisProxyInterface | undefined>;
Parameters
  • name: A string that is the name of the failure modes effects analysis to create.
  • templateName: A string that is the name of the template used to create the failure modes effects analysis.
  • templateRevision: A string that is the name of the revision of the template used to create the failure modes effects analysis.
  • analyzedItem: A proxy model representing the object to be analyzed by the failure modes effects analysis to create.
  • context: A proxy model representing the context of the failure modes effects analysis to create.
Return Value
Returns a FailureModesEffectsAnalysisProxyInterface model, which is a proxy representing the created failure modes effects analysis.

createGenericAnalysis

createGenericAnalysis corresponds to the method used to create a new generic analysis.

createGenericAnalysis(
  name: string, 
  templateName: string, 
  templateRevision: string, 
  fmea: FailureModesEffectsAnalysisProxyInterface | undefined
): Promise<FailureModesEffectsAnalysisProxyInterface | undefined>;
Parameters
  • name: A string that is the name of the generic analysis to create.
  • templateName: A string that is the name of the template to be used to create the generic analysis.
  • templateRevision: A string that is the name of the revision of the template to be used to create the generic analysis.
  • fmea: A FailureModesEffectsAnalysisProxyInterface model representing the failure modes effects analysis for which the generic analysis is created.
Return Value
Returns a FailureModesEffectsAnalysisProxyInterface model, which is a proxy representing the created generic analysis.

createCausalityRelationship

createCausalityRelationship corresponds to the method used to create a new causality relationship.

createCausalityRelationship(
  fmeaProxy: FailureModesEffectsAnalysisProxyInterface
): Promise<CausalityRelationshipProxyInterface | undefined>;
Parameters
fmea: A FailureModesEffectsAnalysisProxyInterface model that represents the failure modes effects analysis that contains the created causality relationship.
Return Value
Returns a CausalityRelationshipProxyInterface model, which is a proxy representing the created causality relationship.

createFailureMode

createFailureMode corresponds to the method used to create a new failure mode.

createFailureMode(
  name: string, 
  model: FallibleProxyInterface | FallibleReferenceProxyInterface,
  failureModeTypeName?: string
): Promise<FailureModeProxyInterface | undefined>;
Parameters
  • name: A string that is the name of the failure mode to create.
  • model: A proxy model representing the object for which the failure mode is created.
Return Value
Returns a FailureModeProxy model, which is a proxy representing the created failure mode.