kbee-workflow conceptos y arquitectura

33

Upload: atolomei

Post on 20-Jun-2015

426 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Kbee-workflow Conceptos y Arquitectura
Page 2: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 2 de 33

kbee.workflow

Conceptos y arquitectura

Propiedades del documento

Proyecto:

kbee.workflow

Título del documento:

Conceptos y arquitectura

Fecha de versión:

12/04/07

Número de versión:

V005

Autor:

Novamens

Page 3: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 3 de 33

Tabla de contenidos

1. Introducción...............................................................................................................................................................5

1.1 Estrategia de producto y características de kbee.workflow ................................................................................................ 7

2. Componentes de kbee.workflow...........................................................................................................................8

2.1 kbee process designer.......................................................................................................................................................... 8

2.2 kbee.workflow server ............................................................................................................................................................ 8

2.3 kbee.OLAP Server................................................................................................................................................................ 9

2.4 kbee WQL ............................................................................................................................................................................. 9

2.5 kbee WQL monitor................................................................................................................................................................ 9

3. Arquitectura de kbee.workflow...........................................................................................................................10

3.1 Capa de aplicaciones clientes ............................................................................................................................................ 11

3.2 Capa de servicio a clientes................................................................................................................................................. 11

3.3 Capa del workflow server ................................................................................................................................................... 11

3.4 Capa de conectores............................................................................................................................................................ 11

4. Definiciones para la administración de procesos...........................................................................................12

4.1 Casos................................................................................................................................................................................... 12

4.2 Procedimientos ................................................................................................................................................................... 12

4.3 Tareas.................................................................................................................................................................................. 12

4.4 Work Items .......................................................................................................................................................................... 12

5. Especificación de procesos con Redes de Petri .............................................................................................13

5.1 Redes de Petri clásicas ...................................................................................................................................................... 13

5.2 Redes de Petri de alto nivel................................................................................................................................................ 14

5.3 Especificación de procesos con Redes de Petri................................................................................................................ 15

5.4 Construcciones de ruteo..................................................................................................................................................... 16

5.5 Triggering ............................................................................................................................................................................ 19

6. kbee Workflow Query Language (kbee.WQL)..................................................................................................20

Page 4: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 4 de 33

6.1 Modelos nativo y extendido ................................................................................................................................................ 20

6.2 El lenguaje kbee WQL........................................................................................................................................................ 21

7. Servidor analítico y reportes OLAP...................................................................................................................25

Anexo I Licencia kbee.workflow.............................................................................................................................26

Page 5: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 5 de 33

1. Introducción

La gestión de procesos en las organizaciones

Normalmente los procesos de trabajo en una organización requieren seguir una serie de pasos para resolver un problema o producir un entregable. Estos pasos pueden implicar la ejecución de tareas por parte de usuarios (miembros de la organización o incluso externos) con la asistencia de herramientas con diverso grado de automatización, o pasos que pueden ser ejecutados directamente y enteramente por aplicaciones o sistemas. Ejemplos de procesos pueden ser el despacho de un pedido, la solución de un reclamo o la gestión del ciclo de vida de un expediente.

Se le dice proceso a la secuencia específica de pasos utilizada para resolver un problema puntual. Normalmente la determinación de cuales son los pasos adecuados, de saber quien y en qué momento debe ejecutarlos es resuelto en base al “expertise” o conocimiento de los miembros de la organización que se involucran en dicho proceso.

Usualmente también son esos mismos miembros que manualmente pasan el control de un proceso al responsable de la ejecución de cada paso. Por ejemplo, cuando un expediente o pedido viaja de oficina en oficina en carpetas llevadas por personas.

La complejidad creciente de los procesos

A medida que la complejidad y cantidad de procesos crece se torna indispensable para un nivel gerencial poder controlar y monitores este flujo de trabajo en una organización; poder saber en cualquier momento que cantidad de procesos y en que estado se están resolviendo.

Dada la complejidad cada vez mayor del trabajo en las organizaciones, también es cada vez más crítico poder asegurarse que la gestión de procesos sigue exactamente los pasos correctos tal como son definidos por los responsables de la organización (un ejemplo inmediato son los requerimientos de las normas de calidad).

El problema es que la gestión y el monitoreo manual se tornan inmanejables si crece la complejidad o el número de los procesos.

También resulta arduo y costos adaptar las aplicaciones informáticas que tienen incorporados los circuitos de trabajo de la organización cuando los procesos de trabajo cambian.

La globalización y descentralización de las organizaciones, la cada vez mayor integración de clientes y Partners en la dinámica de trabajo aumentan cada vez más la necesidad de tener sistemas de información con una capa robusta y versátil para la ejecución de procesos.

