Difference between revisions of "Artefact:Model/org/oomodels/sandbox/business/foundation/locations/LocatorURLWizard"

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...)
 
 
(5 intermediate revisions by the same user not shown)
Line 13: Line 13:
# LocatorURLWizard StateMachine
# LocatorURLWizard StateMachine
~ server,path,query,result,finished[Finished]
~ server,path,query,result,finished[Finished]
   Enter an URI step by step
   Enter an URL step by step
+ XMLogicImplementation
+ XMLogicImplementation
   - OnCreateInitialisation = JavaCodeTemplate=« ==>> server; »
   - OnCreateInitialisation = JavaCodeTemplate=« ==>> server; »
Line 22: Line 22:
     - VisibilityStates = [server,path,query]
     - VisibilityStates = [server,path,query]
     - ChangeabilityStates= [server]
     - ChangeabilityStates= [server]
    - ChangeabilityModes= [readonly,readwrite,transactionreadonly,transactionreadwrite]
** Path String
** Path String
   + XMLogic
   + XMLogic
Line 28: Line 29:
     - VisibilityStates = [path,query]
     - VisibilityStates = [path,query]
     - ChangeabilityStates= [path]
     - ChangeabilityStates= [path]
    - ChangeabilityModes= [readonly,readwrite,transactionreadonly,transactionreadwrite]
** Query String
** Query String
   + XMLogic
   + XMLogic
     - DefaultValue = JavaCode=« "key=value" »
     - DefaultValue = JavaCode=« "key=value" »
   + XMPresentation
   + XMPresentation
    - VisibilityStates = [query]
     - ChangeabilityStates= [query]
     - ChangeabilityStates= [query]
     - ChangeabilityStates= [query]
     - ChangeabilityModes= [readonly,readwrite,transactionreadonly,transactionreadwrite]
** URL LocatorURL
** URL LocatorURL
   + XMLogic
   + XMLogic
     - DefaultValue = JavaCode=« "" »
     - DefaultValue = JavaCode=« null »
   + XMPresentation
   + XMPresentation
     - VisibilityStates = [result]
     - VisibilityStates = [result]
Line 56: Line 59:
     - Name = create
     - Name = create
   + XMLogicImplementation
   + XMLogicImplementation
     - OperationBody = JavaCodeTemplate=« locator = Class_Factory_LocatorURL.construct(context, "http://" + server + "/" + path + "?" + query);\n ==>> result; »
     - OperationBody = JavaCodeTemplate=« url = Class_Factory_LocatorURL.construct(context, "http://" + server + "/" + path + "?" + query); ==>> result; »
!! back2 void()
!! back2 void()
   ~~ path
   ~~ path

Latest revision as of 12:50, 15 January 2010

Classification
Type Type:org/oomodels/WIML/1.0
Domain Domain:it/test
Category Type:org/oomodels/wiki/Model
More
Download Code
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]

LocatorURLWizard
«StateMachine»
serverpathqueryresultfinished[Finished]

Enter an URL step by step
...
XMLogicImplementation OnCreateInitialisationJavaCodeTemplate = « ==>> server; »
ServerString«»
...
XMLogic DefaultValueJavaCode = « "www.example.com" »
XMPresentation VisibilityStates[
    server,
    path,
    query
]
ChangeabilityStates[
    server
]
ChangeabilityModes[
    readonly,
    readwrite,
    transactionreadonly,
    transactionreadwrite
]
PathString«»
...
XMLogic DefaultValueJavaCode = « "my/path" »
XMPresentation VisibilityStates[
    path,
    query
]
ChangeabilityStates[
    path
]
ChangeabilityModes[
    readonly,
    readwrite,
    transactionreadonly,
    transactionreadwrite
]
QueryString«»
...
XMLogic DefaultValueJavaCode = « "key=value" »
XMPresentation VisibilityStates[
    query
]
ChangeabilityStates[
    query
]
ChangeabilityModes[
    readonly,
    readwrite,
    transactionreadonly,
    transactionreadwrite
]
URLLocatorURL«»
...
XMLogic DefaultValueJavaCode = « null »
XMPresentation VisibilityStates[
    result
]
server──► next1void () «»
...
XMPresentation Namenext
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> path; »
path──► next2void () «»
...
XMPresentation Namenext
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> query; »
query──► next3void () «»
...
XMPresentation Namecreate
XMLogicImplementation OperationBodyJavaCodeTemplate = « url = Class_Factory_LocatorURL.construct(context, "http://" + server + "/" + path + "?" + query); ==>> result; »
path──► back2void () «»
...
XMPresentation Nameback
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> server; »
query──► back3void () «»
...
XMPresentation Nameback
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> path; »
serverpathquery──► cancelvoid () «»
...
XMPresentation Namecancel
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> finished; »
result──► closevoid () «»
...
XMPresentation Nameclose
XMLogicImplementation OperationBodyJavaCodeTemplate = « ==>> finished; »