question: public MPInstancePara createParameter ( int seqNo , String parameterName , Object value ) { MPInstancePara ip = new MPInstancePara ( this , seqNo ) ; if ( value == null ) { ip . setParameter ( parameterName , ( String ) null ) ; } else if ( value instanceof BigDecimal ) { ip . setParameter ( parameterName , ( BigDecimal ) value ) ; } else if ( value instanceof Integer ) { ip . setParameter ( parameterName , ( Integer ) value ) ; } else if ( value instanceof Timestamp ) { ip . setParameter ( parameterName , ( Timestamp ) value ) ; } else if ( value instanceof Boolean ) { ip . setParameter ( parameterName , ( Boolean ) value ) ; } else { ip . setParameter ( parameterName , value . toString ( ) ) ; } ip . saveEx ( ) ; return ip ; }
target:  Create Process Instance Parameter and save to database