Lotus&Domino 手机应用专题. 流程分析

    西藏联通Lotus办公系统流程分析

    一般Lotus的流程提交都是以POST形式发送数据,发送时一般分多个步骤,每个步骤都是以Seq=1、Seq=2的形式依次下去,然后在字段中一般通过 name="__Click"字段来区分提交的动作类型,其他字段存放流程环节和经办人。

    以下是根据捕获获取到流程提交数据包,目标地址为:
    /public/worksynergicList.nsf/0/d9c8ab62c1fc679a48257af00015c46b?EditDocument&Seq=1
    其中d9c8ab62c1fc679a48257af00015c46b则为文档的唯一编号,Seq=1则是流程步骤,复杂的会多次POST。对于这样类型的流程通过MASTUDIO中间件则很轻松就完成了提交。 对于开发人员,其只要关注提交的字段,比如下面字段中userWebAction表示提交的动作,FLShowActivityNameOS表示环节拟稿,那么提交这样的流程通过MAS语句编写则为:

    // 定位到前面取的页面中的表单,修改字段pwd,然后执行提交 OBJECT wxEXPLORE bIE
    {
    bIE.Url= "http://file.xz.unicom.local/"
    bIE.Fllow= true
    OBJECT wxFORM aForm
    {
    PRINT "aForm.Location[]= """, var, """, 1"
    OBJECT wxFIELD aField
    {
    aField.Name= "userWebAction"
    aField.Value= "save"
    }
    OBJECT wxFIELD aField
    {
    aField.Name= "FLShowActivityNameOS"
    aField.Value= "拟稿"
    }
    }
    }

    POST /public/worksynergicList.nsf/0/d9c8ab62c1fc679a48257af00015c46b?EditDocument&Seq=1 HTTP/1.1
    Accept: image/jpeg, image/gif, image/pjpeg, */*
    Referer: http://file.xz.unicom.local/public/worksynergicList.nsf/0/D9C8AB62C1FC679A48257AF00015C46B?editdocument
    Accept-Language: zh-CN
    User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727)
    Content-Type: multipart/form-data; boundary=---------------------------7dd23bb80a4c
    Accept-Encoding: gzip, deflate
    Host: file.xz.unicom.local
    Content-Length: 8127
    Connection: Keep-Alive
    Cache-Control: no-cache
    Cookie: authType=local; PD-ID=rfVAzqwhZELBR8ZjYwWR6c6d5Cocy/RWAyLnZFg1Jbi6uhDcR1zZtwUhMTZpsn/vHpMgihFN9XLf6fGuUg+liCML0FodDxs1cMFTc974ULoU5w9weYR7e1vr9j9Wn5C5sk3l15MULunXOMuaIF3Isaq44D0rqiOLKnLVUTvPCfotMUygNyQZLiQfmtk0k9YlDaCk9WXmtk4PECY7Gmtla9imXlM/jyte0/Ssnfa5CwZc9Ya3jZif59KYZirJkKEMxEorU/C3iGbLtYRMzp7vFg==; LtpaToken=EhzGRQM1xW6BNDmvJ6+DDam0xCz33YWEH0CakBO9Qvkl1PD1b46gwBLul+p53qRjt2bqG/pKSJRGpA/pWtPluctCc67PKPTpWvs9F7XjxDoXbRLOzAuIwt3rOsm4QCB11JCrTZQ3TGFTA5EMmUKGma0XoQY1x/0wVl4/DgFyUwq5qkb4g3JjQ2bDKcg1HnpnLvvNs6wNmm5eiI7w7tEDzjZrmSwAddopwxWDgxRU7NMbzLry4C/Kp/B5yCmJt1uhkTLjyxi6HRgAMIxBBRhBIHLOwxQBFnCY949UayVBs6IBZIIgDY8xV3m7r1xVOjS+HMYrBfVFZpAvhtaeluzr38FeprLm4EtH

    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="__Click"

    0
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="%%ModDate"

    48257AF00015C477
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="%%Detach.1"


    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLShowProcessIDOS"

    38106D274F763C5B482576C6001A5E1A
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLActivityIsHangupHoursOS"

    45
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLShowActivityNameOS"

    拟稿
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLShowActivityIDOS"

    A12A50266D410F32482576C6001A5E33
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLActivityRerouteGroupOS"


    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLCurrentUserNameOS"

    CN=冯棋/OU=fengqi9/O=XZ.Unicom
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLPossibleNextActivityIDOS"

    F653E10D835B8122482576C6001A5E35
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLPossibleNextActivityOwneTypeOS"

    0
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLPossibleNextActivitySelectOS"

    all
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLActivityResetPeopleCountOS"


    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLActivityResetPeopleRangeOS"

    all
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLDocUnidOS"

    D9C8AB62C1FC679A48257AF00015C46B
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="$$QuerySaveAgent"

    (FLJobSave)
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLSelectNextPeopleOS"


    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="JobSetId"

    9E5BCDD1160F41874825766D002C03EE
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="Path"

    public/worksynergicList.nsf
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="CurrentDepartment"

    产品创新部
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="CurrentCompany"

    省公司
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="CurrentActivity"

    拟稿
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="CurrentMarketDept"


    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="CurrentInfoDept"


    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="Template_Head"

    /public/worksynergicList.nsf/0/9E5BCDD1160F41874825766D002C03EE/template_head.doc
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="Template_Bottom"

    /public/worksynergicList.nsf/0/9E5BCDD1160F41874825766D002C03EE/template_bottom.doc
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="officeName"


    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="IsEditDoc"

    1
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="DocumentStyle"


    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="ShowProcessID"

    38106D274F763C5B482576C6001A5E1A
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="RerouterActivity"


    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="RerouterIdea"


    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="RerouterPeople"


    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="GeneralManager"

    马冀平总经理/jipingma/XZ.Unicom
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="userWebAction"

    save
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="IsBeingEdit"

    1
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="commonWord1"


    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="commonWordAction1"


    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="commonWord"

    同意, 不同意, 已阅, 请批示, 请审核, 请处理, 已处理, 请参加
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="commonWordAction"


    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLIdeasOS"

    开发测试2
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="%%Surrogate_FLSelectDecisionOS"

    1
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLSelectDecisionOS"

    送部门主管
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLSubjectOS"

    开发测试2
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="DepartmentLeader"

    王全领/wangql103/XZ.Unicom
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="zbDepartment"

    产品创新部
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="ngDepartmentFGLeader"


    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="zxDepartmentFGLeader"


    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="contactItem"

    开发测试2
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLWebDbNameOS"

    public/worksynergicList.nsf
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLDocumentUnidOS"

    D9C8AB62C1FC679A48257AF00015C46B
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLCurrentUserNameListOS"

    CN=冯棋/OU=fengqi9/O=XZ.Unicom, 冯棋, *, */OU=fengqi9/O=XZ.Unicom, */O=XZ.Unicom, 产品创新部, 公司各部门, 省公司, -WebPreAuthenticated-, -WebPreAuthenticated-
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLAttachmentNamesOS"


    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLAttachmentLengthsOS"


    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLIsDocumentEditOS"

    1
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLAttachmentUploadOS"


    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLAttachmentOpenOS"

    y
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLAttachmentEditOS"

    n
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLAttachmentDeleteOS"

    y
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLAttachmentDownloadOS"

    y
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLAttachmentRenameOS"

    y
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLAttachmentPowerOS"

    y
    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLAttachmentRecordXMLOS"



    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLAttachmentOperationXMLOS"



    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="FLAttachmentPowerXMLOS"



    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="%%Detach.1"


    -----------------------------7dd23bb80a4c
    Content-Disposition: form-data; name="%%File.4825769d00536344.973496d08f54f3e1482575e70010c2ce.$Body.0.24A0"; filename=""
    Content-Type: application/octet-stream


    -----------------------------7dd23bb80a4c--
大客户定制开发咨询
电话:025-87754180
OEM合作与增值合作咨询
电话:13951904263
在线咨询
开发支持
QQ群二:27714869 QQ:1471059225 服务时间
工作日:8:30~18:00
  • 隐私声明
  • 招贤纳士
  • 联系我们
  • ©2011 MAStudio Inc 苏ICP备9987900