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

From OOModels
< Artefact:Model‎ | net‎ | leue‎ | andreas‎ | sandbox‎ | model38
Revision as of 16:44, 11 December 2017 by AndreasLeue (talk | contribs)
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
...
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"
Attribute3com.sphenon.basics.data.Data_MediaObject«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; »