调用dcom服务
地址:10.35.2.20 端口:211 名称:CoPWFAgentSrv.CoPWFAgent
发放:
function StartWorkFlowWithInstID(p_WFMDID, p_UserID, p_InstID: Integer;var p_ActInstID: OleVariant): WordBool; 
p_WFMDID 工作流模板ID为:736

p_UserID 启动流程者的用户ID:取user_id( select t1.user_id,t1.user_name from PM_AC_USERS t1 , PM_AC_ROLEUSERS t2 where t1.user_id=t2.user_id and t2.role_id='465');
程序需要根据用户名(user_name)写入user_id。(465为调度处员工角色)p_InstID 已有信封对象ID:取第一步骤第(1)步所取的inst_id

p_ActInstID 启动后的开始活动实例ID:作为返回值,随便输入一个空变量
上面是要用的条件,请各位前辈指点!写一下代码!或者书写的步骤,谢谢!