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

Code
~ state1,state2,finished[Finished] A stateful (Fielding forbid!) REST Service + XMPresentation - Name = SomeService + XMLogicImplementation - OnCreateInitialisation = JavaCodeTemplate=« setup(context); ==>> state1; » + XMPresentation - VisibilityStates = «state1» + XMVUI - Mode = Literal="transactionreadwrite" + XMPresentation - VisibilityStates = «state2» + XMVUI - Mode = Literal="transactionreadwrite" !! setup void NoUI,Transactional + XMLogicImplementation - OperationBody = JavaCodeTemplate=« ==>> state1; setAttribute1(context, "Hallo"); setAttribute2(context, "Holla"); » + XMTransactional - PerCall = true - Independent = true - Final = false !! next1 void state1 + XMPresentation - Name = next - Impact = Proceed + XMLogicImplementation - OperationBody = JavaCodeTemplate=« ==>> state2; » !! back2 void state2 + XMPresentation - Name = back - Impact = Proceed + XMLogicImplementation - OperationBody = JavaCodeTemplate=« ==>> state1; » !! cancel void state1||state2 + XMPresentation - Name = "Stop Transaction" - Impact = Abort + XMLogicImplementation - OperationBody = JavaCodeTemplate=« ==>> finished; »
 * 1) Transaction38 StateMachine
 * Attribute1 String TransactionInside,AllowNull
 * Attribute2 String TransactionInside,AllowNull