欧美三区_成人在线免费观看视频_欧美极品少妇xxxxⅹ免费视频_a级毛片免费播放_鲁一鲁中文字幕久久_亚洲一级特黄

Software Process Engine of BeyondTrack

系統 2369 0

這只是一個草稿,作為這一個月研究、‘創新’上的一點總結。文章寫得比較亂,大家有興趣的話可以郵件我。

BeyondTrack 的 Software Process Engine 以及 SPDL 看來要暫時告一段落了 :-)

Software Process Engine of BeyondTrack

Software Process Engine of BeyondTrack

1 Motivation

Software process modeling and execution is very specialized unlike general workflows. The relations and associations of tasks of an ordinary workflow are not very closed and coupled. In general, we may consider a task of an ordinary workflow is a work sheet rather than a task. By ISO/IEC 12207(SOFTWARE LIFE CYCLE PROCESSES), a task is a set of elementary or atomic actions. A task consumes inputs (data, information, control) and produces outputs (data, information, control).
We consider that a software process engine is a subset of workflow engine is true. But, software process is too specialized to use a workflow engine. Software process has its own specifications and practices. So, in process engine of BeyondTrack, we defined a language to depict software process, which named Software Process Definition Language .

Petri Net is a formalized mathematical modeling languages for the description of discrete distributed systems. The Software process is a such system need to be defined and executed by rule and line.


2 Main Ideas

2.1 Coloured Petri Net

All process instances defined by the same process definition are marked as the template parameter of a token, and put these process instances into one petri net graph, which generated by the process definition. So, just using one petri net(contains the petri net graph and markings ) instance we can depict all process instances defined by the same process definition by markings. Here, we use the coloured petri net to model the process engine as one idea.

Every token associates a process instance, we can treat it as the token was coloured. There is some benefits as followings:
  • save storage
The same type of process instances described by tokens respectively will share one petri net graph, so only one graph need to persist
  • more easily to mine associations of process instances
The process instance was described by coloured token, so easily to find these tokens' associations in one graph

2.2 Nested Petri Net

TODO: sub-process

2.3 Concurrency

TODO: concurrency description using petri net.


3 Design Intentions

3.1 Meta Model

As far as we know, XML technology is the base of web service, a beautiful solution for distributed heterogeneous application. The role of XML of web service is description of service and transformation of service implementation. At this view, let's have a look at how XML do it.

We decided to use Java classes as the source meta model, and XML Schema as the target meta model.

3.1.1 SPDL XML Schema
To an XML document of the SPDL, all elements associate with each other by their names. So, the name of every element must unique in one SPDL XML document. The followings are all elements defined by SPDL.
3.1.1.1 process-definition
Name
Type
Multiplicity
Description
name
attribute
1
the name of the process definition
description
element
[0..1]
the description of the process definition
actor-definition
element
[1..*]
the actor definitions of the process definition
start-activity-definition
element
1
the start activity definition of the process definition
activity-definition
element
[0..*]
all ordinary activity definitions of the process definition
end-activity-definition
element
[1..*]
all end activity definitions of the process definition

3.1.1.2 actor-definition
Name Type Multiplicity Description
name
attribute
1
the name of the actor definition
description
element
[0..1]
the description of the actor definition


3.1.1.3 start-activity-definition
Name Type Multiplicity Description
name
attribute
1
the name of the start activity definition
description
element
[0..1]
the description of the start activity definition
task-definition
element
[0..*]
the task definitions of the start activity definition
output-transition-definition
element
[1..*]
the output transition definitions of the start activity definition


3.1.1.4 activity-definition
Name Type Multiplicity Description
name
attribute
1
the name of the activity definition
description
element
[0..1]
the description of the activity definition
task-definition
element
[0..*]
the task definitions of the activity definition
input-transition-definition
element
[1..*]
the input transition definitions of the activity definition
output-transition-definition
element
[1..*]
the output transition definitions of the activity definition


3.1.1.5 end-activity-definition
Name Type Multiplicity Description
name
attribute
1
the name of the end activity definition
description
element
[0..1]
the description of the end activity definition
task-definition
element
[0..*]
the task definitions of the end activity definition
input-transition-definition
element
[1..*]
the input transition definitions of the end activity definition


