Difference between revisions of "Artefact:Model/net/leue/andreas/sandbox/model38/Transaction38"

From OOModels
< Artefact:Model‎ | net‎ | leue‎ | andreas‎ | sandbox‎ | model38
Jump to navigationJump to search
 
(5 intermediate revisions by the same user not shown)
Line 13: Line 13:
# Transaction38 StateMachine,Singleton,RESTService
# Transaction38 StateMachine,Singleton,RESTService
~ state1,state2,finished[Finished]
~ state1,state2,finished[Finished]
^^ java.lang.String,com.sphenon.basics.data.Data_MediaObject
   A stateful (Fielding forbid!) REST Service
   A stateful (Fielding forbid!) REST Service
+ XMPresentation
+ XMPresentation
Line 28: Line 29:
   + XMVUI
   + XMVUI
     - Mode = Literal="transactionreadwrite"
     - Mode = Literal="transactionreadwrite"
** Attribute3 MediaObject TransactionInside,AllowNull
** Attribute3 Data_MediaObject TransactionInside,AllowNull
  // wär schön, geht aber noch nicht org/oomodels/primitives/MediaObject
  // see also testcase model32
   + XMPresentation
   + XMPresentation
     - VisibilityStates = «state1||state2»
     - VisibilityStates = «state1||state2»

Latest revision as of 17:21, 11 December 2017

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]

Transaction38
«StateMachine, Singleton, RESTService»
state1state2finished[Finished]

A stateful (Fielding forbid!) REST Service
...
java.lang.String
com.sphenon.basics.data.Data_MediaObject
...
XMPresentation NameSomeService
XMLogicImplementation OnCreateInitialisationJavaCodeTemplate = « setup(context); ==>> state1; »
Attribute1String«TransactionInside,AllowNull»
...
XMPresentation VisibilityStates«state1»
XMVUI ModeLiteral = "transactionreadwrite"
Attribute2String«TransactionInside,AllowNull»
...
XMPresentation VisibilityStates«state2»
XMVUI ModeLiteral = "transactionreadwrite"
Attribute3Data_MediaObject«TransactionInside,AllowNull»
...
XMPresentation VisibilityStates«state1||state2»
XMVUI ModeLiteral = "transactionreadwrite"
wär schön, geht aber noch nicht org/oomodels/primitives/MediaObject
see also testcase model32
setupvoid () «NoUI,Transactional»
...
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> state1; setAttribute1(context, "Hallo"); setAttribute2(context, "Holla"); »
XMTransactional PerCalltrue
Independenttrue
Finalfalse
state1──► next1void () «»
...
XMPresentation Namenext
ImpactProceed
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> state2; »
state2──► back2void () «»
...
XMPresentation Nameback
ImpactProceed
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> state1; »
state1||state2──► cancelvoid () «»
...
XMPresentation Name"Stop Transaction"
ImpactAbort
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> finished; »