fluid-ws-java-client/src/main/java/com/fluidbpm/ws/client/v1/sqlutil/wrapper/SQLUtilWebSocketRESTWrapper.java
public List<FormFieldListing> getFormFields(
			boolean includeFieldDataParam,
			Form ... formsToGetFieldsForParam
	) {
		if(DISABLE_WS) {
			this.mode = Mode.RESTfulActive;
		}

		//FORM FIELDS...
		try {
			//When mode is null or [WebSocketActive]...
			if(this.getFormFieldsClient == null && Mode.RESTfulActive != this.mode) {
				this.getFormFieldsClient = new SQLUtilWebSocketGetFormFieldsClient(
						this.baseURL,
						null,
						this.loggedInUser.getServiceTicketAsHexUpper(),
						this.timeoutMillis,
						includeFieldDataParam,
						COMPRESS_RSP,
						COMPRESS_RSP_CHARSET);

				this.mode = Mode.WebSocketActive;
			}
		} catch (FluidClientException clientExcept) {
			if(clientExcept.getErrorCode() !=
					FluidClientException.ErrorCode.WEB_SOCKET_DEPLOY_ERROR) {
				throw clientExcept;
			}
			this.mode = Mode.RESTfulActive;
		}

		if(formsToGetFieldsForParam == null ||
				formsToGetFieldsForParam.length < 1) {
			return null;
		}

		Form[] formsToFetchFor =
				new Form[formsToGetFieldsForParam.length];
		for(int index = 0;index < formsToFetchFor.length;index++) {
			formsToFetchFor[index] = new Form(formsToGetFieldsForParam[index].getId());
		}

		if(this.getFormFieldsClient != null) {
			return this.getFormFieldsClient.getFormFieldsSynchronized(
					formsToFetchFor);
		} else {
			List<FormFieldListing> returnVal = new ArrayList<>();

			for(Form formToFetchFor : formsToFetchFor) {
				List<Field> listOfFields =
						this.sqlUtilClient.getFormFields(
								formToFetchFor,
								includeFieldDataParam);

				FormFieldListing toAdd = new FormFieldListing();
				toAdd.setListing(listOfFields);
				toAdd.setListingCount((listOfFields == null) ? 0 : listOfFields.size());
				returnVal.add(toAdd);
			}

			return returnVal;
		}
	}
public List<FormFieldListing> getFormFields(
			boolean includeFieldDataParam,
			Form ... formsToGetFieldsForParam
	) {
		if(DISABLE_WS) {
			this.mode = Mode.RESTfulActive;
		}

		//FORM FIELDS...
		try {
			//When mode is null or [WebSocketActive]...
			if(this.getFormFieldsClient == null && Mode.RESTfulActive != this.mode) {
				this.getFormFieldsClient = new SQLUtilWebSocketGetFormFieldsClient(
						this.baseURL,
						null,
						this.loggedInUser.getServiceTicketAsHexUpper(),
						this.timeoutMillis,
						includeFieldDataParam,
						COMPRESS_RSP,
						COMPRESS_RSP_CHARSET);

				this.mode = Mode.WebSocketActive;
			}
		} catch (FluidClientException clientExcept) {
			if(clientExcept.getErrorCode() !=
					FluidClientException.ErrorCode.WEB_SOCKET_DEPLOY_ERROR) {
				throw clientExcept;
			}
			this.mode = Mode.RESTfulActive;
		}

		if(formsToGetFieldsForParam == null ||
				formsToGetFieldsForParam.length < 1) {
			return null;
		}

		Form[] formsToFetchFor =
				new Form[formsToGetFieldsForParam.length];
		for(int index = 0;index < formsToFetchFor.length;index++) {
			formsToFetchFor[index] = new Form(formsToGetFieldsForParam[index].getId());
		}

		if(this.getFormFieldsClient != null) {
			return this.getFormFieldsClient.getFormFieldsSynchronized(
					formsToFetchFor);
		} else {
			List<FormFieldListing> returnVal = new ArrayList<>();

			for(Form formToFetchFor : formsToFetchFor) {
				List<Field> listOfFields =
						this.sqlUtilClient.getFormFields(
								formToFetchFor,
								includeFieldDataParam);

				FormFieldListing toAdd = new FormFieldListing();
				toAdd.setListing(listOfFields);
				toAdd.setListingCount((listOfFields == null) ? 0 : listOfFields.size());
				returnVal.add(toAdd);
			}

			return returnVal;
		}
	}
public List < FormFieldListing > getFormFields ( boolean includeFieldDataParam , Form ... formsToGetFieldsForParam ) { if ( DISABLE_WS ) { this . mode = Mode . RESTfulActive ; } //FORM FIELDS... try { //When mode is null or [WebSocketActive]... if ( this . getFormFieldsClient == null && Mode . RESTfulActive != this . mode ) { this . getFormFieldsClient = new SQLUtilWebSocketGetFormFieldsClient ( this . baseURL , null , this . loggedInUser . getServiceTicketAsHexUpper ( ) , this . timeoutMillis , includeFieldDataParam , COMPRESS_RSP , COMPRESS_RSP_CHARSET ) ; this . mode = Mode . WebSocketActive ; } } catch ( FluidClientException clientExcept ) { if ( clientExcept . getErrorCode ( ) != FluidClientException . ErrorCode . WEB_SOCKET_DEPLOY_ERROR ) { throw clientExcept ; } this . mode = Mode . RESTfulActive ; } if ( formsToGetFieldsForParam == null || formsToGetFieldsForParam . length < 1 ) { return null ; } Form [ ] formsToFetchFor = new Form [ formsToGetFieldsForParam . length ] ; for ( int index = 0 ; index < formsToFetchFor . length ; index ++ ) { formsToFetchFor [ index ] = new Form ( formsToGetFieldsForParam [ index ] . getId ( ) ) ; } if ( this . getFormFieldsClient != null ) { return this . getFormFieldsClient . getFormFieldsSynchronized ( formsToFetchFor ) ; } else { List < FormFieldListing > returnVal = new ArrayList <> ( ) ; for ( Form formToFetchFor : formsToFetchFor ) { List < Field > listOfFields = this . sqlUtilClient . getFormFields ( formToFetchFor , includeFieldDataParam ) ; FormFieldListing toAdd = new FormFieldListing ( ) ; toAdd . setListing ( listOfFields ) ; toAdd . setListingCount ( ( listOfFields == null ) ? 0 : listOfFields . size ( ) ) ; returnVal . add ( toAdd ) ; } return returnVal ; } }
Retrieves all the (Fields) for the {@code formsToGetDescForParam}.

@param includeFieldDataParam Should Field data be included?
@param formsToGetFieldsForParam The Fluid Form to get Descendants for.

@return The {@code formsToGetFieldsForParam} Fields as {@code Field}'s.
Retrieves all the ( Fields ) for the { @code formsToGetDescForParam } .