You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Various use cases of JavaRosa can be extended with plugins.
4
+
5
+
## Parse
6
+
7
+
Intercept parts of the process and attach data to the created `FormDef` through its extras.
8
+
9
+
### API
10
+
-`XFormParser#addProcessor`
11
+
-`FormDef#getExtras`
12
+
13
+
The default `XFormParser` can be overridden by creating an implementation of `IXFormParserFactory` (`IXFormParserFactory.Wrapper` if you want to chain multiple plugins) and calling `XFormUtils.setXFormParserFactory` with it.
14
+
15
+
## Finalization
16
+
17
+
Inspect the `FormEntryModel` after finalization (or "post processing") and attach data via its extras.
18
+
19
+
### API
20
+
-`FormEntryController#addPostProcessor`
21
+
-`FormEntryModel#getExtras`
22
+
23
+
## Instance
24
+
25
+
Inspect external instances (their ID and parsed XML) after parsing or provide custom parsers for specific instances or file types.
26
+
27
+
### API
28
+
-`ExternalInstanceParser#addFileInstanceParser`
29
+
-`ExternalInstanceparsser#addProcessor`
30
+
31
+
The default `ExternalInstanceParser` can be overridden by creating an implementation of `ExternalInstanceParserFactory` and calling `XFormUtils.setExternalInstanceParserFactory` with it.
0 commit comments