Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Se generó un nuevo componente de JWF (como Mail, RBAC y otros) llamado HttpComponent
  • Al componente se le configuran url types que pueden usarse luego en el mail Velocity.
  • Este componente se configura en ideasoft-jwf/config/StaticComponents.xml:
    Code Block
    <service name ="java:ideasoft/HttpComponent" className = "com.ideasoft.components.impl.generic.HttpComponentImpl" type="singleton">
    	<config>
    		<urlType name="birtPDF" url="http://localhost:8080/o3report/preview?Cust=1&amp;__format=pdf&amp;__report={0}.rptdesign"/>
    		<urlType name="birt" url="http://localhost:8080/o3report/preview?Cust=1&amp;&amp;__report={0}.rptdesign"/>
    	</config>
    </service>
    

...

  • Para agregar el reporte BIRT 'report1' como PDF:
    Code Block
    $attachments.add($http.get('birtPDF', 'report1')
    
    y para agregarlo como texto HTML:
    Code Block
    $http.getText('birt', 'report1')