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
Line 30: Line 30:
** Attribute3 MediaObject TransactionInside,AllowNull
** Attribute3 MediaObject TransactionInside,AllowNull
   + XMPresentation
   + XMPresentation
     - VisibilityStates = «state1,state2»
     - VisibilityStates = «state1||state2»
   + XMVUI
   + XMVUI
     - Mode = Literal="transactionreadwrite"
     - Mode = Literal="transactionreadwrite"

Revision as of 16:34, 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
...
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"
Attribute3MediaObject«TransactionInside,AllowNull»
...
XMPresentation VisibilityStates«state1||state2»
XMVUI ModeLiteral = "transactionreadwrite"
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; »