Page 6: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 6 de 33

Business Process Management Software (BPM)

Un programa para la administración de procesos de negocio (BPM software, por su sigla en inglés: Business Process Management software) es un software de infraestructura que permite automatizar la ejecución y el control de los procesos decidiendo en base reglas gráficamente especificadas quién (o que aplicación) y en qué momento debe ejecutar una tarea para resolver un problema. También incluye herramientas de monitoreo que brindan indicadores sobre la cantidad, historia y estado de los procesos.

Este software debe ser independiente de las aplicaciones que llevan a cabo las tareas propiamente dichas para que las reglas de ruteo y asignación no estén acopladas a ellas y poder así cambiarlas fácilmente siguiendo la dinámica de las organizaciones modernas.

kbee.workflow

kbee.workflow es un administrador de procesos de negocio simple y versátil. Ofrece las herramientas necesarias para generar una sofisticada y flexible capa de procesos en una aplicación de negocios.

Se trata de una plataforma sólida y probada en aplicaciones con miles de usuarios y procesos en ejecución, desarrollada en tecnología Java, basada en estándares abiertos. Cuenta con componentes integrados al entorno de desarrollo Eclipse para la definición de procesos y tareas; herramientas para el monitoreo de los procesos en ejecución, infraestructura de tipo OLAP-Multidimensional para reportes analíticos, más un lenguaje de consulta sobre el motor de procesos de tipo OQL (Object Query Language) que hace simple la integración con consolas de trabajo y otras aplicaciones.

Page 7: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 7 de 33

1.1 Estrategia de producto y características de kbee.workflow

Es simple y especializado

El producto está diseñado para ser una herramienta potente y simple para desarrolladores de aplicaciones complejas. Para esto, se centra en hacer muy bien lo esencial, concentrándose en lo indispensable y dejando en manos de los desarrolladores la extensión de las funcionalidades para distintos dominios mediante bibliotecas.

Sus componentes fundamentales son un lenguaje de especificación gráfica sencillo y potente, que ofrece el mayor poder de expresión posible para definir procesos con líneas de ejecución paralelizables (basado en la abstracción matemática conocida como Redes de Petri), una aplicación integrada al Framework Eclipse para la definición gráfica de procesos, un motor de ejecución y control de los procesos simple y robusto, un lenguaje de consulta de tipo OQL para la obtención de indicadores para monitoreo, y un servidor de tipo OLAP para reportes e inteligencia analítica.

Fácilmente extensible a cada dominio

Al estar enteramente escrito en Java y en forma de Framework, sus componentes básicos son fácilmente extensibles. Se pueden adjuntar fácilmente cualquier registro u operación ante los eventos propagados por el motor de workflow ante cualquier cambio de estado en los procesos.

kbee Workflow Query Language. Lenguaje de consulta OQL

kbee.workflow ofrece un lenguaje de consulta de tipo OQL (Object Query Language) que permite la obtención de indicadores para el monitoreo del estado de los procesos en tiempos óptimos.

Puede aplicar criterios de selección tanto sobre atributos nativos de un BPM (como puede ser el estado o tiempo de ejecución de un proceso) o sobre atributos llamados “extendidos” propios de un dominio particular (como puede ser el número de un expediente). Por ejemplo, se pede obtener indicadores como la cantidad de procesos en determinado estado o las tareas realizadas sobre un determinado expediente.

LGPL: Completamente Open Source

Tiene toda la comunidad Open Source de respaldo. Al ser con licencia LGPL ofrece libertad total a quien lo usa y garantiza que no se degradará con el tiempo.

Escalable

Por ser su lenguaje de especificación gráfica potente y sencillo y solamente compuesto por una pocas primitivas su motor de procesos es pequeño y eficiente. Por otro lado, su lenguaje de consulta WQL escala eficientemente hasta con decenas de miles de procesos activos.

Basado en estándares abiertos

Construido e integrado a estándares como JNDI, JTA, JMS, JDBC, etcétera.

Page 8: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 8 de 33

2. Componentes de kbee.workflow

2.1 kbee process designer Aplicación para la especificación gráfica de procedimientos, con sus tareas y reglas de ruteo.

