1.5

/**
* @function generateAIOConfig
* @description Validates the workflow selected by the user
* and constructs and an All-In-One Configuration using the
relevant
* input fields in the HTML Form.
* Any invalid inputs or workflow selections will be red-
flagged in
* the HTML Form. Null can also be returned if no workflow
selections
* are made or if the workflow selections made are of an
invalid sequence.
* @private
* @returns {Object} The All-In-One Configuration Object or
Null
*/
function generateAIOConfig() {
var config = {},
required = [],
i = null,
/* Parse Input Value to JSON Identifier List
(Helper Function) */
jsonIDListValue = function ($input) {
return (plainIDListToJson($input.val
())).identifiers;
},
/* Parse Input Value to Boolean (Helper Function)
*/
booleanValue = function ($input) {
return $input.is(":checked");
};
/* Get Input Value and add it to the Configuration
(Helper Function) */
function getInputValue($input, process, field, parser)
{
var value = $input.val();
if (value !== "") {
if (parser) {
value = parser($input);
Page 200