labelOutputs.setEffectClasses(labelEffects);
labelOutputs.setValue("Outputs:");
form.addFormItem(labelOutputs);
form.addFormItem(tableOfOutputs);
}
CompleteButtonRepresentation completeButton = new CompleteButtonRepresentation();
completeButton.setText("Complete");
completeButton.setEffectClasses(completeButtonEffects);
completeButton.setEventActions(asMapOfNull(completeButtonActions, FBScript.class));
form.addFormItem(completeButton);
form.setAction("complete");
form.setEnctype("multipart/form-data");
form.setMethod("POST");
form.setName(task.getTaskId() + "AutoForm");