05-11-2010 08:36 AM
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="Flujo">
<start-state name="inicio">
<transition to="LanzarTarea" name="to_LanzarTarea"></transition>
</start-state>
<task-node name="LanzarTarea">
<task name="TareaAceptar">
<assignment actor-id="rodriguez"></assignment>
<controller>
<variable access="read,write,required" name="aceptar" mapped-name="aceptar"></variable>
</controller>
</task>
<transition to="Aceptar" name="to_Aceptar"></transition>
</task-node>
<decision name="Aceptar" expression="#{(aceptar>100)?'to_Rechazado':'to_Aceptado'}">
<transition to="Aceptado" name="to_Aceptado">
<action class='com.sample.action.handler1' name='MoverAceptado'></action>
</transition>
<transition to="Rechazado" name="to_Rechazado"></transition>
</decision>
<task-node name="Aceptado">
<transition to="fin" name="to_end"></transition>
</task-node>
<task-node name="Rechazado">
<transition to="fin" name="to_end1"></transition>
</task-node>
<end-state name="fin"></end-state>
</process-definition>
package com.sample.action;
import org.jbpm.graph.exe.ExecutionContext;
public class handler1 {
private static final long serialVersionUID = 1L;
public void execute(ExecutionContext ctx) throws Exception {
}
}
05-12-2010 04:15 AM
05-12-2010 04:32 AM
05-13-2010 09:52 AM
05-13-2010 10:04 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.