Difference between revisions of "Artefact:Model/org/oomodels/sandbox/business/foundation/entities/RelationshipWizard"

From OOModels
Jump to navigationJump to search
(New page: {{Metabox | Meta_Type = Type:org/oomodels/WIML/1.0 | Meta_Domain = Domain:it/test | Meta_Category = Type:org/oomodels/wiki/Model | Meta_Downloa...)
 
 
(9 intermediate revisions by the same user not shown)
Line 4: Line 4:
| Meta_Category              = Type:org/oomodels/wiki/Model
| Meta_Category              = Type:org/oomodels/wiki/Model
| Meta_Download              = true
| Meta_Download              = true
| Meta_Diagram = Artefact:Diagram/org/oomodels/sandbox/business/foundation/entities/Entities
| Meta_AddTypeToCategory    = true
| Meta_AddTypeToCategory    = true
| Meta_AddCategoryToCategory = true
| Meta_AddCategoryToCategory = true
Line 11: Line 12:


<wiml>
<wiml>
# RelationWizard StateMachine
# RelationshipWizard StateMachine
~ selectperson,createperson,result
~ selectperson,createperson,result,finished[Finished]
   This wizard creates a relation in two steps
   This wizard creates a relationship in two steps
+ XMLogicImplementation
+ XMLogicImplementation
   - OnCreateInitialisation = JavaCodeTemplate=« ==>> selectperson; »
   - OnCreateInitialisation = JavaCodeTemplate=« ==>> selectperson; »
** Relation org/oomodels/sandbox/business/foundation/entities/Relation
** Relationship org/oomodels/sandbox/business/foundation/entities/Relationship
   + XMLogic
   + XMLogic
     - DefaultValue = JavaCode=« Class_Factory_Relation.construct(context) »
     - DefaultValue = JavaCode=« Class_Factory_Relationship.construct(context, null, null) »
   + XMPresentation
   + XMPresentation
     - VisibilityStates = [selectperson,createperson]
     - VisibilityStates = [selectperson,createperson,result]
   + XMVUI
   + XMVUI
     - ModeMap = mm1={ State="selectperson", Mode={Literal="transactionreadwrite_eins"} }, mm2={ State="createperson", Mode={Literal="transactionreadwrite_zwei"}, mm3={ State="result", Mode={Literal="transactionreadonly"} }
     - ModeMap = mm1={ State="selectperson", Mode={Literal="transactionreadwrite_eins"} }, mm2={ State="createperson", Mode={Literal="transactionreadwrite_zwei"} }, mm3={ State="result", Mode={Literal="transactionreadonly"} }
!! next1 void()
!! next1 void()
   ~~ selectperson
   ~~ selectperson
Line 35: Line 36:
   + XMLogicImplementation
   + XMLogicImplementation
     - OperationBody = JavaCodeTemplate=« ==>> result; »
     - OperationBody = JavaCodeTemplate=« ==>> result; »
!! next3 void()
  ~~ result
  + XMPresentation
    - Name = close
  + XMLogicImplementation
    - OperationBody = JavaCodeTemplate=« ==>> finished; »
</wiml>
</wiml>

Latest revision as of 13:42, 19 January 2010

Classification
Type Type:org/oomodels/WIML/1.0
Domain Domain:it/test
Category Type:org/oomodels/wiki/Model
More
Download Code
Diagram
Namespace (more)

Provides a sandbox for modelling.

It is intended to develop generalised, sufficiently abstract artefacts that can serve as common ground for more specific models.

create new pages

Code[edit]

RelationshipWizard
«StateMachine»
selectpersoncreatepersonresultfinished[Finished]

This wizard creates a relationship in two steps
...
XMLogicImplementation OnCreateInitialisationJavaCodeTemplate = « ==>> selectperson; »
RelationshipRelationship«»
...
XMLogic DefaultValueJavaCode = « Class_Factory_Relationship.construct(context, null, null) »
XMPresentation VisibilityStates[
    selectperson,
    createperson,
    result
]
XMVUI ModeMapmm1 = {
    State = "selectperson",
    Mode = {
        Literal = "transactionreadwrite_eins"
    }
},
mm2 = {
    State = "createperson",
    Mode = {
        Literal = "transactionreadwrite_zwei"
    }
},
mm3 = {
    State = "result",
    Mode = {
        Literal = "transactionreadonly"
    }
}
selectperson──► next1void () «»
...
XMPresentation Namenext
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> createperson; »
createperson──► next2void () «»
...
XMPresentation Namenext
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> result; »
result──► next3void () «»
...
XMPresentation Nameclose
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> finished; »