Difference between revisions of "Artefact:Model/net/leue/andreas/sandbox/model08/Transaction08"
From OOModels
Jump to navigationJump to search
Wolfmueller (talk | contribs) (→Code) |
AndreasLeue (talk | contribs) |
||
(19 intermediate revisions by 2 users not shown) | |||
Line 15: | Line 15: | ||
An example transaction | An example transaction | ||
+ XMPresentation | + XMPresentation | ||
- Name = Beautiful | |||
- IconName = "transaction.png" | |||
+ XMAssembly | |||
- ObjectEditorSpaceOperationIconName = "transaction.png" | |||
+ XMLogicImplementation | + XMLogicImplementation | ||
- OnCreateInitialisation = JavaCodeTemplate=« ==>> state1; » | - OnCreateInitialisation = JavaCodeTemplate=« setup(context); ==>> state1; » | ||
** Attribute1 net/leue/andreas/sandbox/model08/Model08a | ** Attribute1 net/leue/andreas/sandbox/model08/Model08a TransactionInside,AllowNull | ||
+ XMPresentation | + XMPresentation | ||
- VisibilityStates = | - VisibilityStates = «state1||state2» | ||
+ XMVUI | + XMVUI | ||
- Mode = Literal="transactionreadwrite" | - Mode = Literal="transactionreadwrite" | ||
** Attribute2 net/leue/andreas/sandbox/model08/Model08b | ** Attribute2 net/leue/andreas/sandbox/model08/Model08b TransactionInside,AllowNull | ||
+ XMPresentation | + XMPresentation | ||
- VisibilityStates = | - VisibilityStates = «state1||state3» | ||
+ XMVUI | + XMVUI | ||
- Mode = Literal="transactionreadwrite" | - Mode = Literal="transactionreadwrite" | ||
** Attribute3 net/leue/andreas/sandbox/model08/Model08a | ** Attribute3 net/leue/andreas/sandbox/model08/Model08a TransactionInside,AllowNull | ||
+ XMPresentation | + XMPresentation | ||
- VisibilityStates = | - VisibilityStates = «state4||state5» | ||
+ XMVUI | + XMVUI | ||
- ModeMap = mm1={ State="state4", Mode={Literal="transactionreadwrite_eins"} }, mm2={ State="state5", Mode={Literal="transactionreadwrite_zwei"} } | - ModeMap = mm1={ State="state4", Mode={Literal="transactionreadwrite_eins"} }, mm2={ State="state5", Mode={Literal="transactionreadwrite_zwei"} } | ||
** Attribute4 net/leue/andreas/sandbox/model08/Model08a | ** Attribute4 net/leue/andreas/sandbox/model08/Model08a TransactionInside,AllowNull | ||
+ XMPresentation | + XMPresentation | ||
- VisibilityStates = | - VisibilityStates = «state6||state7» | ||
+ XMVUI | + XMVUI | ||
- ModeMap = mm1={ State="state6", Mode={Literal="transactionreadwrite"}, VisibilityFeatureIncludeRegExp={Literal="vorname"} }, mm2={ State="state7", Mode={Literal="transactionreadwrite"}, VisibilityFeatureIncludeRegExp={Literal="nachname"} } | - ModeMap = mm1={ State="state6", Mode={Literal="transactionreadwrite"}, VisibilityFeatureIncludeRegExp={Literal="vorname"} }, mm2={ State="state7", Mode={Literal="transactionreadwrite"}, VisibilityFeatureIncludeRegExp={Literal="nachname"} } | ||
!! setup void() NoUI,Transactional | |||
+ XMLogicImplementation | |||
- OperationBody = JavaCodeTemplate=« ==>> state2; setAttribute1(context, Class_Factory_Model08a.construct(context, "", "")); setAttribute2(context, Class_Factory_Model08b.construct(context, "", "")); setAttribute3(context, Class_Factory_Model08a.construct(context, "", "")); setAttribute4(context, Class_Factory_Model08a.construct(context, "", "")); » | |||
+ XMTransactional | |||
- PerCall = true | |||
- Independent = true | |||
- Final = false | |||
!! next1 void() | !! next1 void() | ||
~~ state1 | ~~ state1 | ||
+ XMPresentation | + XMPresentation | ||
- Name = next | - Name = next | ||
- Impact = Proceed | |||
+ XMLogicImplementation | + XMLogicImplementation | ||
- OperationBody = JavaCodeTemplate=« ==>> state2; » | - OperationBody = JavaCodeTemplate=« ==>> state2; » | ||
Line 56: | Line 59: | ||
+ XMPresentation | + XMPresentation | ||
- Name = next | - Name = next | ||
- Impact = Proceed | |||
+ XMLogicImplementation | + XMLogicImplementation | ||
- OperationBody = JavaCodeTemplate=« ==>> state3; » | - OperationBody = JavaCodeTemplate=« ==>> state3; » | ||
Line 62: | Line 66: | ||
+ XMPresentation | + XMPresentation | ||
- Name = next | - Name = next | ||
- Impact = Proceed | |||
+ XMLogicImplementation | + XMLogicImplementation | ||
- OperationBody = JavaCodeTemplate=« ==>> state4; » | - OperationBody = JavaCodeTemplate=« ==>> state4; » | ||
Line 68: | Line 73: | ||
+ XMPresentation | + XMPresentation | ||
- Name = next | - Name = next | ||
- Impact = Proceed | |||
+ XMLogicImplementation | + XMLogicImplementation | ||
- OperationBody = JavaCodeTemplate=« ==>> state5; » | - OperationBody = JavaCodeTemplate=« ==>> state5; » | ||
Line 74: | Line 80: | ||
+ XMPresentation | + XMPresentation | ||
- Name = next | - Name = next | ||
- Impact = Proceed | |||
+ XMLogicImplementation | + XMLogicImplementation | ||
- OperationBody = JavaCodeTemplate=« ==>> state6; » | - OperationBody = JavaCodeTemplate=« ==>> state6; » | ||
Line 80: | Line 87: | ||
+ XMPresentation | + XMPresentation | ||
- Name = next | - Name = next | ||
- Impact = Proceed | |||
+ XMLogicImplementation | + XMLogicImplementation | ||
- OperationBody = JavaCodeTemplate=« ==>> state7; » | - OperationBody = JavaCodeTemplate=« ==>> state7; » | ||
Line 86: | Line 94: | ||
+ XMPresentation | + XMPresentation | ||
- Name = back | - Name = back | ||
- Impact = Proceed | |||
+ XMLogicImplementation | + XMLogicImplementation | ||
- OperationBody = JavaCodeTemplate=« ==>> state1; » | - OperationBody = JavaCodeTemplate=« ==>> state1; » | ||
Line 92: | Line 101: | ||
+ XMPresentation | + XMPresentation | ||
- Name = back | - Name = back | ||
- Impact = Proceed | |||
+ XMLogicImplementation | + XMLogicImplementation | ||
- OperationBody = JavaCodeTemplate=« ==>> state2; » | - OperationBody = JavaCodeTemplate=« ==>> state2; » | ||
Line 98: | Line 108: | ||
+ XMPresentation | + XMPresentation | ||
- Name = back | - Name = back | ||
- Impact = Proceed | |||
+ XMLogicImplementation | + XMLogicImplementation | ||
- OperationBody = JavaCodeTemplate=« ==>> state3; » | - OperationBody = JavaCodeTemplate=« ==>> state3; » | ||
Line 104: | Line 115: | ||
+ XMPresentation | + XMPresentation | ||
- Name = back | - Name = back | ||
- Impact = Proceed | |||
+ XMLogicImplementation | + XMLogicImplementation | ||
- OperationBody = JavaCodeTemplate=« ==>> state4; » | - OperationBody = JavaCodeTemplate=« ==>> state4; » | ||
Line 110: | Line 122: | ||
+ XMPresentation | + XMPresentation | ||
- Name = back | - Name = back | ||
- Impact = Proceed | |||
+ XMLogicImplementation | + XMLogicImplementation | ||
- OperationBody = JavaCodeTemplate=« ==>> state5; » | - OperationBody = JavaCodeTemplate=« ==>> state5; » | ||
Line 116: | Line 129: | ||
+ XMPresentation | + XMPresentation | ||
- Name = back | - Name = back | ||
- Impact = Proceed | |||
+ XMLogicImplementation | + XMLogicImplementation | ||
- OperationBody = JavaCodeTemplate=« ==>> state6; » | - OperationBody = JavaCodeTemplate=« ==>> state6; » | ||
!! cancel void() | !! cancel void() | ||
~~ state1 | ~~ state1||state2||state3||state4||state5||state6||state7 | ||
+ XMPresentation | + XMPresentation | ||
- Name = "Stop Transaction" | - Name = "Stop Transaction" | ||
- Impact = Abort | |||
+ XMLogicImplementation | + XMLogicImplementation | ||
- OperationBody = JavaCodeTemplate=« ==>> finished; » | - OperationBody = JavaCodeTemplate=« ==>> finished; » | ||
</wiml> | </wiml> |
Latest revision as of 10:38, 12 February 2013
Classification | |
---|---|
Type | Type:org/oomodels/WIML/1.0 |
Domain | Domain:it/test |
Category | Type:org/oomodels/wiki/Model |
More | |
Download Code | |
Namespace (more) | |
Private namespace of Andreas Leue. | |
create new pages |
Code[edit]
Transaction08 «StateMachine» | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
...
|
||||||||||||||
Attribute1 | Model08a | «TransactionInside,AllowNull» | ...
| |||||||||||
Attribute2 | Model08b | «TransactionInside,AllowNull» | ...
| |||||||||||
Attribute3 | Model08a | «TransactionInside,AllowNull» | ...
| |||||||||||
Attribute4 | Model08a | «TransactionInside,AllowNull» | ...
| |||||||||||
setup | void () | «NoUI,Transactional» |
...
| |||||||||||
state1──► next1 | void () | «» |
...
| |||||||||||
state2──► next2 | void () | «» |
...
| |||||||||||
state3──► next3 | void () | «» |
...
| |||||||||||
state4──► next4 | void () | «» |
...
| |||||||||||
state5──► next5 | void () | «» |
...
| |||||||||||
state6──► next6 | void () | «» |
...
| |||||||||||
state2──► back2 | void () | «» |
...
| |||||||||||
state3──► back3 | void () | «» |
...
| |||||||||||
state4──► back4 | void () | «» |
...
| |||||||||||
state5──► back5 | void () | «» |
...
| |||||||||||
state6──► back6 | void () | «» |
...
| |||||||||||
state7──► back7 | void () | «» |
...
| |||||||||||
state1||state2||state3||state4||state5||state6||state7──► cancel | void () | «» |
...
|