Public Sub 列结点(ByVal obj As Object)
If TypeOf obj Is Workflow.ComponentModel.CompositeActivity Then
Dim wxd As Workflow.ComponentModel.CompositeActivity
wxd = CType(obj, Workflow.ComponentModel.CompositeActivity)
Dim s As String
s = String.Format("说明:{0},名称:{1},类型:{2}", wxd.Description, wxd.QualifiedName, wxd.GetType.ToString)
Console.WriteLine(s)
For Each temp As Object In wxd.Activities
列结点(temp)
Next
Else
If TypeOf obj Is Workflow.ComponentModel.Activity Then
Dim wxd As Workflow.ComponentModel.Activity
wxd = CType(obj, Workflow.ComponentModel.Activity)
Dim s As String
s = String.Format("说明:{0},名称:{1},类型:{2}", wxd.Description, wxd.QualifiedName, wxd.GetType.ToString)
Console.WriteLine(s)
End If
End If
End Sub
调用If TypeOf obj Is Workflow.ComponentModel.CompositeActivity Then
Dim wxd As Workflow.ComponentModel.CompositeActivity
wxd = CType(obj, Workflow.ComponentModel.CompositeActivity)
Dim s As String
s = String.Format("说明:{0},名称:{1},类型:{2}", wxd.Description, wxd.QualifiedName, wxd.GetType.ToString)
Console.WriteLine(s)
For Each temp As Object In wxd.Activities
列结点(temp)
Next
Else
If TypeOf obj Is Workflow.ComponentModel.Activity Then
Dim wxd As Workflow.ComponentModel.Activity
wxd = CType(obj, Workflow.ComponentModel.Activity)
Dim s As String
s = String.Format("说明:{0},名称:{1},类型:{2}", wxd.Description, wxd.QualifiedName, wxd.GetType.ToString)
Console.WriteLine(s)
End If
End If
End Sub
列结点(当前操作的实例.GetWorkflowDefinition())