前页 后页

将BPMN 1.1模型迁移到BPMN 2.0

使用自动化接口功能Migrate(),可以将BPMN 1.1模型(或模型的一部分)迁移到BPMN 2.0。此功能将选定包或元素下的所有元素,属性,连接器和图表的标记值和(如果需要)原型更新为BPMN 2.0。

此VB脚本调用Migrate()函数将Package或元素迁移到BPMN 2.0:

子MigrateElement(sGUID,lngPackageID)

Dim proj作为EA.Project

设置项目= Repository.GetProjectInterface

移植sGUID,“ BPMN1.1”,“ BPMN2.0”

刷新模型

如果lngPackageID <> 0则

Repository.RefreshModelView(lngPackageID)

万一

结束子

子MigrateSelectedItem

Dim selType

Dim selElement作为EA.Element

Dim selPackage作为EA.Package

selType = GetTreeSelectedItemType

如果selType = 4,则'表示元素

设置selElement = GetTreeSelectedObject

MigrateElement selElement.ElementGUID,selElement.PackageID

MsgBox“元素迁移完成”,0,“ BPMN 2.0迁移”

ElseIf selType = 5则'意味着包

设置selPackage = GetTreeSelectedObject

MigrateElement selPackage.PackageGUID,selPackage.PackageID

MsgBox“程序包迁移完成”,0,“ BPMN 2.0迁移”

其他

MsgBox“在浏览器窗口中选择一个包或元素以启动迁移”,0,“ BPMN 2.0迁移”

万一

结束子

副主

MigrateSelectedItem

结束子

主要

笔记

  • 在运行BPMN 2.0迁移器之前,请备份您的项目
  • 规范化发生在这些标签上:
    -BPMN1.1 :: Activity :: InMessageRef
    -BPMN1.1 :: Activity :: OutMessageRef
    -BPMN1.1 :: Activity :: IORules
    -BPMN1.1 :: Activity :: InputSets
    -BPMN1.1 :: Activity :: OutputSets
    -BPMN1.1 :: Activity :: ComplexMI_FlowCondition
    -BPMN1.1 :: Activity :: Performers
    -BPMN1.1 ::: BusinessProcess :: InputSets
    -BPMN1.1 ::: BusinessProcess :: OutputSets
    -BPMN1.1 ::: BusinessProcess :: Performers
    -BPMN1.1 :: EndEvent :: ErrorCode
    -BPMN1.1 :: IntermediateEvent :: ErrorCode

    以BPMN1.1 :: Activity :: InMessageRef为例,这些步骤发生:

    (1)创建一个新元素BPMN2.0 :: Operation(这是桥接元素)
    (2)插入参考标记'BPMN2.0 :: Activity :: operationRef'
    (3)将BPMN1.1 :: Activity :: InMessageRef迁移到BPMN2.0 :: Operation :: InMessageRef
  • 非规范化发生在以下标签上:
    -BPMN1.1 :: Activity :: TransactionRef引用的BPMN1.1 :: Transaction
    > BPMN1.1 :: Transaction :: TransactionMethod
    > BPMN1.1 :: Transaction :: TransactionProtocol
    -BPMN1.1 :: Activity :: WebServiceRef引用的BPMN1.1 :: WebService,
    BPMN1.1 :: StartEvent :: WebServiceRef,
    BPMN1.1 :: IntermediateEvent :: WebServiceRef,
    BPMN1.1 :: EndEvent :: WebServiceRef
    > BPMN1.1 :: WebService :: Operation
    > BPMN1.1 :: WebService :: Interface
    > BPMN1.1 :: WebService :: ParticipantRef
    -BPMN1.1 :: StartEvent :: ConditionRef引用的BPMN1.1 :: Condition,
    BPMN1.1 :: IntermediateEvent :: ConditionRef
    > BPMN1.1 :: Condition :: ConditionExpression

    以BPMN1.1 :: Activity :: TransactionRef为例,这些步骤发生:

    (1)通过BPMN1.1 :: Activity :: TransactionRef查找元素BPMN1.1 :: Transaction
    (2)将此引用的BPMN1.1 :: Transaction :: TransactionMethod的值迁移到
    BPMN2.0 :: Activity :: transactionMethod
    (3)将此引用的BPMN1.1 :: Transaction :: TransactionProtocol的值迁移到
    BPMN2.0 :: Activity :: transactionProtocol
  • 如果在BPMN2.0中丢弃了BPMN1.1立体声标签,则如果该标签具有值,则将其保留

学到更多