Difference between revisions of "Artefact:Model/net/leue/andreas/sandbox/model08/Transaction08"

From OOModels
< Artefact:Model‎ | net‎ | leue‎ | andreas‎ | sandbox‎ | model08
Jump to navigationJump to search
 
(40 intermediate revisions by 3 users not shown)
Line 11: Line 11:


<wiml>
<wiml>
# Transaction08 InteractionClass
# Transaction08 StateMachine
~ state1,state2,state3,state4,state5
~ state1,state2,state3,state4,state5,state6,state7,finished[Finished]
   An example transaction
   An example transaction
** Attribute1 Model08a
+ XMPresentation
  + XMLogic
  - Name = Beautiful
    - DefaultValue = Class_Factory_Model08a.construct(context);
  - IconName = "transaction.png"
+ XMAssembly
  - ObjectEditorSpaceOperationIconName = "transaction.png"
+ XMLogicImplementation
  - OnCreateInitialisation = JavaCodeTemplate=« setup(context); ==>> state1; »
** Attribute1 net/leue/andreas/sandbox/model08/Model08a TransactionInside,AllowNull
   + XMPresentation
   + XMPresentation
     - VisibilityStates = [state1,state2]
     - VisibilityStates = «state1||state2»
   + XMVUI
   + XMVUI
     - Mode = "transactionreadwrite"
     - Mode = Literal="transactionreadwrite"
** Attribute2 Model08b
** Attribute2 net/leue/andreas/sandbox/model08/Model08b TransactionInside,AllowNull
  + XMLogic
    - DefaultValue = Class_Factory_Model08b.construct(context);
   + XMPresentation
   + XMPresentation
     - VisibilityStates = [state1,state3]
     - VisibilityStates = «state1||state3»
   + XMVUI
   + XMVUI
     - Mode = "transactionreadwrite"
     - Mode = Literal="transactionreadwrite"
** Attribute3 Model08a
** Attribute3 net/leue/andreas/sandbox/model08/Model08a TransactionInside,AllowNull
  + XMLogic
    - DefaultValue = Class_Factory_Model08a.construct(context);
   + XMPresentation
   + XMPresentation
     - VisibilityStates = [state4,state5]
     - VisibilityStates = «state4||state5»
   + XMVUI
   + XMVUI
     - ModeMap = mm1={ State="state4", Mode="transactionreadwrite_eins" },\nmm2={ State="state5", Mode="transactionreadwrite_zwei" }
     - ModeMap = mm1={ State="state4", Mode={Literal="transactionreadwrite_eins"} }, mm2={ State="state5", Mode={Literal="transactionreadwrite_zwei"} }
** Attribute4 net/leue/andreas/sandbox/model08/Model08a TransactionInside,AllowNull
  + XMPresentation
    - VisibilityStates = «state6||state7»
  + XMVUI
    - 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 = ~ ==>> state2;
     - OperationBody = JavaCodeTemplate=« ==>> state2; »
!! next2 void()
!! next2 void()
   ~~ state2
   ~~ state2
   + XMPresentation
   + XMPresentation
     - Name = next
     - Name = next
    - Impact = Proceed
   + XMLogicImplementation
   + XMLogicImplementation
     - OperationBody = ~ ==>> state3;
     - OperationBody = JavaCodeTemplate=« ==>> state3; »
!! next3 void()
!! next3 void()
   ~~ state3
   ~~ state3
   + XMPresentation
   + XMPresentation
     - Name = next
     - Name = next
    - Impact = Proceed 
   + XMLogicImplementation
   + XMLogicImplementation
     - OperationBody = ~ ==>> state4;
     - OperationBody = JavaCodeTemplate=« ==>> state4; »
!! next4 void()
!! next4 void()
   ~~ state4
   ~~ state4
   + XMPresentation
   + XMPresentation
     - Name = next
     - Name = next
    - Impact = Proceed
  + XMLogicImplementation
    - OperationBody = JavaCodeTemplate=« ==>> state5; »
!! next5 void()
  ~~ state5
  + XMPresentation
    - Name = next
    - Impact = Proceed
  + XMLogicImplementation
    - OperationBody = JavaCodeTemplate=« ==>> state6; »
!! next6 void()
  ~~ state6
  + XMPresentation
    - Name = next
    - Impact = Proceed
   + XMLogicImplementation
   + XMLogicImplementation
     - OperationBody = ~ ==>> state5;
     - OperationBody = JavaCodeTemplate=« ==>> state7; »
!! back2 void()
!! back2 void()
   ~~ state2
   ~~ state2
   + XMPresentation
   + XMPresentation
     - Name = back
     - Name = back
    - Impact = Proceed
   + XMLogicImplementation
   + XMLogicImplementation
     - OperationBody = ~ ==>> state1;
     - OperationBody = JavaCodeTemplate=« ==>> state1; »
