Click or drag to resize

EdmObjectFactoryGetWorkflowTransition Method

Returns the workflow transition object from the specified workflow transition name or id.

Namespace:  CADSharpTools.Testing
Assembly:  CADSharpTools.PDM (in CADSharpTools.PDM.dll) Version: 1.4.16.0 (1.4.16)
Syntax
public static IEdmTransition5 GetWorkflowTransition(
	IEdmWorkflow6 workflow,
	string workflowTransitionName,
	int workflowTransitionID = -2147483648
)

Parameters

workflow
Type: IEdmWorkflow6
workflow object.
workflowTransitionName
Type: SystemString
Name of the workflow transition.
workflowTransitionID (Optional)
Type: SystemInt32
ID of the workflow transition.

Return Value

Type: IEdmTransition5
IEdmTransition5 object
Remarks
  • Use the workflow transition id instead of the workflow transition name if there are multiple workflow transitions with the same name.
  • The parameter workflowTransitionID takes precedence over the workflowTransitionName.
  • When workflowTransitionName is specified, the method will return the first workflow transition with matching name.
See Also