2018.1

Table Of Contents
/* Get Input Value and add it to the Configuration
(Helper Function) */
function getInputValue($input, process, field, parser)
{
var value = $input.val().trim();
if (value) {
if (parser)
value = parser($input);
if (config[process] === undefined)
config[process] = {};
config[process][field] = value;
}
}
/* Get Required & Actual Workflow Selections */
$inputs.each(function () {
if ($(this).prop("checked"))
config[this.id] = {};
$(this).prop("required", false);
required.push(this.id);
});
var selections = (Object.keys(config)).length;
/* Verify the Workflow Selections and note any
omissions */
var matches = 0,
missing = [];
for (i = 0; i < required.length; i += 1) {
var step = required[i];
if (config[step]) {
if (!matches && step === "jobcreation")
missing.push("contentcreation");
matches += 1;
} else {
if (matches !== 0) missing.push(step);
}
if (matches === selections) break;
}
/* Add the inputs to the Workflow Selections to Create
the All-In-One Configuration */
if (config.datamining) {
Page 298