Code example for ObjectOutput

Methods: writeBoolean, writeLong, writeUTF

0
   */ 
  public void dehydrate( HydrationContext context, ObjectOutput out )
    throws IOException 
  { 
    if ( m_parentProcessInstanceIdPath != null ) {
      out.writeBoolean( true );
      out.writeUTF( m_parentProcessInstanceIdPath );
    } else { 
      out.writeBoolean( false );
    } 
    if ( m_clientId != null ) {
      out.writeBoolean( true );
      out.writeUTF( m_clientId );
    } else { 
      out.writeBoolean( false );
    } 
    if ( m_startedBy != null ) {
      out.writeBoolean( true );
      out.writeUTF( m_startedBy );
    } else { 
      out.writeBoolean( false );
    } 
    if (m_startedDate != null) {
      out.writeBoolean( true );
      out.writeLong(m_startedDate.getTime());
    } else { 
      out.writeBoolean( false );      
    } 
    super.dehydrate( context, out );
  }