Es un Plug-In de la plataforma de desarrollo Eclipse (http://www.eclipse.org) que permite un ambiente de trabajo integrado donde se pueden especificar procedimientos, tareas en código Java, HTML, JSP o lo que sea necesario (capítulos 4 y 5).

Figura 1. kbee process designer en Eclipse

2.2 kbee.workflow server Es el motor de ejecución de procesos, responsable de la ejecución y control de cada uno. Es pequeño y especializado. También tiene la responsabilidad de la persistencia de cada cambio de estado de cada proceso. Además, incluye un mecanismo de propagación de eventos que puede notificar cada cambio de estado a las aplicaciones que se registren con la capacidad de propagar esos eventos a colas de mensajes JMS.

Alarmas

Como complemento incluye un mecanismo de programación y registro de alarmas mediante el cual es posible activar alarmas en caso de que indicadores superen umbrales de control y

Page 9: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 9 de 33

ejecutar acciones en consecuencia. Por ejemplo, se podría querer activar alguna señal en un tablero de control cuando la cantidad de procesos activos superara un cierto número, o cuando la demora promedio de la ejecución superara lo esperado, o procesos con tareas fallidas, etcétera.

2.3 kbee.OLAP Server Servidor OLAP-Multidimensional, que permite monitorear de forma eficiente y en tiempo real las variables relevantes de cada sistema (tales como estado e historia de cada proceso, tareas en ejecución, detectar cuellos de botella en los procesos, reportes de tareas por usuario, estado de cada documento, etcétera (Capítulo 7).

2.4 kbee WQL kbee WQL (Workflow Query Language) es un lenguaje de consulta, con una sintaxis similar a los lenguajes OQL (Object Query Language), que permite la selección y proyección de atributos nativos o extendidos de las entidades del workflow. El lenguaje permite realizar consultas sobre el motor de workflow en forma análoga a como se llevan a cabo consultas sobre un motor de Base de Datos Relacional (Capítulo 6).

2.5 kbee WQL monitor Consola de consulta que permite le escritura de un sentencia WQL y la visualización de los resultados correspondientes.

Page 10: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 10 de 33

3. Arquitectura de kbee.workflow

kbee.workflow presenta una arquitectura de cuatro capas: capa de aplicaciones y componentes clientes, capa de servicios a los clientes, capa del servidor de workflow y capa conectores.

Figura 2. Arquitectura kbee.workflow

Page 11: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 11 de 33

3.1 Capa de aplicaciones clientes La primera capa es la de las aplicaciones clientes. El diseñador gráfico de procesos, la consola de monitoreo de procesos y toda aplicación que utilice algunos de los servicios del workflow están incluidas en esta capa.

Ejemplos de aplicaciones pueden ser consolas personalizadas de trabajo, consolas de monitoreo o tableros personalizados de control.

3.2 Capa de servicio a clientes En esta capa, una serie de componentes Java (Web Services, Servlets, Páginas Jsp, etc) implementan una bien definida interfase de todos los servicios del servidor del workflow para que sean accedidos vía HTTP.

En caso de que las aplicaciones cliente funcionen en el mismos servidor y máquina virtual que las aplicaciones del servidor del workflow, tienen las alternativa de acceder directamente a sus servicios a través de la API Java que define su interfase.

3.3 Capa del workflow server El motor central y el analítico residen en una capa llamada BPM (o simplemente Server). El motor central controla la ejecución de los procesos, su persistencia y la propagación de los eventos generados por los cambios de estados de cada proceso en ejecución.

El motor analítico tiene la capacidad de recolectar los eventos generados por el motor central para mostrar estadísticas de funcionamiento en forma de cubos OLAP. El almacenamiento en el servidor OLAP es asincrónico, de forma de no degradar la performance del motor de workflow.

3.4 Capa de conectores La última capa contiene una biblioteca de conectores que permite interactuar con sistemas externos. La biblioteca incluye conectores para acceder a bases relacionales vía JDBC, a aplicaciones Java vía JNI o JMS, a servicios de directorios (LDAP) y a aplicaciones montadas sobre el servidor de contenidos de kbee.cms. También incluye una API para el desarrollo de conectores específicos.

Page 12: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 12 de 33

4. Definiciones para la administración de procesos El objetivo principal de la administración de procesos es asegurar que las actividades correctas sean ejecutadas por las personas y aplicaciones correctas en el tiempo correcto.

Para esto se emplea una serie de abstracciones matemáticas que permiten modelar los procesos y administrar la ejecución de las tareas.

4.1 Casos Caso es el problema que resuelve un proceso específico. Ejemplos de casos son documentos puntuales (un expediente con un determinado número puede ser un caso).

4.2 Procedimientos Un proceso de Workflow se diseña para tratar casos similares ejecutando tareas en un orden específico.

La definición de un proceso especifica qué tareas tienen que ejecutarse y en qué orden. Un término alternativo para la definición de un proceso de workflow pueden ser “procedimiento” o “diagrama de flujo”.

4.3 Tareas Como las tareas se ejecutan en un orden específico es necesario identificar las condiciones que determinan relaciones de secuencia entre las mismas.

Una condición se cumple o no se cumple. Cada tarea tiene precondiciones y poscondiciones: las precondiciones tiene que cumplirse para que las tareas puedan ejecutarse y las poscondiciones de una tarea se cumplen cuando la misma se ejecuta.

4.4 Work Items Muchos casos se pueden resolver siguiendo el mismo procedimiento.

Como resultado, la misma tarea se ejecuta para muchos casos (por ejemplo, una tarea de redacción se ejecuta para diversos documentos). Una tarea que necesita ejecutarse para un caso específico se llama workitem.

Los work items son ejecutados por recursos. Un recurso pude ser tanto un sistema como una persona con un determinado rol (redactor, corrector, etc.).

Page 13: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 13 de 33

5. Especificación de procesos con Redes de Petri

Para la definición de procesos (workflow) es necesario especificar qué tarea tiene qué ser ejecutada y en qué orden.

La herramienta más potente para esto son las Redes de Petri, inventadas por el matemático Carl Adam Petri en 1962 como parte de su tesis doctoral en la Universidad de Bonn.

5.1 Redes de Petri clásicas De la Wikipedia:

“A Petri net (also known as a place/transition net or P/T net) is one of several mathematical representations of discrete distributed systems. As a modeling language, it graphically depicts the structure of a distributed system as a directed bipartite graph with annotations.

A Petri net consists of places, transitions, and directed arcs. Arcs run between places and transitions - not between places and places or transitions and transitions. The places from which an arc runs to a transition are called the input places of the transition; the places to which arcs run from a transition are called the output places of the transition.

Places may contain any number of tokens. A distribution of tokens over the places of a net is called a marking. Transitions act on input tokens by a process known as firing. A transition is enabled if it can fire, i.e., there are tokens in every input place. When a transition fires, it consumes the tokens from its input places, performs some processing task, and places a specified number of tokens into each of its output places. It does this atomically, i.e. in one single non-preemptible step.

Execution of Petri nets is nondeterministic. This means two things:

. multiple transitions can be enabled at the same time, any one of which can fire

none are required to fire—they fire at will, between time 0 and infinity, or not at all(!) i.e. it is totally possible that nothing fires at all.

Since firing is nondeterministic, Petri nets are well suited for modeling the concurrent behavior of distributed systems.”

5.1.1 Definición formal

Una red de Petri es una 5-upla , donde

• S, is a set of places.

• T, is a set of transitions.

• F, is a set of arcs known as a flow relation. The set F is subject to the constraint that no arc

may connect two places or two transitions, or more formally: .

• is an initial marking, where for each place , there are tokens.

• is a set of arc weights, which assigns to each arc some denoting how many tokens are consumed from a place by a transition, or alternatively, how many tokens are produced by a transition and put into each place.

Page 14: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 14 de 33

Figura 3. Ejemplo de una red de Petri

Descripción básica

En palabras, una Red de Petri clásica es un grafo con las siguientes características:

Es un grafo bipartito con dos tipos de nodos llamados lugares y transiciones.

Los nodos están conectados por arcos dirigidos.

Conexiones entre nodos del mismo tipo no están permitidas.

Los lugares están representados por círculos y las transiciones por rectángulos.

El cualquier momento un lugar puede contener ninguno, uno o más tokens (un token se representa como un punto negro dentro del lugar).

Las transiciones son la parte activa de las Redes de Petri al cambiar el estado de la red de acuerdo a las siguientes reglas:

Una transición se dice habilitada cuando cada lugar de entrada contiene al menos un token.

Una transición habilitada puede dispararse. Si la transición se dispara consume un token de cada lugar de entrada y produce un token en cada lugar de salida.

5.2 Redes de Petri de alto nivel Las Redes de Petri clásicas permiten el modelado de estados, eventos, condiciones, sincronización, paralelismo, selecciones e interacciones. De todas maneas, las Redes de Petri que describen procesos tienden a ser más extensas y complejas.

5.2.1 Extensiones con colores

En ciertos casos es necesario que los tokens en la redes puedan representar objetos y por lo tanto es necesario poder modelar sus atributos. Como esto no es posible en las redes clásicas estas se extienden con los llamados tokens con color (o tokens con tipo).

Estos tokens tiene la capacidad de incluir un valor (“color”) con una estructura potencialmente compleja.

5.2.2 Redes jerárquicas

Como las redes que modelan procesos reales pueden ser largas y complejas se extienden las redes clásicas con construcciones llamadas subredes.

Page 15: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 15 de 33

Una subred es una red en si misma vinculada con la red padre a través de una de sus transiciones. El único objetivo es simplificar y clarificar las especificaciones en cada uno de los niveles jerárquicos.

5.3 Especificación de procesos con Redes de Petri Una Red de Petri que modela un workflow se llama workflow net (o red de workflow).

Una red de workflow satisface dos requerimientos:

• Tiene un lugar distinguido como de entrada y un lugar distinguido como de salida.

• Todo lugar y transición de la red contribuye de alguna manera al proceso de los casos específicos. Dicho de otro modo: toda transición se ubica en algún lugar del camino entre el lugar de entrada y el de salida.

Las tareas de workflow son modeladas por transiciones (transitions), las condiciones por los lugares (places) y los casos por los tokens.

Figura 1 Red de Petri

En resumen existen distintas y fuertes razones para su uso:

Semántica Formal

Un proceso especificado en términos de una red de Petri tiene una clara y precisa definición porque la semántica asociada ha sido definida formalmente.

Naturaleza gráfica

Las Redes de Petri son un lenguaje gráfico y como resultado son intuitivas y fáciles de aprender. Esta naturaleza gráfica permite también la comunicación con usuarios finales.

Expresividad

Las Redes de Petri soportan todas las primitivas necesarias para modelar un proceso de worklfow. Todas las primitivas necesarias en los sistemas actuales para administración de workflow pueden ser modeladas.

Fundamento

El las pasadas tres décadas muchas personas han investigado las propiedades básicas de las redes de Petri. Su fuerte fundamente matemático las permite investigar y desarrollar y como resultado hay gran cantidad de conocimiento en forma de libros y artículos sobre las mismas.

Análisis

Existen varias técnicas de análisis aplicables a las redes de Petri. Estas pueden utilizarse para probar propiedades como invarianza, seguridad, deadlocks, etc. y para calcular medidas de perfomance como tiempos de respuesta, tiempos de espera, ranking de ocupación, etc. De esta forma es posible evaluar distintos workflows utilizando herramientas de análisis estándares para redes de Petri. Esta es una ventaja clara a favor de su uso.

Page 16: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 16 de 33

Independencia

Las Redes de Petri proveen un framework independiente de las herramientas utilizadas para modelar y analizar procesos y no están basadas en un paquete específico de software ni en un proveedor particular.

5.4 Construcciones de ruteo El ruteo de los casos (documentos específicos) a través de las tareas que necesiten ejecutarse para el mismo es un tema central en la administración del workflow.

Se pueden identificar cuatro tipos de ruteo como los más importantes:

5.4.1 Ruteo secuencial

Es usado para modelar relaciones de causa entre tareas. Considérese dos tareas A y B. Si la tarea B es ejecutada después de que se completa la tarea A se dice que se ambas tareas ejecutan en forma secuencial. La figura 4 muestra que el ruteo secuencial se puede modelar agregando lugares. El lugar c2 representa la poscondición de la tea A y le precondición de la tarea B.

Figura 4. Ruteo Secuencial

Un ejemplo de ruteo secuencial puede ser las tareas de redacción, corrección y aprobación de un documento en el contexto de un workflow editorial de publicación. El documento se redacta, luego se corrige y finalmente se aprueba.

Page 17: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 17 de 33

5.4.2 Ruteo paralelo

Es usado para situaciones menos estrictas. Por ejemplo, dos tareas B y C tiene que ejecutarse pero el orden de la ejecución es arbitrario.

Para modelar esto se pueden utilizar dos transiciones adicionales (llamadas AND-split y AND-join). Se puede pensar que solo son agregadas con fines de ruteo pero cualquier transición puede cumplir con estas funciones. La ejecución de la tarea A AND-split hablita las tareas B y C y la tarea AND-join D es habilitada después de la ejecución de B y C. D es usada para sincronizar las dos sub workflows. Como resultado B y C son ejecutadas en forma paralela.

Figura 6. Ruteo Paralelo

Un ejemplo de ruteo paralelo puede ser las tareas de diagramación y redacción de las distintas secciones dentro del workflow editorial de una revista. Cada sección de una revista se diagrama y redacta por separados y en paralelo.

5.4.3 Ruteo condicional

es usado para ruteos que pueden variar según el caso. Las variantes pueden depender de atributos particulares del caso, del entorno o de la carga general de trabajo en la organización donde se ejecute.

Para modelar la selección entre dos alternativas se pueden utilizar dos lugares llamados OR-split y OR-join. Una lugar como OR-split podría tener eventualmente múltiples arcos de salida y el lugar OR-join múltiples arcos de entrada. La figura 7 muestra una situación en la que una tarea A es seguida de una tarea B o una tarea C. El lugar c2 es la precondición para B y C. De todas maneras solo una de las tareas se puede ejecutar para el token (caso) que pase por c1.

Figura 7. Ruteo Condicional

Un ejemplo de este tipo de ruteo pude ser la selección del nivel de detalla necesario para una tarea de corrección. Un documento que se redacte (tarea A), se corrige en forma exhaustiva (tarea B) o rápida (tarea C) de acuerdo a la confiabilidad del redactor y finalmente se aprueba (tarea d) una vez corregido.

Otra forma de modelar una selecciona entre B y C se muestra en la figura 8. La transición A tiene dos lugares de salida c2 y c3. La transición produce un token en c2 o c3. La selección entre c2 y c3 se base en la atributo x del token. En la figura 5 la selección se hace en el momento en que la tarea A se completa, en la figura 10 se hace en el momento en que las tareas B o C se ejecutan. Se usa el termino “selección explicita” (explicit OR-split) cuando la

Page 18: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 18 de 33

selección se hace basada en atributos del workflow. El término selección implícita (implicit OR-split ) se reserva para cuando el momento de la selección se hace tan tarde como sea posible.

Figura 8. Ruteo Condicional (selección explícita)

La figura 9 resume las construcciones de ruteo posible. La construcción AND-split y AND-join corresponden a los comportamientos normales de una Red de Petri clásica. Las construcciones implicit OR-split e implicit OR-join se modelan por lugares. La construcción explicit OR-split se modela como una transición que produce una token en solo uno se sus lugares de salida. La construcción explicit OR-join se modela como una transición que se hablita si solo alguno de sus lugares contiene un token.

Figura 9. Construcciones de Ruteo

5.4.4 Ruteo iterativo

Una iteración puede modelarse con las construcciones mostradas en la figura 6. Por ejemplo, en la figura 10, la tarea C es una tareas de control que chequea el resultado de la tarea B. Dependiendo de ese chequeo la taras B se ejecuta mas de una vez.

Figura 10 Ruteo Iterativo

Por ejemplo, tareas de redacción en un workflow editorial podrían ejecutarse una o mas veces dependiendo del resultado de una tarea de aprobación.

Page 19: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 19 de 33

5.5 Triggering

La especificación de un proceso indica para cada estado de cada caso específico que tarea debe ejecutarse. Pero que una tarea deba ejecutarse no necesariamente implica que se ejecute directamente. Por ejemplo, si una tarea debe ser ejecutada por un empleado, el empleado debe estar disponible para hacerlo. Si el empleado no lo esta, esta de vacaciones o donde sea, la tarea no se ejecuta y obviamente el motor de workflow no lo puede forzar. Por lo tanto, es importante diferenciar la habilitación (precondiciones dadas) de la tarea para ejecutarse y su ejecución propiamente dicha.

Un trigger es una condición externa que dispara la ejecución de una tarea habilitada. La ejecución de una instancia de tarea (actividad) para un caso específico comienza en el momento en el que la actividad es disparada. Por otro lado, una actividad solo puede ser disparada si el correspondiente caso esta en un estado que habilita la ejecución de la tarea.

Se distinguen cuatro tipos de triggers:

5.5.1 Triggers Automáticos

La tarea se dispara en el momento en el que esta habilitada. Normalmente estos triggers se utilizan para tareas ejecutadas por aplicaciones o sistema que no requieren interacción con usuarios.

5.5.2 Triggers de Usuario

La tarea es disparada por un usuario que la selecciona para su ejecución. Normalmente estos triggers se integran con servicios de seguridad para la distinción de los usuarios habilitados para su activación.

5.5.3 Triggers por Eventos

La tarea es disparada por la recepción de un evento externo. Ejemplos de eventos externos pueden ser mensajes, mails, llamadas telefónicas, etc.

5.5.4 Triggres Temporales

La tarea es disparada por un reloj al cumplirse un tiempo programado desde la habilitación de la misma.

Page 20: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 20 de 33

6. kbee Workflow Query Language (kbee.WQL)

kbee WQL (Workflow Query Language) es un lenguaje de consulta, con una sintaxis similar a los lenguajes OQL (Object Query Language), que permite la selección y proyección de atributos nativos o extendidos de las entidades del workflow.

El lenguaje permite realizar consultas sobre el motor de workflow en forma análoga a como se llevan a cabo consultas sobre un motor de Base de Datos Relacional.

Es posible hacer consultas sobre las variables propias del motor de procesos (Modelo Nativo), y también sobre atributos específicos del problema mediante la extensión del sistema de información asociado a los procesos, lo que se llama Modelo extendido.

6.1 Modelos nativo y extendido Se define como modelo nativo del workflow a aquel que incluye las entidades que implementan sus conceptos básicos. Estas son, los procesos propiamente dichos, las actividades y los work ítems. Cada una de estas entidades contiene una serie de atributos propios e independientes del domino del problema donde se ejecutan los procesos. Por ejemplo, el estado, el momento de comienzo (timestamp) y el momento del fin de una actividad.

kbee workflow permite extender el modelo de las entidades nativas con entidades propias de los contextos donde se ejecutan los procesos.

Cada token que circula por la red contiene una entidad extendida del modelo nativo con una estructura descrita por un conjunto de atributos (color del token). Estos atributos se pueden sumar a los atributos de las entidades nativas.

Por ejemplo, si una entidad extendida incluye un atributo que contiene un número de expediente, este atributo se suma a los atributos propios de las actividades que se ejecutan sobre la misma.

Así, sobre una actividad, además de la posibilidad de consultar su momento de comienzo o de fin se agrega la posibilidad de consultar por el número de expediente sobre el que actúa.

Page 21: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 21 de 33

6.2 El lenguaje kbee WQL

Sintaxis

kbee WQL es un lenguaje de consulta, con una sintaxis similar al OQL, que permite la selección y proyección de atributos nativos o extendidos de las entidades del workflow.

Una sentencia del lenguaje tiene la siguiente forma:

SELECT

activity | workitem | process | attribute 1, attribute2 …, attribute n | count

[FROM

activity | process | workitem ]

[WHERE

search condition 1

[AND search condition 2 …. ]

[OR search condition 3 …. ] ]

[GROUP BY attribute 1, attribute 2 … , attribute n]

[ORDER BY attribute 1, attribute 2 … , attribute n [desc] ]

[OFFSET number ]

[LIMIT number ]

Operadores

Los operadores para las condiciones de las búsquedas pueden ser los siguientes:

Operador Descripción

= Igualdad

¡= Desigualdad

> Mayor

< Menor

>= Mayor o Igual

<= Menor o Igual

Func Operador funcional unitario

Page 22: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 22 de 33

Atributos nativos

La lista completa de atributos nativos que se pueden proyectar o evaluar en una condición es la siguiente:

Selección de entidades

Una de las utilidades básicas es la de selección de entidades que cumplan condiciones dadas. Por ejemplo, sea la siguiente sentencia:

Select Activity Where expediente = ’23454’

Esta sentencia selecciona todas las actividades aplicadas sobre el expediente ‘23454’. Nótese que ‘Expendiente’ es un atributo extendido del modelo nativo.

Entidad Estructura

process Atributo/ Función

Descripción

Id Identificación única (process

id)

Net Nombre de la red

(procedimiento y versión)

State Estadode proceso

StartTime Time stamp de comienzo

EndTime Time stamp de fin

activity Atributo/ Función

Descripción

Net Nombre de la red

(procedimiento y versión)

Task Nombre de la tarea

Process Identificación del proceso

State Estado de la actividad

StartTime Time stamp de comienzo

EndTime Time stamp de fin

User Nombre del usuario

Message Mensaje según estado (mensaje

de error, por ejemplo)

Work item Atributo/ Función

Descripción

Net Nombre de la red

(procedimiento y versión)

Task Nombre de la tarea

Process Identificación del proceso

isEnabledFor Función que evalúa la

habilitación por usuario

Page 23: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 23 de 33

Proyección de atributos

El lenguaje permite también proyectar solo atributos de las entidades seleccionadas. Por ejemplo:

Select task, state From Activity Where expediente = ’23454’

Esta sentencia selecciona la tarea y el estado de las actividades aplicadas sobre el mismo expediente del caso anterior.

Funciones

Como parte de las condiciones de una consulta se pueden aplicar funciones para evaluar el estado de las entidades. Por ejemplo, la función “isEnabledFor” evalúa sobre un work ítem si el usuario pasado como parámetro esta habilitado o no para tomarlo. Como ejemplo de uso de esta función sea la siguiente sentencia:

Select Workitem Where isEnabledFor(:user)

Esta sentencia selecciona todos los work items habilitados para el usuario pasado como parámetro de nombre “user”.

Contadores

Una función muy útil es la de conteo que puede ser utilizada para el cálculo de indicadores. Por ejemplo, la siguiente sentencia calcula un indicador sobre el cual se podría activar una alarma si el número obtenido fuera mayor a cero:

Select count From Activity Where expediente=’2354’ And state=”Error”

Page 24: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 24 de 33

Otras facilidades

El lenguaje se complementa con funciones para agrupar y paginar resultados.

Figura 11. Una consola de monitoreo de procesos y consulta de tareas construida con un lenguaje de alto nivel (C++) y

usando kbee.WQL para integrarse al motor de workflow.

Page 25: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 25 de 33

7. Servidor analítico y reportes OLAP

kbee.workflow permite realizar logging de cada cambio de estado de cada proceso en ejecución en forma asincrónica en una Base de Datos integrada a un servidor OLAP.

El Servidor kbee.OLAP (basado en el software Open Source Mondrian) contiene un motor desarrollado en Java que ejecuta consultas escritas en el Standard MDX creado por Microsoft en 1998 (Multi Dimensional eXpressions), toma información de una Base de Datos Relacional (típicamente una o más tablas pivot donde cada una de las dimensiones tiene una entrada), y presenta el resultado en un formato multidimensional usando un API en Java.

Los datos que muestre kbee.OLAP son tomados de la mencionada Base de Datos que se actualiza en forma asincrónica con cada cambio de estado en los procesos que ejecuta el motor de workflow. Tanto el OLAP como la Base de Datos pueden correr en otro servidor, a fin de no degradar la performance de las aplicaciones de gestión.

A través del kbee.OLAP es posible definir las variables (dimensiones) del negocio, y realizar complejas consultas estadísticas sin necesidad de programar (permite a un usuario no especializado armar otras consultas especificando las dimensiones visibles por fila y columna más los criterios de selección y filtrado que se considere necesario).

kbee.OLAP permite predefinir una gran cantidad de consultas que se consideren usuales y ponerlas a disposición de los usuarios para que las puedan acceder en un sólo paso.

El cubo OLAP multidimensional puede integrar perfectamente otras fuentes de información, actuando como herramienta integral de inteligencia analítica de la gestión de la organización.

Page 26: Kbee-workflow Conceptos y Arquitectura

Anexo I Licencia kbee.workflow

kbee.workflow se entrega con licencia LGPL 2.1. El texto de la licencia en ingles se reproduce en este anexo, y puede encontrarse en http://www.gnu.org/licenses/lgpl.html,

GNU LESSER GENERAL PUBLIC LICENSE

Version 2.1, February 1999

Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.

[This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.]

Preamble

The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users.

This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below.

When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things.

To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it.

For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights.

We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library.

Page 27: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 27 de 33

To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others.

Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license.

Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs.

When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library.

We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages

are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances.

For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License.

In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU

operating system, as well as its variant, the GNU/Linux operating system.

Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library.

The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must

be combined with the library in order to run.

Page 28: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 28 de 33

GNU LESSER GENERAL PUBLIC LICENSE

TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License").

Each licensee is addressed as "you".

A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables.

The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work Ander copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".)

"Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation

and installation of the library.

Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does.

1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library.

You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.

2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of

Section 1 above, provided that you also meet all of these conditions:

a) The modified work must itself be a software library.

b) You must cause the files modified to carry prominent notices

stating that you changed the files and the date of any change.

Page 29: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 29 de 33

c) You must cause the whole of the work to be licensed at no

charge to all third parties under the terms of this License.

d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful.

(For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.)

These requirements apply to the modified work as a whole. If dentifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.

Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library.

In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.

3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices.

Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy.

This option is useful when you wish to copy part of the code of the Library into a program that is not a library.

4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which

must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange.

Page 30: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 30 de 33

If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not

compelled to copy the source along with the object code.

5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License.

However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables.

When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be

linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law.

If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.)

Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself.

6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications.

You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things:

a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under

Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.)

Page 31: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 31 de 33

b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with.

c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution.

d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place.

e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the

Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.

It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute.

7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things:

a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the

Sections above.

b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.

8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.

9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it.

Page 32: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 32 de 33

10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein.

You are not responsible for enforcing compliance by third parties with this License.

11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to

refrain entirely from distribution of the Library.

If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances.

It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.

This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.

12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.

13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.

Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation.

14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation;

Page 33: Kbee-workflow Conceptos y Arquitectura

v.005 | kbee.workflow | Conceptos y arquitectura Página 33 de 33

we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing

and reuse of software generally.

NO WARRANTY

15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.