fluid-api/src/main/java/com/fluidbpm/program/api/vo/historic/FormFlowHistoricData.java
@Override
    public JSONObject toJsonObject() throws JSONException
    {
        JSONObject returnVal = super.toJsonObject();

        //Date Created...
        if(this.getDateCreated() != null)
        {
            returnVal.put(JSONMapping.DATE_CREATED,
                    this.getDateAsLongFromJson(this.getDateCreated()));
        }

        //Rule Executed...
        if(this.getRuleExecuted() != null)
        {
            returnVal.put(JSONMapping.RULE_EXECUTED,
                    this.getRuleExecuted());
        }

        //Rule Executed Result...
        if(this.getRuleExecutedResult() != null)
        {
            returnVal.put(JSONMapping.RULE_EXECUTED_RESULT,
                    this.getRuleExecutedResult());
        }

        //Rule Order...
        if(this.getFlowRuleOrder() != null)
        {
            returnVal.put(JSONMapping.FLOW_RULE_ORDER,
                    this.getFlowRuleOrder());
        }

        //Log Entry Type...
        if(this.getLogEntryType() != null)
        {
            returnVal.put(JSONMapping.LOG_ENTRY_TYPE,
                    this.getLogEntryType());
        }

        //User...
        if(this.getUser() != null)
        {
            returnVal.put(JSONMapping.USER,
                    this.getUser().toJsonObject());
        }

        //Flow Step...
        if(this.getFlowStep() != null)
        {
            returnVal.put(JSONMapping.FLOW_STEP,
                    this.getFlowStep().toJsonObject());
        }

        //Form...
        if(this.getForm() != null)
        {
            returnVal.put(JSONMapping.FORM,
                    this.getForm().toJsonObject());
        }

        //Job View...
        if(this.getJobView() != null)
        {
            returnVal.put(JSONMapping.JOB_VIEW,
                    this.getJobView());
        }

        return returnVal;
    }
@Override
    public JSONObject toJsonObject() throws JSONException
    {
        JSONObject returnVal = super.toJsonObject();

        //Date Created...
        if(this.getDateCreated() != null)
        {
            returnVal.put(JSONMapping.DATE_CREATED,
                    this.getDateAsLongFromJson(this.getDateCreated()));
        }

        //Rule Executed...
        if(this.getRuleExecuted() != null)
        {
            returnVal.put(JSONMapping.RULE_EXECUTED,
                    this.getRuleExecuted());
        }

        //Rule Executed Result...
        if(this.getRuleExecutedResult() != null)
        {
            returnVal.put(JSONMapping.RULE_EXECUTED_RESULT,
                    this.getRuleExecutedResult());
        }

        //Rule Order...
        if(this.getFlowRuleOrder() != null)
        {
            returnVal.put(JSONMapping.FLOW_RULE_ORDER,
                    this.getFlowRuleOrder());
        }

        //Log Entry Type...
        if(this.getLogEntryType() != null)
        {
            returnVal.put(JSONMapping.LOG_ENTRY_TYPE,
                    this.getLogEntryType());
        }

        //User...
        if(this.getUser() != null)
        {
            returnVal.put(JSONMapping.USER,
                    this.getUser().toJsonObject());
        }

        //Flow Step...
        if(this.getFlowStep() != null)
        {
            returnVal.put(JSONMapping.FLOW_STEP,
                    this.getFlowStep().toJsonObject());
        }

        //Form...
        if(this.getForm() != null)
        {
            returnVal.put(JSONMapping.FORM,
                    this.getForm().toJsonObject());
        }

        //Job View...
        if(this.getJobView() != null)
        {
            returnVal.put(JSONMapping.JOB_VIEW,
                    this.getJobView());
        }

        return returnVal;
    }
Conversion to {@code JSONObject} from Java Object.

@return {@code JSONObject} representation of {@code FormFlowHistoricData}.
@throws JSONException If there is a problem with the JSON Body.

@see ABaseFluidJSONObject#toJsonObject()