zoukankan      html  css  js  c++  java
  • 得到工作流结点列表

    没什么技术含量,一个递归,过几天写一个可以将工作流节点以图形方式显示出来的例,这样就可以用在WEB页上了
    Public Sub 列结点()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


    '调用

     列结点(当前操作的实例.GetWorkflowDefinition()) 
  • 相关阅读:
    CentOS/Linux安装VNCserver
    vncserver的安装和使用
    linux下常用FTP命令 1. 连接ftp服务器
    linux下安装dovecot
    教你如何架设linux邮件服务器postfix
    vim打开文件时显示行号
    VirtualBox 配置虚拟网卡(桥接),实现主机-虚拟机网络互通
    Linux文件权限详解
    虚拟机下CentOS 6.5配置IP地址的三种方法
    Linux基础知识之man手册的使用
  • 原文地址:https://www.cnblogs.com/foundation/p/529172.html
Copyright © 2011-2022 走看看