Download Projecto em Engenharia Informatica
Transcript
Chapter 4. Design
49
For now, the result of having multiple input elements with the same name is undefined
as it was deemed unnecessary to support.
Below lies an example of that part of the JSON file.
"elements":{
"nonExistingElement": {
"mapsTo": "doesNotMatter",
"path": "",
"type": "file"
},
"example_in":{
"mapsTo": "str_out",
"type": "String"
}
"integerVal":{
"mapsTo": "val_out",
"type": "Integer"
},
"result": {
"mapsTo": "opinion_out",
"type": "String",
"forceValue": {
"Accept": "Accepted",
"Reject": "Rejected",
}
}
},
"CMISBaseFolder" : "/wfcontents/registerAccount"
}
So far, I only found a single design flaw on this system. It is not prepared for data
with loops. This means that there’s no way of writing information with variable number
of items directly into it. Instead, a java class is required to make the loops and output
the required HTML. While it may seem a large issue, it is actually possible to make
generalized classes that deal with the same kind of data and output from the BPM and
then reuse them on different user tasks. This was caused by how I saw that BPM works
and stores information. I didn’t perceive that such thing is used in BPM based systems.
For a complete uncut version of these files see the Attachments section A. It also
includes the corresponding *.form.html file for this *.rules.js file.