!! back3 void()
!! back3 void()
   ~~ state3
   ~~ state3
   + XMPresentation
   + XMPresentation
     - Name = back
     - Name = back
    - Impact = Proceed
   + XMLogicImplementation
   + XMLogicImplementation
     - OperationBody = ~ ==>> state2;
     - OperationBody = JavaCodeTemplate=« ==>> state2; »
!! back4 void()
!! back4 void()
   ~~ state4
   ~~ state4
   + XMPresentation
   + XMPresentation
     - Name = back
     - Name = back
    - Impact = Proceed
   + XMLogicImplementation
   + XMLogicImplementation
     - OperationBody = ~ ==>> state3;
     - OperationBody = JavaCodeTemplate=« ==>> state3; »
!! back5 void()
!! back5 void()
   ~~ state5
   ~~ state5
   + XMPresentation
   + XMPresentation
     - Name = back
     - Name = back
    - Impact = Proceed
  + XMLogicImplementation
    - OperationBody = JavaCodeTemplate=« ==>> state4; »
!! back6 void()
  ~~ state6
  + XMPresentation
    - Name = back
    - Impact = Proceed
  + XMLogicImplementation
    - OperationBody = JavaCodeTemplate=« ==>> state5; »
!! back7 void()
  ~~ state7
  + XMPresentation
    - Name = back
    - Impact = Proceed
  + XMLogicImplementation
    - OperationBody = JavaCodeTemplate=« ==>> state6; »
!! cancel void()
  ~~ state1||state2||state3||state4||state5||state6||state7
  + XMPresentation
    - Name = "Stop Transaction"
    - Impact = Abort
   + XMLogicImplementation
   + XMLogicImplementation
     - OperationBody = ~ ==>> state4;
     - 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»
state1state2state3state4state5state6state7finished[Finished]

An example transaction
...
XMPresentation NameBeautiful
IconName"transaction.png"
XMAssembly ObjectEditorSpaceOperationIconName"transaction.png"
XMLogicImplementation OnCreateInitialisationJavaCodeTemplate = « setup(context); ==>> state1; »
Attribute1Model08a«TransactionInside,AllowNull»
...
XMPresentation VisibilityStates«state1||state2»
XMVUI ModeLiteral = "transactionreadwrite"
Attribute2Model08b«TransactionInside,AllowNull»
...
XMPresentation VisibilityStates«state1||state3»
XMVUI ModeLiteral = "transactionreadwrite"
Attribute3Model08a«TransactionInside,AllowNull»
...
XMPresentation VisibilityStates«state4||state5»
XMVUI ModeMapmm1 = {
    State = "state4",
    Mode = {
        Literal = "transactionreadwrite_eins"
    }
},
mm2 = {
    State = "state5",
    Mode = {
        Literal = "transactionreadwrite_zwei"
    }
}
Attribute4Model08a«TransactionInside,AllowNull»
...
XMPresentation VisibilityStates«state6||state7»
XMVUI ModeMapmm1 = {
    State = "state6",
    Mode = {
        Literal = "transactionreadwrite"
    },
    VisibilityFeatureIncludeRegExp = {
        Literal = "vorname"
    }
},
mm2 = {
    State = "state7",
    Mode = {
        Literal = "transactionreadwrite"
    },
    VisibilityFeatureIncludeRegExp = {
        Literal = "nachname"
    }
}
setupvoid () «NoUI,Transactional»
...
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> 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 PerCalltrue
Independenttrue
Finalfalse
state1──► next1void () «»
...
XMPresentation Namenext
ImpactProceed
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> state2; »
state2──► next2void () «»
...
XMPresentation Namenext
ImpactProceed
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> state3; »
state3──► next3void () «»
...
XMPresentation Namenext
ImpactProceed
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> state4; »
state4──► next4void () «»
...
XMPresentation Namenext
ImpactProceed
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> state5; »
state5──► next5void () «»
...
XMPresentation Namenext
ImpactProceed
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> state6; »
state6──► next6void () «»
...
XMPresentation Namenext
ImpactProceed
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> state7; »
state2──► back2void () «»
...
XMPresentation Nameback
ImpactProceed
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> state1; »
state3──► back3void () «»
...
XMPresentation Nameback
ImpactProceed
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> state2; »
state4──► back4void () «»
...
XMPresentation Nameback
ImpactProceed
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> state3; »
state5──► back5void () «»
...
XMPresentation Nameback
ImpactProceed
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> state4; »
state6──► back6void () «»
...
XMPresentation Nameback
ImpactProceed
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> state5; »
state7──► back7void () «»
...
XMPresentation Nameback
ImpactProceed
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> state6; »
state1||state2||state3||state4||state5||state6||state7──► cancelvoid () «»
...
XMPresentation Name"Stop Transaction"
ImpactAbort
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> finished; »