Artefact:Model/net/leue/andreas/sandbox/model38/Transaction38

From OOModels
< Artefact:Model‎ | net‎ | leue‎ | andreas‎ | sandbox‎ | model38
Jump to navigationJump to search
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; »