Workflow not generating approval groupIssue Workflow is not generating the approval group. The Approval Group is showing as empty or the Approval Group is not populated ReleaseAnyCauseThe workflow context encountered the error "org.mozilla.javascript.WrappedException: Wrapped ReferenceError: "groups" is not defined" This is due to the approval group script being used on the activity of type 'Approval - User' instead of type 'Approval - Group' The activity definition 'Approval - User' cannot recognised the reference 'groups Below OOB script sample for 'Approval - Group': for ( var id in groups){var group = groups[id];if(groups[id].approvalIDs && groups[id].approvalIDs['more_info']){workflow.scratchpad.testTask = true;answer = 'more_info';}else if(groups[id].approved >0){answer = 'approved';}else if (groups[id].rejected >0){answer = rejected;}}ResolutionMake sure that your script format is for the correct activity. The 'Approval - User' activity definition cannot recognised the variable reference "groups" because this is used by the 'Approval - Group' activity definition instead