Journey Manager (JM)
The transaction engine for the platform. |
Form Builder Platform Developer | All versions
This feature is related to all versions.
The main persistence model for Manager is the XML file. This is stored on the server, sent to the browser when a form is rendered, and sent back to the server when the form is submitted. It is also saved to the server in background save events.
However, there are cases when it may be useful to store information on the server which is not stored in the XML file. Some of these cases include:
There is a simple way to store and retrieve arbitrary string data against a transaction using Fluent service calls. Let's look at these in more detail.
You can use the TxnUpdater.setProperty(String name, String value)
method to create or update a property value. This is illustrated below:
new TxnUpdater(txn)
.setProperty("MyProp", "MyValue")
.update()
You can use the TxnQuery
class to search for a particular transaction, and then get the Property Map within the Txn value object to retrieve the particular property. This is illustrated below:
Txn txn = new TxnQuery()
.setSubmitKey(…) // or similar to find the correct transaction
.withPropertyMap() // to retrieve the properties
.firstValue() //to find the first matching transaction
// The returned txn contains an attribute propertyMap of type Map<String,String>
This is important to note that:
Next, learn how to view Transact functions.