lunes, 27 de febrero de 2012

Strings and Dates fields in Bonitasoft


INSERT EN BONITASOFT

Error de error de sintaxis en o cerca de:

«$» : ${'insert into ASUNTO values (${id}, ${descripcion})'}

id y descripción son variables de proceso.


la consulta CORRECTA con groovy es la siguiente para Strings y fechas:
'${YourField}'

Your Sql sentence:
INSERT INTO test (Date_Application,Amount_Loaned) values ('${date_Application}', ${amount_Loaned})

domingo, 26 de febrero de 2012

Desarrollo sostenible


NO SE DEBERÍAN UTILIZAR LOS RECURSOS + RÁPIDAMENTE DE LO QUE ELLOS PUEDAN REGENERARSE, NI LIBERAR CONTAMINANTES EN UNA EXTENSIÓN MAYOR QUE LA QUE LOS RECURSOS NATURALES PUEDAN ASIMILAR.

---

X LO TANTO

SE REQUIERE MUCHA TECNOLOGÍA, QUE AUMENTE LA PRODUCCIÓN DEL ALIMENTO POR UNIDAD DE ÁREA Y X LABRIEGO.

QUE SE USE MÁS EFICIENTEMENTE LA ENERGÍA GENERADA Y QUE SE USEN FORMAS DE ENERGÍA QUE HOY NO APROVECHAMOS.

jueves, 23 de febrero de 2012

SchemaSpy creando un diccionario de datos

SchemaSpy (LGPL) Es una herramienta para la linea de ordenes y su sintaxis básica es:

java -jar schemaSpy_3.1.1.jar \
-t mysql \
-u root \
-o db-schema-report \
-host localhost \
-db bookstore \
-s bookstore \
-cp mysql-connector-java-5.0.5.jar \

Los pasos para generar el diccionario de datos son:

1. Descargar SchemaSpy y desempaquetar.

2. Descarga de: Dot ejecutable de Graphviz http://www.graphviz.org/ (asegurarse que el dot ejecutable esté en el PATH)

Otros usos de Graphviz: http://silviajqc.blogspot.com/2011/10/graphviz-ubuntu.html
linux--------
which dot: para saber en donde esta ubicado( la ruta) del archivo
--------------
3. Java Runtime Environment 5 or 6 (JRE 1.5 or JRE 1.6) https://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html

4. Descargar SchemaSpyGUI : http://sourceforge.net/projects/schemaspygui/files/latest/download

5. Ejecutar SchemaSpyGUI , y modificar los parámetros dependiendo de tu base de datos.


Ubicarse en la carpeta:
/home/silvia/Descargas/schemaSpyGUI20090302

y ejecutar el software: ./schemaSpyGUI.sh

6. Modificar los datos de la base de datos, driver y ubicación del schemaGUI.jar















7. Modificar la salida :
















8. Dar clic en start SchemaSpy: se abre otra ventana, copiar el código generado de salida y modificarlo:

Salida:

This is the command (password not displayed!) SchemaSpyGUI has generated:
java -jar /home/silvia/Descargas/schemaSpyGUI20090302/schemaSpyGUI.jar -dp /home/silvia/Escritorio/postgresql-8.4-702.jdbc4.jar -t pgsql -db
finanzas -all -host localhost -port 5432 -u marko -o /home/silvia/Escritorio/ -hq


/home/silvia/Escritorio/: Ruta de salida
marko: usuario de la base de datos
finanzas: base de datos

Modificar la ruta del schemaSpy.jar descarga 1 de este documento, y agregar contraseña:

silvia: contraseña

java -jar schemaSpy_5.0.0.jar -dp /home/silvia/Escritorio/SilviaProyectoDeGrado/Instaladores/DriverPostgres/postgresql-8.4-702.jdbc4.jar -t pgsql -db finanzas -all -host localhost -p silvia -port 5432 -u marko -o /home/silvia/Escritorio/ -hq

9. Ejecutar el codigo modificado, desde la ruta:

root@silvia-desktop:/home/silvia/Descargas#

10. Verificar creación del archivo : index.xml :) listo!!

El resultado:





Recordar: 
At the end of installation U need to edit (or create new) batch file to run against your databases, the default file is located at the root and called "run.bat", for Oracle I uses:
java -jar "[path]\schemaSpy_5.0.0.jar" -dp "[path]\ojdbc6.jar" -t orathin -db [SID] -host [IP] -port 1521 -u [admin_user] -p [passwd] -o "[output_path]" -schemas [ora_user1,ora_user2,ora_user3,...]

