Hi,
When I extract workflow data from AS_Applications, either using the MongoDB tool or an API call, I get a tree of information, as would be expected for a document based storage system. A rough representation of that tree, as I understand it, is shown below.
What I need to know is how I determine the current values of the fields that are held under the revision structure?
Are they held in revision0 (for convenience that would be ideal)
Or do I have to determine the highest revision number for each field and get the value from there(since not every revision appears to contain every field)?
Workflow "Header" fields
- e.g. creator.email
creator.firstName
creator.id
creator.lastName
creator.subscription.Id
creator.subscription.Name
iconId
.====>revisions
* revision number
-e.g. author.email
author.firstName
author.id
author.lastName
author.subscription.Id
author.subscription.Name
canDownload
credentialType
dateCreated
.====.====>applications
* application number
(a couple of fields that describe application parameters for multiple apps for this revision)
name
filename