Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

  • There is an existing document on the wiki on how to hook a new procedure into the services layer

Anchor
new-procedure-app-layer
new-procedure-app-layer

Adding a new procedure in the application layer

...

  • in tomcat-main/src/main/resources/defaults:
    • add a new base-...xml file
    • add a new domain-...xml file
    • edit base-relations.xml to add new record type as a relate-able record type
      • (Per Chris M, this base-relations.xml file also has an 'all' keyword for all relation - or record? - types, but we don't appear to be using that currently)
    • edit the id / number pattern config file, base-other-idgenerator.xml, to add any automatically generated number patterns needed (also need to make the generator(s) in the services layer; there's a document on the DOC wiki about that)
  • in tomcat-main/src/main/resources:
    • add an xml include line to point to your new procedure's base-* file, to *-tenant.xml (e.g. core-tenant.xml and lifesci-tenant.xml) (in app layer tree) and to our-tenant-tenant.xml (in the mini-build)
    • add an xml include line to point to your new procedure's base-* file, to default.xml (this file appears to still be used in populating the lists of record types, at least in app layer tests)

...

Note

Need to add details.

Inspect uispec, uischema coming out of the app layer

(See App layer calls below for more details.)

Create App layer tests, including test datafiles

Note

Need to add details about adding App layer tests.

Adding a new procedure in the UI layer

...

A few additional calls are in
TenantServlet

  • init
  • composite

In TestUIRecords.java
testMisc()
will create 10 records of every object, procedure type
default /generator, may create 20 objects of each

...