Recordar:

  • java -jar schemaSpy_4.1.1.jar -dp "C:\SchemaSpy\ojdbc14.jar" -t orathin -db FOOBAR -host foo-orc1-1 -port 1521 -u foo -p foo -o "C:\SchemaSpy" -hq 


Referencias:

http://buzznt.blogspot.com/2012/02/schemaspy.html


http://rm-rf-root.blogspot.com/2010/12/schemaspy-documentando-tu-base-de-datos.htmlhttp://www.joachim-uhl.de/projekte/schemaspygui/

http://www.joachim-uhl.de/projekte/schemaspygui/

jueves, 16 de febrero de 2012

Cannot assign a nil to a TJPEGImage

If that message of cannot assign a nil .... was obtained in STAR UML, when you want to export the diagram.

The problem is that you have some error in your diagram.. you can probe that by click in the Model menu, and click in the verify model submenu.

So, the solution for this is modify any error in the annotations, maybe a bad connector or bad association it has missed or a stereotype like < < include> >; or < < extend > >;. and after that you will be able to export the model without any problem.



miércoles, 15 de febrero de 2012

lunes, 13 de febrero de 2012

Processbase code

https://code.google.com/p/processbase/source/search?q=&origq=&btnG=Search+Trunk

OPENXAVA Error: A request has been denied as a potential CSRF attack y el Session Error

Ejecutar eclipse:

Escritorio/eclipse/eclipse ./eclipse

Seleccionar la ruta del workspace de Openxava descargado, en mi caso la versión:

.../Openxava/openxava-4.2.3/workspace

Hacer clic derecho sobre el archivo: Build.xml, seleccionar Debug as-> 3ra opción Ant Debug

Seleccionar: todas las opciones:

Compilar, desplegarWar, generarPortlets, actualizarOX, actualizarEsquema.

Despues del despliegue, se generan las carpetas:

workspace.dist/

consultorioUPBBGA.dist -> consultorioUPBBGA.war y /lib
consultorioUPBBGA-portlets.war.d


Abrir el archivo consultorioUPBBGA.war con el gestor de archivos, y editar el archivo web.xml dentro de /WEB-INF

y agregar las siguientes lineas en negrita en el servlet :

< servlet >
< servlet-name >dwrInvoker< /servlet-name >
< display-name >DWR Servlet< /display-name >
< description >Direct Web Remoter Servlet< /description >
< servlet-class >org.directwebremoting.servlet.DwrServlet< /servlet-class >
< init-param >
< param-name >debug< /param-name >
< param-value >false< /param-value >
< /init-param >
< init-param >
< param-name >crossDomainSessionSecurity< /param-name >
< param-value >false< /param-value >
< /init-param >
< load-on-startup >12< /load-on-startup >
< /servlet>


Guardar cambios, y desplegar en el servidor- Glassfish en mi caso.

http://sourceforge.net/projects/openxava/forums/forum/437015/topic/4594478/index/page/1

lunes, 6 de febrero de 2012

See all the portlets in the category in liferay

If you are using LIFERAY, for see all the portlets of a category in case that there are a lot, you have to use Internet Explorer.

Both Firefox and Chrome, don't allow the visualization of all, because the size of windows of them are smaller than the list of portlets.


spanish

PORTLET SIZE VAADIN LIFERAY

The AbsoluteLayout works with portlets as such as Horizontal and Vertical Layout (Vaadin GUI) do , the only thing that you have to do is to modify the size of it in a fixed way, because the porcentual value doesn't works with portlets.

so:

The correct way to set the size is:
mainLayout.setWidth("500px");
mainLayout.setHeight("400px");

you CAN NOT do this:

AbsoluteLayout mainLayout= new AbsoluteLayout();
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");

neither : mainLayout.setWidth("100%");


http://dev.vaadin.com/ticket/5521#comment:1

miércoles, 1 de febrero de 2012

Ver todos los portlets de una categoría en Liferay

Si estas usando LIFERAY, para poder ver todos los portlets de una categoría en caso de que sean muchos debes usar Internet Explorer.

Firefox y Chrome, no permiten la visualización de todos, porque
las ventanas de ambos browsers o exploradores son más pequeñas que la lista.

English