|
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)
Syntaxpublic static IEdmTransition5 GetWorkflowTransition(
IEdmWorkflow6 workflow,
string workflowTransitionName,
int workflowTransitionID = -2147483648
)
Public Shared Function GetWorkflowTransition (
workflow As IEdmWorkflow6,
workflowTransitionName As String,
Optional workflowTransitionID As Integer = -2147483648
) As IEdmTransition5
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:
IEdmTransition5IEdmTransition5 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