3.1.1.6 input-transition-definition
Name Type Multiplicity Description
name
attribute
1
the name of the input transition definition
description
element
[0..1]
the description of the input transition definition
3.1.1.7 output-transition-definition
Name Type Multiplicity Description
name
attribute
1
the name of the output transition definition
description
element
[0..1]
the description of the output transition definition

3.1.1.8 task-definition
Name Type Multiplicity Description
name
attribute
1
the name of the task definition
description
element
[0..1]
the description of the task definition
actor-definition
element
1
the actor definition of the task definition
property-definition
element
[1..*]
the property definition of the task definition
3.1.1.9 property-definition
Name Type Multiplicity Description
name
attribute
1
the name of the property definition
description
element
[0..1]
the description of the property definition
value-type
element
1
the value type defined by the property definition. At present, the value of this element only "java.lang.String" be allowed

3.2 TODO....

3.3 Petri net Core

There are two kinds of vertexes in petri net(P/T system), Place and Transition . Place vertex depicts the process control computing, transition vertex depicts the business activity. Them collaborate each other over events.
3.3.1 Process Events
Process events depict process-level events, such as creation of a process, completion of a activity. These events raise from business logic and will be handled by place vertex event handler. So far, all process events raise synchronously with raiser.See the following illustration:
TODO: illustration and event API snippet

3.3.2 Transition vertex Logic
Transition vertex depicts the business logic of process engine of BeyondTrack. In classic petri net, a transition of a petri net may fire . We can consider there is a fire event raised. The condition of firing please refers to petri net theory for details. When a transition fired, tokens of place connected with this transition changed.
The fire event corresponds to a business operation performed.
TODO: API snippets
3.3.3 Place vertex Event Handler
A transition fire, a event raise like just we mentioned. So, there must exist a event handler to deal with that. Place vertex depicts the event handling. There are two responsibilities of place event handler mainly:
  • move of token

Token move means the token related process instance's status has changed.

  • generation of the next activity node
Caused by move of token, a activity or concurrent activities will be created in process instance.
TODO: code snippets

3.4 Task Management

3.4.1 Task property Customizing
To depict the various of tasks of user's project is very hard in general. So, let user to customize the properties of a task is necessary. The property customizing of a task was performed in process modeling.
There are three property types has been considered:
  1. Pure text
    A pure text property is implemented by java.lang.String .
  2. Date
    A date property is implemented by java.util.Date .
  3. List
    TODO: list property

4 Implementation

4.1 Using JAXB for SPDL

In 3.1 Meta Model , we decided to use Java classes as the source meta model. And, the transformation rules and transformation engine have been defined by JAXB(JSR 222). The scenario of proceeding transformation as the following illustration(cut from JavaEE Tutorials ):




Software Process Engine of BeyondTrack


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦?。?!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 国产精品久久久久久久四虎电影 | 国产性色视频在线高清 | 国产日韩中文字幕 | 抱着cao才爽免费观看 | 久久久久999 | 久久97精品久久久久久久看片 | 日韩精品真人荷官无码 | 欧美成人h版在线观看 | 国产乱码精品1区2区3区 | 久久亚洲第一 | 国产欧美曰韩一区二区三区 | 亚洲日本在线天堂无码 | 99在线精品免费视频九九视 | 成人免费视频网站在线观看 | 日本一区二区三区四区在线观看 | 亚洲日韩在线视频 | 成人黄色毛片 | 欧美日韩精品一区二区三区四区 | 牛牛热在线视频 | 视频一区二区三区免费观看 | 欧美a级成人淫片免费看 | 国产精品影视 | 操欧美女 | 亚洲 久久 | 亚洲欧美在线视频 | 国产成人综合欧美精品久久 | 一级啪啪片| 亚洲精品一区二区三区四区 | 欧美高清不卡午夜精品免费视频 | 一区二区三区日韩精品 | 国产一区二| 欧美高清成人 | 日本阿v无码观看dvd | 欧美精品观看 | 日本毛片高清免费视频 | 国产精品亚洲综合第一区 | 欧洲成人免费视频 | 日韩精品一区二区三区视频播放 | 久久AV亚洲精品一区无码 | 国产成人精品在线 | 日韩在线视频观看免费 |