JBoss JBPM SVN: r2640 - in projects/jsf-console/branches/jsf-console-3.2.x: jbpm4jsf/src/main/java and 2 other directories.
by do-not-reply@jboss.org
Author: heiko.braun(a)jboss.com
Date: 2008-10-28 07:27:52 -0400 (Tue, 28 Oct 2008)
New Revision: 2640
Removed:
projects/jsf-console/branches/jsf-console-3.2.x/console/src/main/webapp/images/
projects/jsf-console/branches/jsf-console-3.2.x/console/src/main/webapp/index.jsp
projects/jsf-console/branches/jsf-console-3.2.x/console/src/main/webapp/sa/
projects/jsf-console/branches/jsf-console-3.2.x/console/src/main/webapp/ua/
projects/jsf-console/branches/jsf-console-3.2.x/jbpm4jsf/src/main/java/org/
projects/jsf-console/branches/jsf-console-3.2.x/jbpm4jsf/src/main/resources/META-INF/
projects/jsf-console/branches/jsf-console-3.2.x/jbpm4jsf/src/main/tld/core.tld
projects/jsf-console/branches/jsf-console-3.2.x/jbpm4jsf/src/main/tld/identity.tld
projects/jsf-console/branches/jsf-console-3.2.x/jbpm4jsf/src/main/tld/tf.tld
projects/jsf-console/branches/jsf-console-3.2.x/jbpm4jsf/src/main/tld/tfl.tld
Log:
Remove 3.3.0 sources
Deleted: projects/jsf-console/branches/jsf-console-3.2.x/console/src/main/webapp/index.jsp
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2.x/console/src/main/webapp/index.jsp 2008-10-28 10:48:48 UTC (rev 2639)
+++ projects/jsf-console/branches/jsf-console-3.2.x/console/src/main/webapp/index.jsp 2008-10-28 11:27:52 UTC (rev 2640)
@@ -1,10 +0,0 @@
-<%
- final String queryString = request.getQueryString();
- final String contextRoot = request.getContextPath();
- final String target = contextRoot + "/sa/processes.jsf";
- if (queryString != null && queryString.length() > 0) {
- response.sendRedirect(target + "?" + queryString);
- } else {
- response.sendRedirect(target);
- }
-%>
Deleted: projects/jsf-console/branches/jsf-console-3.2.x/jbpm4jsf/src/main/tld/core.tld
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2.x/jbpm4jsf/src/main/tld/core.tld 2008-10-28 10:48:48 UTC (rev 2639)
+++ projects/jsf-console/branches/jsf-console-3.2.x/jbpm4jsf/src/main/tld/core.tld 2008-10-28 11:27:52 UTC (rev 2640)
@@ -1,1944 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
-
-<taglib xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd" version="2.1">
- <tlib-version>1.2</tlib-version>
- <short-name>jbpm</short-name>
- <uri>http://jbpm.org/jbpm4jsf/core</uri>
- <description><![CDATA[JSF Tag Library for jBPM applications.]]></description>
-
- <tag>
- <name>addComment</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Add a comment to a task or token.]]></description>
- <attribute>
- <name>comment</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression that returns the comment text to add.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression that returns the node to add a comment to.]]></description>
- <deferred-value>
- <type>org.jbpm.graph.def.GraphElement</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>applyVariableMap</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Apply a variable map to a token, task, or process instance]]></description>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The token, task, or process instance to apply the variables to.]]></description>
- <deferred-value>
- <type>java.lang.Object</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>variableMap</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The variable map to apply.]]></description>
- <deferred-value>
- <type>org.jbpm.jsf.core.impl.UpdatesHashMap</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>assignTask</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Assign a task to an actor.]]></description>
- <attribute>
- <name>actorId</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The actor ID to which the task should be assigned.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>overwriteSwimlane</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A flag that indicates whether the swimlane should be overwritten.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>task</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The task instance to assign.]]></description>
- <deferred-value>
- <type>org.jbpm.taskmgmt.exe.TaskInstance</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>cancel</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Cancel a running task instance, token, or process instance.]]></description>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>value</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The item to cancel.]]></description>
- <deferred-value>
- <type>java.lang.Object</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>completeTask</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Complete a task.]]></description>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>task</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression that resolves to the task instance to complete.]]></description>
- <deferred-value>
- <type>org.jbpm.taskmgmt.exe.TaskInstance</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>transition</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression that resolves to either the name of a transition, or the transition object to take upon completing this task.]]></description>
- <deferred-value>
- <type>java.lang.Object</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>delete</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Delete a process, process instance, or job.]]></description>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>value</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The item to delete.]]></description>
- <deferred-value>
- <type>java.lang.Object</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>deployProcess</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Deploy a new process archive.]]></description>
- <attribute>
- <name>archive</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The source of the archive, as an input stream or a byte array.]]></description>
- <deferred-value>
- <type>java.lang.Object</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the new process definition will be inserted.]]></description>
- <deferred-value>
- <type>org.jbpm.graph.def.ProcessDefinition</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>getDiagramInfo</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Read process definition diagram information from the database.]]></description>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>process</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The the process definition to read diagram information for.]]></description>
- <deferred-value>
- <type>org.jbpm.graph.def.ProcessDefinition</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the diagram information should be stored.]]></description>
- <deferred-value>
- <type>java.lang.Object</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>getProcessLogs</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Get the process logs from a process instance.]]></description>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>processInstance</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The process instance whose process logs are to be read.]]></description>
- <deferred-value>
- <type>org.jbpm.graph.exe.ProcessInstance</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>type</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The process log type. This may be a literal Class object, or the name of a class, or one of the following shortcut names:<ul><li><code>variable</code></li><li><code>variableUpdate</code></li><li><code>variableCreate</code></li><li><code>variableDelete</code></li><li><code>action</code></li><li><code>node</code></li><li><code>processInstanceCreate</code></li><li><code>processInstanceEnd</code></li><li><code>processState</code></li><li><code>signal</code></li><li><code>tokenCreate</code></li><li><code>tokenEnd</code></li><li><code>transition</code></li><li><code>composite</code></li><li><code>message</code></li><li><code>swimlane</code></li><li><code>swimlaneAssign</code></li><li><code>swimlaneCreate</code></li><li><code>task</code></li><li><code>taskAssign</code></li><li><code>taskCreate</code></li><li><code>taskEnd</code></li></ul>]]></description>
- <deferred-value>
- <type>java.lang.Object</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>getTaskFormInfo</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Read process definition task form information from the database.]]></description>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>process</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The the process definition to read task form information for.]]></description>
- <deferred-value>
- <type>org.jbpm.graph.def.ProcessDefinition</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the task form information should be stored. This will be in the form of a map whose keys are task names and whose values are the name of the task form file, if any.]]></description>
- <deferred-value>
- <type>java.util.Map</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>getVariable</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Get the value of a process variable.]]></description>
- <attribute>
- <name>entity</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The token, task, or process instance from which the variable value should be retrieved.]]></description>
- <deferred-value>
- <type>java.lang.Object</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The name of the variable to remove.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the variable value will be stored.]]></description>
- <deferred-value>
- <type>java.lang.Object</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>getVariableMap</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Get the variable map from a token, process instance, or task.]]></description>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the variable map will be stored.]]></description>
- <deferred-value>
- <type>java.util.Map</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>value</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The entity from which the variable should be retrieved.]]></description>
- <deferred-value>
- <type>java.lang.Object</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>includeProcessFile</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Include a process file.]]></description>
- <attribute>
- <name>file</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The name of a file within the process to include.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>process</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The process definition from which the file should be read.]]></description>
- <deferred-value>
- <type>org.jbpm.graph.def.ProcessDefinition</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>jbpmActionListener</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Call a user-defined action, providing the action with a JbpmJsfContext.]]></description>
- <attribute>
- <name>listener</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression that resolves to the listener to execute. Either this or the 'type' attribute must be given.]]></description>
- <deferred-value>
- <type>org.jbpm.jsf.JbpmActionListener</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>type</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The type of the action. Can be an EL expression which resolves to a literal Class object, or the name of a class as a String. Either this or the 'listener' attribute must be given.]]></description>
- <deferred-value>
- <type>java.lang.Object</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>listJobs</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[List all jobs in the database.]]></description>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the list will be stored.]]></description>
- <deferred-value>
- <type>java.util.List</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>listProcesses</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Read a list of process definitions from the database.]]></description>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the process definition list should be stored.]]></description>
- <deferred-value>
- <type>java.util.List</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>listProcessInstances</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Read a list of process instances from a process definition.]]></description>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>processId</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The numeric ID of the process definition whose instances are to be read.]]></description>
- <deferred-value>
- <type>long</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the process instance list should be stored.]]></description>
- <deferred-value>
- <type>java.util.List</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>listTasks</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Read a list of task instances from the database.]]></description>
- <attribute>
- <name>includeEnded</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A flag specifying whether ended tasks should be included.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the task instance list should be stored.]]></description>
- <deferred-value>
- <type>java.util.List</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>listTasksForActor</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Read a list of task instances assigned to an actor ID.]]></description>
- <attribute>
- <name>actorId</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The actor ID whose task instances are to be read.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the task instance list should be stored.]]></description>
- <deferred-value>
- <type>java.util.List</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>listTasksForProcess</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Read a list of task instances from a process definition.]]></description>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>process</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The process whose task instances are to be read.]]></description>
- <deferred-value>
- <type>org.jbpm.graph.def.ProcessDefinition</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the task instance list should be stored.]]></description>
- <deferred-value>
- <type>java.util.List</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>listTasksForProcessInstance</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Read a list of task instances from a process instance.]]></description>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>processInstance</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The process instance whose task instances are to be read.]]></description>
- <deferred-value>
- <type>org.jbpm.graph.exe.ProcessInstance</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the task instance list should be stored.]]></description>
- <deferred-value>
- <type>java.util.List</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>listTokens</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Read a token list from a process instance.]]></description>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>processInstance</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The process instalce to read the token list from.]]></description>
- <deferred-value>
- <type>org.jbpm.graph.exe.ProcessInstance</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the token list should be stored.]]></description>
- <deferred-value>
- <type>java.util.List</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>loadJob</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Read a job instance from the database.]]></description>
- <attribute>
- <name>id</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The ID of the job to load.]]></description>
- <deferred-value>
- <type>long</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the job should be stored.]]></description>
- <deferred-value>
- <type>org.jbpm.job.Job</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>loadProcess</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Read a process definition from the database.]]></description>
- <attribute>
- <name>id</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The ID of the process definition to load.]]></description>
- <deferred-value>
- <type>long</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the process definition should be stored.]]></description>
- <deferred-value>
- <type>org.jbpm.graph.def.ProcessDefinition</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>loadProcessInstance</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Read a process instance from the database.]]></description>
- <attribute>
- <name>forUpdate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean that controls whether the process instance is to be read for update. This typically entails using a <code>SELECT ... FOR UPDATE</code> statement, when database persistence is involved. By default, this flag is <code>false</code> if the action is invoked during the <code>RENDER_RESPONSE</code> phase, and <code>true</code> otherwise.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>id</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The ID of the process instance to load.]]></description>
- <deferred-value>
- <type>long</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the process instance should be stored.]]></description>
- <deferred-value>
- <type>org.jbpm.graph.exe.ProcessInstance</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>loadTask</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Read a task instance from the database.]]></description>
- <attribute>
- <name>forUpdate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean that controls whether the task instance is to be read for update. This typically entails using a <code>SELECT ... FOR UPDATE</code> statement, when database persistence is involved. By default, this flag is <code>false</code> if the action is invoked during the <code>RENDER_RESPONSE</code> phase, and <code>true</code> otherwise.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>id</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The ID of the task instance to load.]]></description>
- <deferred-value>
- <type>long</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the task instance should be stored.]]></description>
- <deferred-value>
- <type>org.jbpm.taskmgmt.exe.TaskInstance</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>loadToken</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Read a token from the database.]]></description>
- <attribute>
- <name>forUpdate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean that controls whether the token is to be read for update. This typically entails using a <code>SELECT ... FOR UPDATE</code> statement, when database persistence is involved. By default, this flag is <code>false</code> if the action is invoked during the <code>RENDER_RESPONSE</code> phase, and <code>true</code> otherwise.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>id</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The ID of the token to load.]]></description>
- <deferred-value>
- <type>long</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the token should be stored.]]></description>
- <deferred-value>
- <type>org.jbpm.graph.exe.Token</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>moveToken</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Move a token to a new node. Note that this does not affect any tasks that may be active and associated with this token.]]></description>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>node</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression which resolves to the node to move the token to, or the name of the node.]]></description>
- <deferred-value>
- <type>java.lang.Object</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>token</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression which resolves to the token that is to be moved.]]></description>
- <deferred-value>
- <type>org.jbpm.graph.exe.Token</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>removeVariable</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Remove a process variable. Optionally store the old value into an EL expression.]]></description>
- <attribute>
- <name>entity</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The token, task, or process instance from which the variable should be removed.]]></description>
- <deferred-value>
- <type>java.lang.Object</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The name of the variable to remove.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An optional EL expression into which the old variable value will be stored.]]></description>
- <deferred-value>
- <type>java.lang.Object</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>resume</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Resume a running task, token, or process instance.]]></description>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>value</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The item to resume.]]></description>
- <deferred-value>
- <type>java.lang.Object</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>signal</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Signal a token or process instance. Optionally specify the transition.]]></description>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>transition</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The transition, or transition name, to signal the item along.]]></description>
- <deferred-value>
- <type>java.lang.Object</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>value</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The item to signal.]]></description>
- <deferred-value>
- <type>java.lang.Object</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>startProcess</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Start a process.]]></description>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>process</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The process definition to begin executing.]]></description>
- <deferred-value>
- <type>org.jbpm.graph.def.ProcessDefinition</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the new process instance will be stored.]]></description>
- <deferred-value>
- <type>org.jbpm.graph.exe.ProcessInstance</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>startTask</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Mark a task as started.]]></description>
- <attribute>
- <name>actorId</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The actor to assign the task to. If not given, the current actor is not changed.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>overwriteSwimlane</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A flag specifying whether the swimlane will be overwritten.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>task</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The task to mark as started.]]></description>
- <deferred-value>
- <type>org.jbpm.taskmgmt.exe.TaskInstance</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>suspend</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Suspend a running task, token, or process instance.]]></description>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>value</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The item to suspend.]]></description>
- <deferred-value>
- <type>java.lang.Object</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>taskForm</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Represents the task form action source.]]></description>
- <attribute>
- <name>buttonTarget</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the type of button clicked will be stored. It will be one of: <ul><li><code>cancel</code></li><li><code>save</code></li><li><code>transition</code></li></ul>]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>transitionTarget</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the submitted transition name will be stored (if any).]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>updateTaskStart</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Update the start date of a started task.]]></description>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>startDate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The start date to assign. If not given, the current date will be used.]]></description>
- <deferred-value>
- <type>java.util.Date</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>task</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The task instance to update.]]></description>
- <deferred-value>
- <type>org.jbpm.taskmgmt.exe.TaskInstance</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>updateVariable</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Update a process variable. Optionally store the old value into an EL expression.]]></description>
- <attribute>
- <name>entity</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The token, task, or process instance for which the variable should be updated.]]></description>
- <deferred-value>
- <type>java.lang.Object</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The name of the variable to update.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An optional EL expression into which the old variable value will be stored.]]></description>
- <deferred-value>
- <type>java.lang.Object</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>value</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The new variable value.]]></description>
- <deferred-value>
- <type>java.lang.Object</type>
- </deferred-value>
- </attribute>
- </tag>
-</taglib>
Deleted: projects/jsf-console/branches/jsf-console-3.2.x/jbpm4jsf/src/main/tld/identity.tld
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2.x/jbpm4jsf/src/main/tld/identity.tld 2008-10-28 10:48:48 UTC (rev 2639)
+++ projects/jsf-console/branches/jsf-console-3.2.x/jbpm4jsf/src/main/tld/identity.tld 2008-10-28 11:27:52 UTC (rev 2640)
@@ -1,620 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
-
-<taglib xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd" version="2.1">
- <tlib-version>1.2</tlib-version>
- <short-name>id</short-name>
- <uri>http://jbpm.org/jbpm4jsf/identity</uri>
- <description><![CDATA[JSF Tag Library for jBPM applications.]]></description>
-
- <tag>
- <name>addMembership</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Add a group membership to a user.]]></description>
- <attribute>
- <name>group</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The group that the user should become a member of.]]></description>
- <deferred-value>
- <type>org.jbpm.identity.Group</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>role</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The name of the role.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the created membership should be stored.]]></description>
- <deferred-value>
- <type>org.jbpm.identity.Membership</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>user</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The user to whom the membership is granted.]]></description>
- <deferred-value>
- <type>org.jbpm.identity.User</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>createGroup</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Create a new group and save it in the database.]]></description>
- <attribute>
- <name>groupName</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The name of the group to create.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>parentGroup</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The parent group, if any.]]></description>
- <deferred-value>
- <type>org.jbpm.identity.Group</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the created group should be stored.]]></description>
- <deferred-value>
- <type>org.jbpm.identity.Group</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>type</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The type of the new group.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>createUser</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Create a new user and save it in the database.]]></description>
- <attribute>
- <name>email</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The email of the new user.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>password</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The password of the new user.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>passwordConfirm</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The password of the new user again. If this value does not match the value of the <code>password</code> attribute, user creation will fail.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the created user should be stored.]]></description>
- <deferred-value>
- <type>org.jbpm.identity.User</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>userName</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The user name of the user to create.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>deleteGroup</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Delete a group from the database.]]></description>
- <attribute>
- <name>group</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The group to delete.]]></description>
- <deferred-value>
- <type>org.jbpm.identity.Group</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>deleteMembership</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Delete a membership from the database.]]></description>
- <attribute>
- <name>membershipId</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The ID of the membership to delete.]]></description>
- <deferred-value>
- <type>long</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>user</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The user containing the membership to delete.]]></description>
- <deferred-value>
- <type>org.jbpm.identity.User</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>deleteUser</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Delete a user from the database.]]></description>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>user</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The user to delete.]]></description>
- <deferred-value>
- <type>org.jbpm.identity.User</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>listGroups</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Read the list of groups from the database.]]></description>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the group list should be stored.]]></description>
- <deferred-value>
- <type>java.util.List</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>listUsers</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Read the list of users from the database.]]></description>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the user list should be stored.]]></description>
- <deferred-value>
- <type>java.util.List</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>loadGroup</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Read a group from the database.]]></description>
- <attribute>
- <name>id</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The ID of the group to load.]]></description>
- <deferred-value>
- <type>long</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the group should be stored.]]></description>
- <deferred-value>
- <type>org.jbpm.identity.Group</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>loadGroupByName</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Read a group from the database by name.]]></description>
- <attribute>
- <name>groupName</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The name of the group to load.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the group should be stored.]]></description>
- <deferred-value>
- <type>org.jbpm.identity.Group</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-
- <tag>
- <name>loadUser</name>
- <tag-class/>
- <tei-class/>
- <body-content>JSP</body-content>
- <description><![CDATA[Read a user from the database.]]></description>
- <attribute>
- <name>id</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[The ID of the user to load.]]></description>
- <deferred-value>
- <type>long</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>name</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A different name to use for this action. Action names are used by some navigation handlers.]]></description>
- <deferred-value>
- <type>java.lang.String</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>navigate</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that can be used to control whether navigation will be attempted after this action completes.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>target</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[An EL expression into which the user should be stored.]]></description>
- <deferred-value>
- <type>org.jbpm.identity.User</type>
- </deferred-value>
- </attribute>
- <attribute>
- <name>unless</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- <description><![CDATA[A boolean expression that, if true, will prevent this action from being run.]]></description>
- <deferred-value>
- <type>boolean</type>
- </deferred-value>
- </attribute>
- </tag>
-</taglib>
Deleted: projects/jsf-console/branches/jsf-console-3.2.x/jbpm4jsf/src/main/tld/tf.tld
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2.x/jbpm4jsf/src/main/tld/tf.tld 2008-10-28 10:48:48 UTC (rev 2639)
+++ projects/jsf-console/branches/jsf-console-3.2.x/jbpm4jsf/src/main/tld/tf.tld 2008-10-28 11:27:52 UTC (rev 2640)
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
-
-<taglib xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd" version="2.1">
- <tlib-version>1.2</tlib-version>
- <short-name>tf</short-name>
- <uri>http://jbpm.org/jbpm4jsf/tf</uri>
- <description><![CDATA[Components pertaining to task form data and command elements.]]></description>
-</taglib>
Deleted: projects/jsf-console/branches/jsf-console-3.2.x/jbpm4jsf/src/main/tld/tfl.tld
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2.x/jbpm4jsf/src/main/tld/tfl.tld 2008-10-28 10:48:48 UTC (rev 2639)
+++ projects/jsf-console/branches/jsf-console-3.2.x/jbpm4jsf/src/main/tld/tfl.tld 2008-10-28 11:27:52 UTC (rev 2640)
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
-
-<taglib xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd" version="2.1">
- <tlib-version>1.2</tlib-version>
- <short-name>tfl</short-name>
- <uri>http://jbpm.org/jbpm4jsf/tfl</uri>
- <description><![CDATA[Components pertaining to task form layout and formatting.]]></description>
-</taglib>
15 years, 7 months
JBoss JBPM SVN: r2639 - in projects/jsf-console/trunk: console and 1 other directories.
by do-not-reply@jboss.org
Author: heiko.braun(a)jboss.com
Date: 2008-10-28 06:48:48 -0400 (Tue, 28 Oct 2008)
New Revision: 2639
Modified:
projects/jsf-console/trunk/console/pom.xml
projects/jsf-console/trunk/jbpm4jsf/pom.xml
projects/jsf-console/trunk/pom.xml
Log:
Cleanup properties
Modified: projects/jsf-console/trunk/console/pom.xml
===================================================================
--- projects/jsf-console/trunk/console/pom.xml 2008-10-28 10:45:28 UTC (rev 2638)
+++ projects/jsf-console/trunk/console/pom.xml 2008-10-28 10:48:48 UTC (rev 2639)
@@ -57,7 +57,7 @@
<dependency>
<groupId>org.jbpm.jbpm3</groupId>
<artifactId>jbpm-core</artifactId>
- <version>${version}</version>
+ <version>${jbpm.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
Modified: projects/jsf-console/trunk/jbpm4jsf/pom.xml
===================================================================
--- projects/jsf-console/trunk/jbpm4jsf/pom.xml 2008-10-28 10:45:28 UTC (rev 2638)
+++ projects/jsf-console/trunk/jbpm4jsf/pom.xml 2008-10-28 10:48:48 UTC (rev 2639)
@@ -34,7 +34,7 @@
<dependency>
<groupId>org.jbpm.jbpm3</groupId>
<artifactId>jbpm-identity</artifactId>
- <version>${version}</version>
+ <version>${jbpm.version}</version>
</dependency>
<dependency>
Modified: projects/jsf-console/trunk/pom.xml
===================================================================
--- projects/jsf-console/trunk/pom.xml 2008-10-28 10:45:28 UTC (rev 2638)
+++ projects/jsf-console/trunk/pom.xml 2008-10-28 10:48:48 UTC (rev 2639)
@@ -34,46 +34,16 @@
<!-- Properties -->
<properties>
- <apache.ant.version>1.7.0</apache.ant.version>
- <apache.cactus.version>1.8.0</apache.cactus.version>
- <apache.jackrabbit.version>1.4.5</apache.jackrabbit.version>
- <bsh.version>1.3.0</bsh.version>
- <commons.fileupload.version>1.2.1</commons.fileupload.version>
+ <commons.fileupload.version>1.2.1</commons.fileupload.version>
<commons.io.version>1.4</commons.io.version>
<commons.logging.version>1.1.1</commons.logging.version>
- <desmoj.version>2.1.1</desmoj.version>
- <dom4j.version>1.6.1</dom4j.version>
- <drools.version>4.0.7</drools.version>
- <dumbster.version>1.6</dumbster.version>
- <hibernate.version>3.2.6.ga</hibernate.version>
- <hibernate.annotations.version>3.3.1.GA</hibernate.annotations.version>
- <hibernate.validator.version>3.0.0.ga</hibernate.validator.version>
- <izpack.version>4.0.0</izpack.version>
- <jasper.reports.version>3.0.0</jasper.reports.version>
- <javax.ejb.version>3.0</javax.ejb.version>
<javax.el.version>1.2</javax.el.version>
<javax.faces.version>1.2_03</javax.faces.version>
- <javax.jcr.version>1.0.1</javax.jcr.version>
- <javax.jms.version>1.1</javax.jms.version>
- <javax.jws.version>1.0-MR1</javax.jws.version>
- <javax.mail.version>1.4</javax.mail.version>
<javax.servlet.version>2.5</javax.servlet.version>
- <javax.persistence.version>1.0</javax.persistence.version>
- <javax.jaxb.version>2.1</javax.jaxb.version>
- <jaxen.version>1.1.1</jaxen.version>
- <jbpm.api.version>1.0.0-SNAPSHOT</jbpm.api.version>
- <jboss.jbpm.designer.version>3.1.4</jboss.jbpm.designer.version>
+ <jbpm.version>3.3.0-SNAPSHOT</jbpm.version>
<jboss.gravel.version>1.0.0.GA</jboss.gravel.version>
- <jboss.seam.version>2.0.2.GA</jboss.seam.version>
<junit.version>3.8.1</junit.version>
- <oscache.version>2.4</oscache.version>
- <poi.version>3.0.2-FINAL</poi.version>
- <richfaces.ui.version>3.2.1.GA</richfaces.ui.version>
- <slf4j.version>1.5.5</slf4j.version>
<sun.facelets.version>1.1.14</sun.facelets.version>
- <hsqldb.version>1.8.0.7</hsqldb.version>
- <mysql.connector.version>5.1.6</mysql.connector.version>
- <postgresql.version>8.3-603.jdbc3</postgresql.version>
</properties>
<!-- DependencyManagement -->
@@ -128,20 +98,7 @@
<artifactId>jsf-impl</artifactId>
<version>${javax.faces.version}</version>
</dependency>
-
- <!-- jBPM Dependencies -->
- <!--dependency>
- <groupId>org.jbpm.jbpm4</groupId>
- <artifactId>jbpm-spec-api</artifactId>
- <version>${jbpm.api.version}</version>
- </dependency>
- <dependency>
- <groupId>org.jbpm</groupId>
- <artifactId>jbpm-jpdl-designer</artifactId>
- <version>${jboss.jbpm.designer.version}</version>
- <type>zip</type>
- </dependency-->
- </dependencies>
+ </dependencies>
</dependencyManagement>
<!-- Dependencies -->
15 years, 7 months
JBoss JBPM SVN: r2638 - in projects/jsf-console/branches/jsf-console-3.2.x: console and 1 other directories.
by do-not-reply@jboss.org
Author: heiko.braun(a)jboss.com
Date: 2008-10-28 06:45:28 -0400 (Tue, 28 Oct 2008)
New Revision: 2638
Modified:
projects/jsf-console/branches/jsf-console-3.2.x/console/pom.xml
projects/jsf-console/branches/jsf-console-3.2.x/jbpm4jsf/pom.xml
projects/jsf-console/branches/jsf-console-3.2.x/pom.xml
Log:
Set version to 3.2.2-SNAPSHOT
Modified: projects/jsf-console/branches/jsf-console-3.2.x/console/pom.xml
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2.x/console/pom.xml 2008-10-28 10:26:08 UTC (rev 2637)
+++ projects/jsf-console/branches/jsf-console-3.2.x/console/pom.xml 2008-10-28 10:45:28 UTC (rev 2638)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.jbpm.jbpm3</groupId>
<artifactId>jsf-console</artifactId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>3.2.2-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
@@ -31,7 +31,7 @@
<!-- jBPM Dependencies -->
<dependency>
<groupId>org.jbpm.jbpm3</groupId>
- <artifactId>jbpm-jbpm4jsf</artifactId>
+ <artifactId>jsf-console-jbpm4jsf</artifactId>
<version>${version}</version>
<exclusions>
<exclusion>
@@ -57,7 +57,7 @@
<dependency>
<groupId>org.jbpm.jbpm3</groupId>
<artifactId>jbpm-core</artifactId>
- <version>${version}</version>
+ <version>${jbpm.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
@@ -83,4 +83,4 @@
</plugin>
</plugins>
</build>
-</project>
\ No newline at end of file
+</project>
Modified: projects/jsf-console/branches/jsf-console-3.2.x/jbpm4jsf/pom.xml
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2.x/jbpm4jsf/pom.xml 2008-10-28 10:26:08 UTC (rev 2637)
+++ projects/jsf-console/branches/jsf-console-3.2.x/jbpm4jsf/pom.xml 2008-10-28 10:45:28 UTC (rev 2638)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.jbpm.jbpm3</groupId>
<artifactId>jsf-console</artifactId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>3.2.2-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
@@ -34,7 +34,7 @@
<dependency>
<groupId>org.jbpm.jbpm3</groupId>
<artifactId>jbpm-identity</artifactId>
- <version>${version}</version>
+ <version>${jbpm.version}</version>
</dependency>
<dependency>
@@ -93,4 +93,4 @@
</plugins>
</build>
-</project>
\ No newline at end of file
+</project>
Modified: projects/jsf-console/branches/jsf-console-3.2.x/pom.xml
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2.x/pom.xml 2008-10-28 10:26:08 UTC (rev 2637)
+++ projects/jsf-console/branches/jsf-console-3.2.x/pom.xml 2008-10-28 10:45:28 UTC (rev 2638)
@@ -17,7 +17,7 @@
<groupId>org.jbpm.jbpm3</groupId>
<artifactId>jsf-console</artifactId>
<packaging>pom</packaging>
- <version>3.3.0-SNAPSHOT</version>
+ <version>3.2.2-SNAPSHOT</version>
<!-- Parent -->
<parent>
@@ -34,46 +34,16 @@
<!-- Properties -->
<properties>
- <apache.ant.version>1.7.0</apache.ant.version>
- <apache.cactus.version>1.8.0</apache.cactus.version>
- <apache.jackrabbit.version>1.4.5</apache.jackrabbit.version>
- <bsh.version>1.3.0</bsh.version>
<commons.fileupload.version>1.2.1</commons.fileupload.version>
<commons.io.version>1.4</commons.io.version>
<commons.logging.version>1.1.1</commons.logging.version>
- <desmoj.version>2.1.1</desmoj.version>
- <dom4j.version>1.6.1</dom4j.version>
- <drools.version>4.0.7</drools.version>
- <dumbster.version>1.6</dumbster.version>
- <hibernate.version>3.2.6.ga</hibernate.version>
- <hibernate.annotations.version>3.3.1.GA</hibernate.annotations.version>
- <hibernate.validator.version>3.0.0.ga</hibernate.validator.version>
- <izpack.version>4.0.0</izpack.version>
- <jasper.reports.version>3.0.0</jasper.reports.version>
- <javax.ejb.version>3.0</javax.ejb.version>
<javax.el.version>1.2</javax.el.version>
<javax.faces.version>1.2_03</javax.faces.version>
- <javax.jcr.version>1.0.1</javax.jcr.version>
- <javax.jms.version>1.1</javax.jms.version>
- <javax.jws.version>1.0-MR1</javax.jws.version>
- <javax.mail.version>1.4</javax.mail.version>
<javax.servlet.version>2.5</javax.servlet.version>
- <javax.persistence.version>1.0</javax.persistence.version>
- <javax.jaxb.version>2.1</javax.jaxb.version>
- <jaxen.version>1.1.1</jaxen.version>
- <jbpm.api.version>1.0.0-SNAPSHOT</jbpm.api.version>
- <jboss.jbpm.designer.version>3.1.4</jboss.jbpm.designer.version>
+ <jbpm.version>3.3.0-SNAPSHOT</jbpm.version>
<jboss.gravel.version>1.0.0.GA</jboss.gravel.version>
- <jboss.seam.version>2.0.2.GA</jboss.seam.version>
<junit.version>3.8.1</junit.version>
- <oscache.version>2.4</oscache.version>
- <poi.version>3.0.2-FINAL</poi.version>
- <richfaces.ui.version>3.2.1.GA</richfaces.ui.version>
- <slf4j.version>1.5.5</slf4j.version>
<sun.facelets.version>1.1.14</sun.facelets.version>
- <hsqldb.version>1.8.0.7</hsqldb.version>
- <mysql.connector.version>5.1.6</mysql.connector.version>
- <postgresql.version>8.3-603.jdbc3</postgresql.version>
</properties>
<!-- DependencyManagement -->
15 years, 7 months
JBoss JBPM SVN: r2637 - projects/jsf-console/branches.
by do-not-reply@jboss.org
Author: heiko.braun(a)jboss.com
Date: 2008-10-28 06:26:08 -0400 (Tue, 28 Oct 2008)
New Revision: 2637
Added:
projects/jsf-console/branches/jsf-console-3.2.x/
Log:
Create a development branch for the console functionality in 3.2.2
Copied: projects/jsf-console/branches/jsf-console-3.2.x (from rev 2636, projects/jsf-console/trunk)
15 years, 7 months
JBoss JBPM SVN: r2636 - projects/jsf-console.
by do-not-reply@jboss.org
Author: heiko.braun(a)jboss.com
Date: 2008-10-28 06:25:57 -0400 (Tue, 28 Oct 2008)
New Revision: 2636
Added:
projects/jsf-console/branches/
Log:
branch dir
15 years, 7 months
JBoss JBPM SVN: r2635 - in jbpm3/trunk: modules and 1 other directories.
by do-not-reply@jboss.org
Author: heiko.braun(a)jboss.com
Date: 2008-10-28 06:22:20 -0400 (Tue, 28 Oct 2008)
New Revision: 2635
Removed:
jbpm3/trunk/modules/console/
jbpm3/trunk/modules/jbpm4jsf/
Modified:
jbpm3/trunk/modules/enterprise/ear/pom.xml
jbpm3/trunk/pom.xml
Log:
Mave jsf console to projects
Modified: jbpm3/trunk/modules/enterprise/ear/pom.xml
===================================================================
--- jbpm3/trunk/modules/enterprise/ear/pom.xml 2008-10-28 09:57:32 UTC (rev 2634)
+++ jbpm3/trunk/modules/enterprise/ear/pom.xml 2008-10-28 10:22:20 UTC (rev 2635)
@@ -41,8 +41,7 @@
</dependency>
<dependency>
<groupId>org.jbpm.jbpm3</groupId>
- <artifactId>jbpm-console</artifactId>
- <version>${version}</version>
+ <artifactId>jsf-console-war</artifactId>
<type>war</type>
</dependency>
<dependency>
@@ -117,8 +116,8 @@
</jarModule>
<webModule>
<groupId>org.jbpm.jbpm3</groupId>
- <artifactId>jbpm-console</artifactId>
- <bundleFileName>jbpm-console.war</bundleFileName>
+ <artifactId>jsf-console-war</artifactId>
+ <bundleFileName>jsf-console.war</bundleFileName>
<contextRoot>/jbpm-console</contextRoot>
<unpack>true</unpack>
</webModule>
Modified: jbpm3/trunk/pom.xml
===================================================================
--- jbpm3/trunk/pom.xml 2008-10-28 09:57:32 UTC (rev 2634)
+++ jbpm3/trunk/pom.xml 2008-10-28 10:22:20 UTC (rev 2635)
@@ -28,12 +28,10 @@
<!-- Modules -->
<modules>
- <module>modules/console</module>
<module>modules/core</module>
<module>modules/enterprise</module>
<module>modules/examples</module>
<module>modules/identity</module>
- <module>modules/jbpm4jsf</module>
<module>modules/simulation</module>
</modules>
@@ -66,6 +64,7 @@
<javax.persistence.version>1.0</javax.persistence.version>
<javax.jaxb.version>2.1</javax.jaxb.version>
<jaxen.version>1.1.1</jaxen.version>
+ <jsf-console.version>${version}</jsf-console.version>
<jbpm.api.version>1.0.0-SNAPSHOT</jbpm.api.version>
<jboss.jbpm.designer.version>3.1.4</jboss.jbpm.designer.version>
<jboss.gravel.version>1.0.0.GA</jboss.gravel.version>
@@ -98,7 +97,14 @@
<version>${jboss.jbpm.designer.version}</version>
<type>zip</type>
</dependency>
+ <dependency>
+ <groupId>org.jbpm.jbpm3</groupId>
+ <artifactId>jsf-console-war</artifactId>
+ <version>${jsf-console.version}</version>
+ <type>war</type>
+ </dependency>
+
<!-- Thirdparty Dependencies -->
<dependency>
<groupId>bsh</groupId>
15 years, 7 months
JBoss JBPM SVN: r2634 - in projects: jsf-console and 3 other directories.
by do-not-reply@jboss.org
Author: heiko.braun(a)jboss.com
Date: 2008-10-28 05:57:32 -0400 (Tue, 28 Oct 2008)
New Revision: 2634
Added:
projects/jsf-console/
projects/jsf-console/trunk/
projects/jsf-console/trunk/console/
projects/jsf-console/trunk/jbpm4jsf/
projects/jsf-console/trunk/pom.xml
Modified:
projects/jsf-console/trunk/console/pom.xml
projects/jsf-console/trunk/jbpm4jsf/pom.xml
Log:
Spin off jsf console
Copied: projects/jsf-console/trunk/console (from rev 2631, jbpm3/trunk/modules/console)
Modified: projects/jsf-console/trunk/console/pom.xml
===================================================================
--- jbpm3/trunk/modules/console/pom.xml 2008-10-27 17:25:05 UTC (rev 2631)
+++ projects/jsf-console/trunk/console/pom.xml 2008-10-28 09:57:32 UTC (rev 2634)
@@ -15,13 +15,13 @@
<modelVersion>4.0.0</modelVersion>
<name>JBoss jBPM3 - Console</name>
<groupId>org.jbpm.jbpm3</groupId>
- <artifactId>jbpm-console</artifactId>
+ <artifactId>jsf-console-war</artifactId>
<packaging>war</packaging>
<!-- Parent -->
<parent>
<groupId>org.jbpm.jbpm3</groupId>
- <artifactId>jbpm</artifactId>
+ <artifactId>jsf-console</artifactId>
<version>3.3.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Copied: projects/jsf-console/trunk/jbpm4jsf (from rev 2631, jbpm3/trunk/modules/jbpm4jsf)
Modified: projects/jsf-console/trunk/jbpm4jsf/pom.xml
===================================================================
--- jbpm3/trunk/modules/jbpm4jsf/pom.xml 2008-10-27 17:25:05 UTC (rev 2631)
+++ projects/jsf-console/trunk/jbpm4jsf/pom.xml 2008-10-28 09:57:32 UTC (rev 2634)
@@ -17,13 +17,13 @@
<name>JBoss jBPM3 - 4JSF</name>
<groupId>org.jbpm.jbpm3</groupId>
- <artifactId>jbpm-jbpm4jsf</artifactId>
+ <artifactId>jsf-console-jbpm4jsf</artifactId>
<packaging>jar</packaging>
<!-- Parent -->
<parent>
<groupId>org.jbpm.jbpm3</groupId>
- <artifactId>jbpm</artifactId>
+ <artifactId>jsf-console</artifactId>
<version>3.3.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Copied: projects/jsf-console/trunk/pom.xml (from rev 2631, jbpm3/trunk/pom.xml)
===================================================================
--- projects/jsf-console/trunk/pom.xml (rev 0)
+++ projects/jsf-console/trunk/pom.xml 2008-10-28 09:57:32 UTC (rev 2634)
@@ -0,0 +1,176 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+ <!-- ====================================================================== -->
+ <!-- -->
+ <!-- JBoss, the OpenSource J2EE webOS -->
+ <!-- -->
+ <!-- Distributable under LGPL license. -->
+ <!-- See terms of license at http://www.gnu.org. -->
+ <!-- -->
+ <!-- ====================================================================== -->
+
+ <!-- $Id: pom.xml 7412 2008-06-06 13:42:30Z thomas.diesler(a)jboss.com $ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <name>JBoss jBPM3</name>
+ <groupId>org.jbpm.jbpm3</groupId>
+ <artifactId>jsf-console</artifactId>
+ <packaging>pom</packaging>
+ <version>3.3.0-SNAPSHOT</version>
+
+ <!-- Parent -->
+ <parent>
+ <groupId>org.jbpm</groupId>
+ <artifactId>jbpm-parent</artifactId>
+ <version>1.0.0.GA</version>
+ </parent>
+
+ <!-- Modules -->
+ <modules>
+ <module>console</module>
+ <module>jbpm4jsf</module>
+ </modules>
+
+ <!-- Properties -->
+ <properties>
+ <apache.ant.version>1.7.0</apache.ant.version>
+ <apache.cactus.version>1.8.0</apache.cactus.version>
+ <apache.jackrabbit.version>1.4.5</apache.jackrabbit.version>
+ <bsh.version>1.3.0</bsh.version>
+ <commons.fileupload.version>1.2.1</commons.fileupload.version>
+ <commons.io.version>1.4</commons.io.version>
+ <commons.logging.version>1.1.1</commons.logging.version>
+ <desmoj.version>2.1.1</desmoj.version>
+ <dom4j.version>1.6.1</dom4j.version>
+ <drools.version>4.0.7</drools.version>
+ <dumbster.version>1.6</dumbster.version>
+ <hibernate.version>3.2.6.ga</hibernate.version>
+ <hibernate.annotations.version>3.3.1.GA</hibernate.annotations.version>
+ <hibernate.validator.version>3.0.0.ga</hibernate.validator.version>
+ <izpack.version>4.0.0</izpack.version>
+ <jasper.reports.version>3.0.0</jasper.reports.version>
+ <javax.ejb.version>3.0</javax.ejb.version>
+ <javax.el.version>1.2</javax.el.version>
+ <javax.faces.version>1.2_03</javax.faces.version>
+ <javax.jcr.version>1.0.1</javax.jcr.version>
+ <javax.jms.version>1.1</javax.jms.version>
+ <javax.jws.version>1.0-MR1</javax.jws.version>
+ <javax.mail.version>1.4</javax.mail.version>
+ <javax.servlet.version>2.5</javax.servlet.version>
+ <javax.persistence.version>1.0</javax.persistence.version>
+ <javax.jaxb.version>2.1</javax.jaxb.version>
+ <jaxen.version>1.1.1</jaxen.version>
+ <jbpm.api.version>1.0.0-SNAPSHOT</jbpm.api.version>
+ <jboss.jbpm.designer.version>3.1.4</jboss.jbpm.designer.version>
+ <jboss.gravel.version>1.0.0.GA</jboss.gravel.version>
+ <jboss.seam.version>2.0.2.GA</jboss.seam.version>
+ <junit.version>3.8.1</junit.version>
+ <oscache.version>2.4</oscache.version>
+ <poi.version>3.0.2-FINAL</poi.version>
+ <richfaces.ui.version>3.2.1.GA</richfaces.ui.version>
+ <slf4j.version>1.5.5</slf4j.version>
+ <sun.facelets.version>1.1.14</sun.facelets.version>
+ <hsqldb.version>1.8.0.7</hsqldb.version>
+ <mysql.connector.version>5.1.6</mysql.connector.version>
+ <postgresql.version>8.3-603.jdbc3</postgresql.version>
+ </properties>
+
+ <!-- DependencyManagement -->
+ <dependencyManagement>
+ <dependencies>
+
+ <dependency>
+ <groupId>commons-fileupload</groupId>
+ <artifactId>commons-fileupload</artifactId>
+ <version>${commons.fileupload.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ <version>${commons.io.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>${commons.logging.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>${javax.servlet.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.gravel</groupId>
+ <artifactId>gravel</artifactId>
+ <version>${jboss.gravel.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.sun.facelets</groupId>
+ <artifactId>jsf-facelets</artifactId>
+ <version>${sun.facelets.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ <version>${javax.el.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <version>${javax.faces.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ <version>${javax.faces.version}</version>
+ </dependency>
+
+ <!-- jBPM Dependencies -->
+ <!--dependency>
+ <groupId>org.jbpm.jbpm4</groupId>
+ <artifactId>jbpm-spec-api</artifactId>
+ <version>${jbpm.api.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jbpm</groupId>
+ <artifactId>jbpm-jpdl-designer</artifactId>
+ <version>${jboss.jbpm.designer.version}</version>
+ <type>zip</type>
+ </dependency-->
+ </dependencies>
+ </dependencyManagement>
+
+ <!-- Dependencies -->
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <!-- DistributionManagement -->
+ <distributionManagement>
+ <site>
+ <id>jbws.dyndns.org</id>
+ <url>file:///home/tdiesler/workspace/jbpm-site</url>
+ </site>
+ </distributionManagement>
+
+ <!-- Repositories -->
+ <repositories>
+ <repository>
+ <id>repository.jboss.org</id>
+ <url>http://repository.jboss.org/maven2</url>
+ </repository>
+ </repositories>
+ </project>
15 years, 7 months
JBoss JBPM SVN: r2633 - in jbpm3/trunk/modules/core: src/main/java/org/jbpm and 9 other directories.
by do-not-reply@jboss.org
Author: alex.guizar(a)jboss.com
Date: 2008-10-28 04:20:50 -0400 (Tue, 28 Oct 2008)
New Revision: 2633
Modified:
jbpm3/trunk/modules/core/pom.xml
jbpm3/trunk/modules/core/src/main/java/org/jbpm/EventCallback.java
jbpm3/trunk/modules/core/src/main/java/org/jbpm/db/AbstractDbTestCase.java
jbpm3/trunk/modules/core/src/main/java/org/jbpm/db/GraphSession.java
jbpm3/trunk/modules/core/src/test/java/org/jbpm/jbpm1072/JBPM1072Test.java
jbpm3/trunk/modules/core/src/test/java/org/jbpm/jbpm1135/JBPM1135Test.java
jbpm3/trunk/modules/core/src/test/java/org/jbpm/jbpm1755/JBPM1755Test.java
jbpm3/trunk/modules/core/src/test/java/org/jbpm/jbpm983/JBPM983Test.java
jbpm3/trunk/modules/core/src/test/java/org/jbpm/job/executor/JobExecutorDbTest.java
jbpm3/trunk/modules/core/src/test/java/org/jbpm/optimisticlocking/LockingTest.java
jbpm3/trunk/modules/core/src/test/java/org/jbpm/scheduler/exe/TimerDbTest.java
jbpm3/trunk/modules/core/src/test/java/org/jbpm/taskmgmt/exe/TaskTimerExecutionDbTest.java
Log:
revised core tests that were taking too long, acting funny, or both
ran test suite like a maniac against postgresql, mysql and hsqldb to check stability
Modified: jbpm3/trunk/modules/core/pom.xml
===================================================================
--- jbpm3/trunk/modules/core/pom.xml 2008-10-28 01:24:17 UTC (rev 2632)
+++ jbpm3/trunk/modules/core/pom.xml 2008-10-28 08:20:50 UTC (rev 2633)
@@ -226,11 +226,6 @@
<!-- https://jira.jboss.org/jira/browse/JBPM-1723 -->
<exclude>org/jbpm/perf/PerfWithoutDbTest.java</exclude>
<exclude>org/jbpm/perf/StateUpdateTest.java</exclude>
- <!-- https://jira.jboss.org/jira/browse/JBPM-1724 -->
- <exclude>org/jbpm/seam/SeamPageFlowTest.java</exclude>
- <!-- https://jira.jboss.org/jira/browse/JBPM-1709 -->
- <exclude>org/jbpm/scheduler/exe/TimerDbTest.java</exclude>
- <exclude>org/jbpm/taskmgmt/exe/TaskTimerExecutionDbTest.java</exclude>
</excludes>
</configuration>
</plugin>
@@ -262,9 +257,6 @@
<!-- https://jira.jboss.org/jira/browse/JBPM-1723 -->
<exclude>org/jbpm/perf/PerfWithoutDbTest.java</exclude>
<exclude>org/jbpm/perf/StateUpdateTest.java</exclude>
- <!-- https://jira.jboss.org/jira/browse/JBPM-1709 -->
- <exclude>org/jbpm/scheduler/exe/TimerDbTest.java</exclude>
- <exclude>org/jbpm/taskmgmt/exe/TaskTimerExecutionDbTest.java</exclude>
</excludes>
</configuration>
</plugin>
@@ -298,9 +290,6 @@
<exclude>org/jbpm/perf/StateUpdateTest.java</exclude>
<!-- https://jira.jboss.org/jira/browse/JBPM-1735 -->
<exclude>org/jbpm/graph/node/ProcessStateDbTest.java</exclude>
- <!-- https://jira.jboss.org/jira/browse/JBPM-1709 -->
- <exclude>org/jbpm/scheduler/exe/TimerDbTest.java</exclude>
- <exclude>org/jbpm/taskmgmt/exe/TaskTimerExecutionDbTest.java</exclude>
</excludes>
</configuration>
</plugin>
@@ -337,9 +326,6 @@
<exclude>org/jbpm/graph/exe/SubProcessPlusConcurrencyDbTest.java</exclude>
<!-- https://jira.jboss.org/jira/browse/JBPM-1782 -->
<exclude>org/jbpm/jpdl/exe/JoinExecutionDbTest.java</exclude>
- <!-- https://jira.jboss.org/jira/browse/JBPM-1709 -->
- <exclude>org/jbpm/scheduler/exe/TimerDbTest.java</exclude>
- <exclude>org/jbpm/taskmgmt/exe/TaskTimerExecutionDbTest.java</exclude>
</excludes>
</configuration>
</plugin>
@@ -373,9 +359,6 @@
<exclude>org/jbpm/perf/StateUpdateTest.java</exclude>
<!-- https://jira.jboss.org/jira/browse/JBPM-1764 -->
<exclude>org/jbpm/job/executor/JobExecutorDbTest</exclude>
- <!-- https://jira.jboss.org/jira/browse/JBPM-1709 -->
- <exclude>org/jbpm/scheduler/exe/TimerDbTest.java</exclude>
- <exclude>org/jbpm/taskmgmt/exe/TaskTimerExecutionDbTest.java</exclude>
</excludes>
</configuration>
</plugin>
Modified: jbpm3/trunk/modules/core/src/main/java/org/jbpm/EventCallback.java
===================================================================
--- jbpm3/trunk/modules/core/src/main/java/org/jbpm/EventCallback.java 2008-10-28 01:24:17 UTC (rev 2632)
+++ jbpm3/trunk/modules/core/src/main/java/org/jbpm/EventCallback.java 2008-10-28 08:20:50 UTC (rev 2633)
@@ -37,6 +37,8 @@
public class EventCallback implements Serializable {
+ public static final int DEFAULT_TIMEOUT = 30 * 1000;
+
private static final long serialVersionUID = 1L;
private static final Log log = LogFactory.getLog(EventCallback.class);
@@ -100,7 +102,7 @@
}
public static void waitForEvent(String event) {
- waitForEvent(event, 10000);
+ waitForEvent(event, DEFAULT_TIMEOUT);
}
public static void waitForEvent(String event, long timeout) {
Modified: jbpm3/trunk/modules/core/src/main/java/org/jbpm/db/AbstractDbTestCase.java
===================================================================
--- jbpm3/trunk/modules/core/src/main/java/org/jbpm/db/AbstractDbTestCase.java 2008-10-28 01:24:17 UTC (rev 2632)
+++ jbpm3/trunk/modules/core/src/main/java/org/jbpm/db/AbstractDbTestCase.java 2008-10-28 08:20:50 UTC (rev 2633)
@@ -199,7 +199,7 @@
jobExecutor.start();
}
- protected void processAllJobs(final long maxWait, int maxJobs)
+ protected void waitForJobs(long timeout, int maxJobs)
{
// install a timer that will interrupt if it takes too long
// if that happens, it will lead to an interrupted exception and the test
@@ -215,7 +215,7 @@
}
};
Timer timer = new Timer();
- timer.schedule(interruptTask, maxWait);
+ timer.schedule(interruptTask, timeout);
try
{
@@ -227,7 +227,7 @@
}
catch (InterruptedException e)
{
- fail("test execution exceeded treshold of " + maxWait + " milliseconds");
+ fail("test execution exceeded treshold of " + timeout + " milliseconds");
}
finally
{
@@ -289,7 +289,7 @@
startJobExecutor();
try
{
- processAllJobs(maxWait, maxJobs);
+ waitForJobs(maxWait, maxJobs);
}
finally
{
Modified: jbpm3/trunk/modules/core/src/main/java/org/jbpm/db/GraphSession.java
===================================================================
--- jbpm3/trunk/modules/core/src/main/java/org/jbpm/db/GraphSession.java 2008-10-28 01:24:17 UTC (rev 2632)
+++ jbpm3/trunk/modules/core/src/main/java/org/jbpm/db/GraphSession.java 2008-10-28 08:20:50 UTC (rev 2633)
@@ -29,7 +29,6 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.hibernate.Hibernate;
import org.hibernate.HibernateException;
import org.hibernate.LockMode;
import org.hibernate.Query;
Modified: jbpm3/trunk/modules/core/src/test/java/org/jbpm/jbpm1072/JBPM1072Test.java
===================================================================
--- jbpm3/trunk/modules/core/src/test/java/org/jbpm/jbpm1072/JBPM1072Test.java 2008-10-28 01:24:17 UTC (rev 2632)
+++ jbpm3/trunk/modules/core/src/test/java/org/jbpm/jbpm1072/JBPM1072Test.java 2008-10-28 08:20:50 UTC (rev 2633)
@@ -32,7 +32,10 @@
import org.jbpm.job.executor.JobExecutor;
/**
- * Concurrent JobExecutors can process the same job in parallel
+ * Concurrent job executors can process the same job in parallel.
+ * The test simulates multiple nodes in the network processing a common job set.
+ * The key setting is to give each job executor a different name;
+ * normally, a job executor is named after the node's inet address
*
* https://jira.jboss.org/jira/browse/JBPM-1072
*
@@ -41,15 +44,14 @@
*/
public class JBPM1072Test extends AbstractDbTestCase {
- private static final int JOB_EXECUTOR_COUNT = 8;
+ private static final int JOB_EXECUTOR_COUNT = 4;
private JobExecutor[] jobExecutors = new JobExecutor[JOB_EXECUTOR_COUNT];
- private ProcessDefinition processDefinition;
+ private long processDefinitionId;
- private static final String PROCESS_DEFINITION = "<?xml version='1.0' encoding='UTF-8'?>"
- + "<process-definition name='"
- + JBPM1072Test.class.getName()
- + "'>"
+ private volatile static int executionCount;
+
+ private static final String PROCESS_DEFINITION = "<process-definition name='job-executors'>"
+ "<event type='process-end'>"
+ "<action expression='#{eventCallback.processEnd}' />"
+ "</event>"
@@ -74,36 +76,55 @@
@Override
protected void setUp() throws Exception {
super.setUp();
- processDefinition = ProcessDefinition.parseXmlString(PROCESS_DEFINITION);
+
+ ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(PROCESS_DEFINITION);
jbpmContext.deployProcessDefinition(processDefinition);
+ newTransaction();
+ processDefinitionId = processDefinition.getId();
+
+ startJobExecutors();
}
@Override
protected void tearDown() throws Exception {
+ stopJobExecutors();
+ graphSession.deleteProcessDefinition(processDefinitionId);
+ super.tearDown();
+
EventCallback.clear();
- graphSession.deleteProcessDefinition(processDefinition);
- super.tearDown();
}
public void testMultipleJobExecutors() {
- // start job executors
- for (int i = 0; i < jobExecutors.length; i++) {
- jobExecutors[i] = (JobExecutor) JbpmConfiguration.Configs.getObject("jbpm.job.executor");
- jobExecutors[i].setName("JbpmJobExecutor/" + (i + 1));
- jobExecutors[i].start();
- }
+ executionCount = 0;
// kick off process instance
+ ProcessDefinition processDefinition = graphSession.loadProcessDefinition(processDefinitionId);
ProcessInstance processInstance = new ProcessInstance(processDefinition);
processInstance.getContextInstance().setVariable("eventCallback", new EventCallback());
processInstance.signal();
+ jbpmContext.save(processInstance);
+
commitAndCloseSession();
+ try {
+ EventCallback.waitForEvent(Event.EVENTTYPE_PROCESS_END);
+ assertEquals(2, executionCount);
- // wait for process end
- EventCallback.waitForEvent(Event.EVENTTYPE_PROCESS_END);
- assertEquals(2, Counter.getExecutionCount());
+ waitForJobs(EventCallback.DEFAULT_TIMEOUT, 0);
+ }
+ finally {
+ beginSessionTransaction();
+ }
+ }
- // stop job executors
+ private void startJobExecutors() {
+ for (int i = 0; i < jobExecutors.length; i++) {
+ jobExecutors[i] = (JobExecutor) JbpmConfiguration.Configs.getObject("jbpm.job.executor");
+ jobExecutors[i].setName("JbpmJobExecutor/" + i);
+ jobExecutors[i].start();
+ }
+ }
+
+ private void stopJobExecutors() {
for (int i = jobExecutors.length - 1; i >= 0; i--) {
try {
jobExecutors[i].stopAndJoin();
@@ -112,27 +133,19 @@
// continue to next executor
}
}
+ }
- beginSessionTransaction();
+ private static synchronized void incrementCount() {
+ ++executionCount;
}
public static class Counter implements ActionHandler {
- private static int executionCount = 0;
-
private static final long serialVersionUID = 1L;
public void execute(ExecutionContext exeContext) throws Exception {
incrementCount();
exeContext.leaveNode();
}
-
- private static synchronized int incrementCount() {
- return ++executionCount;
- }
-
- public static synchronized int getExecutionCount() {
- return executionCount;
- }
}
}
Modified: jbpm3/trunk/modules/core/src/test/java/org/jbpm/jbpm1135/JBPM1135Test.java
===================================================================
--- jbpm3/trunk/modules/core/src/test/java/org/jbpm/jbpm1135/JBPM1135Test.java 2008-10-28 01:24:17 UTC (rev 2632)
+++ jbpm3/trunk/modules/core/src/test/java/org/jbpm/jbpm1135/JBPM1135Test.java 2008-10-28 08:20:50 UTC (rev 2633)
@@ -27,9 +27,9 @@
import org.jbpm.graph.def.ProcessDefinition;
import org.jbpm.graph.exe.ProcessInstance;
-/**
- * JobSession.deleteJobsForProcessInstance doesn't work if jbpm isn't the
- * transaction manager
+/**
+ * When a timer fires and another timer is created as part of its execution,
+ * no exception should be thrown.
*
* https://jira.jboss.org/jira/browse/JBPM-1135
*
@@ -42,18 +42,22 @@
@Override
protected void setUp() throws Exception {
super.setUp();
+
ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource("org/jbpm/jbpm1135/timerprocess.xml");
jbpmContext.deployProcessDefinition(processDefinition);
processDefinitionId = processDefinition.getId();
+ newTransaction();
+
startJobExecutor();
}
@Override
protected void tearDown() throws Exception {
- EventCallback.clear();
stopJobExecutor();
graphSession.deleteProcessDefinition(processDefinitionId);
super.tearDown();
+
+ EventCallback.clear();
}
public void testTimerOnTimer() {
@@ -63,19 +67,19 @@
processInstance.signal();
jbpmContext.save(processInstance);
assertEquals("firstNode", processInstance.getRootToken().getNode().getName());
- commitAndCloseSession();
+ newTransaction();
+
EventCallback.waitForEvent(Event.EVENTTYPE_TIMER);
- beginSessionTransaction();
long processInstanceId = processInstance.getId();
assertEquals("secondNode", jbpmContext.loadProcessInstance(processInstanceId)
.getRootToken()
.getNode()
.getName());
- commitAndCloseSession();
+ newTransaction();
+
EventCallback.waitForEvent(Event.EVENTTYPE_PROCESS_END);
- beginSessionTransaction();
assertTrue(jbpmContext.loadProcessInstance(processInstanceId).hasEnded());
}
}
Modified: jbpm3/trunk/modules/core/src/test/java/org/jbpm/jbpm1755/JBPM1755Test.java
===================================================================
--- jbpm3/trunk/modules/core/src/test/java/org/jbpm/jbpm1755/JBPM1755Test.java 2008-10-28 01:24:17 UTC (rev 2632)
+++ jbpm3/trunk/modules/core/src/test/java/org/jbpm/jbpm1755/JBPM1755Test.java 2008-10-28 08:20:50 UTC (rev 2633)
@@ -38,11 +38,11 @@
@Override
protected void tearDown() throws Exception {
- EventCallback.clear();
-
stopJobExecutor();
graphSession.deleteProcessDefinition(processDefinitionId);
super.tearDown();
+
+ EventCallback.clear();
}
public void testReadLock() {
Modified: jbpm3/trunk/modules/core/src/test/java/org/jbpm/jbpm983/JBPM983Test.java
===================================================================
--- jbpm3/trunk/modules/core/src/test/java/org/jbpm/jbpm983/JBPM983Test.java 2008-10-28 01:24:17 UTC (rev 2632)
+++ jbpm3/trunk/modules/core/src/test/java/org/jbpm/jbpm983/JBPM983Test.java 2008-10-28 08:20:50 UTC (rev 2633)
@@ -10,7 +10,6 @@
import org.jbpm.graph.def.ProcessDefinition;
import org.jbpm.graph.exe.ExecutionContext;
import org.jbpm.graph.exe.ProcessInstance;
-import org.jbpm.job.executor.JobExecutor;
/**
* Concurrent process execution fails
@@ -42,17 +41,17 @@
jbpmContext.deployProcessDefinition(processDefinition);
processDefinitionId = processDefinition.getId();
- JobExecutor jobExecutor = getJbpmConfiguration().getJobExecutor();
- jobExecutor.setNbrOfThreads(5);
- jobExecutor.start();
+ newTransaction();
+
+ getJbpmConfiguration().getJobExecutor().setNbrOfThreads(5);
+ startJobExecutor();
}
protected void tearDown() throws Exception {
- getJbpmConfiguration().getJobExecutor().stop();
+ stopJobExecutor();
- newTransaction();
graphSession.deleteProcessDefinition(processDefinitionId);
- graphSession.deleteProcessDefinition(subProcessDefinitionId);
+ graphSession.deleteProcessDefinition(subProcessDefinitionId);
super.tearDown();
}
@@ -132,11 +131,11 @@
final int processCount = 10;
long[] processInstanceIds = new long[processCount];
for (int i = 0; i < processCount; i++) {
- newTransaction();
ProcessInstance processInstance = jbpmContext.newProcessInstanceForUpdate("superprocess");
processInstance.getContextInstance().addVariables(testVariables);
processInstance.signal();
processInstanceIds[i] = processInstance.getId();
+ newTransaction();
}
for (int i = 0; i < processCount; i++) {
@@ -146,21 +145,21 @@
ProcessInstance pi = jbpmContext.loadProcessInstance(piId);
assertEquals("end-state-success", pi.getRootToken().getNode().getName());
}
+
+ processJobs(30 * 1000);
}
protected void waitFor(long piId) throws Exception {
final int endTimeout = 30;
long startTime = System.currentTimeMillis();
- boolean processInstanceHasEnded = false;
- while (!processInstanceHasEnded) {
+ while(!jbpmContext.loadProcessInstance(piId).hasEnded()) {
if (System.currentTimeMillis() - startTime > endTimeout * 1000) {
fail("Aborting after " + endTimeout + " seconds.");
- return;
+ break;
}
newTransaction();
- processInstanceHasEnded = jbpmContext.loadProcessInstance(piId).hasEnded();
log.info("waiting for workflow completion....");
try {
@@ -168,6 +167,7 @@
}
catch (InterruptedException e) {
log.error("wait for workflow was interruputed", e);
+ break;
}
}
}
Modified: jbpm3/trunk/modules/core/src/test/java/org/jbpm/job/executor/JobExecutorDbTest.java
===================================================================
--- jbpm3/trunk/modules/core/src/test/java/org/jbpm/job/executor/JobExecutorDbTest.java 2008-10-28 01:24:17 UTC (rev 2632)
+++ jbpm3/trunk/modules/core/src/test/java/org/jbpm/job/executor/JobExecutorDbTest.java 2008-10-28 08:20:50 UTC (rev 2633)
@@ -4,121 +4,113 @@
import java.util.Collections;
import java.util.List;
import java.util.Set;
-import java.util.Timer;
-import java.util.TimerTask;
import java.util.TreeSet;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.hibernate.Session;
-import org.jbpm.AbstractJbpmTestCase;
-import org.jbpm.JbpmConfiguration;
-import org.jbpm.JbpmContext;
+import org.jbpm.db.AbstractDbTestCase;
import org.jbpm.graph.def.Action;
import org.jbpm.graph.def.ActionHandler;
import org.jbpm.graph.def.ProcessDefinition;
import org.jbpm.graph.exe.ExecutionContext;
import org.jbpm.graph.exe.ProcessInstance;
-public class JobExecutorDbTest extends AbstractJbpmTestCase
-{
- private static Log log = LogFactory.getLog(JobExecutorDbTest.class);
+public class JobExecutorDbTest extends AbstractDbTestCase {
- static int nbrOfConcurrentProcessExecutions = 20;
- static int maxWaitTime = 60000;
+ static final int nbrOfConcurrentProcessExecutions = 20;
+ static final int timeout = 60000;
+
static Set<String> collectedResults = Collections.synchronizedSet(new TreeSet<String>());
+ static List<Long> allocatedProcessIds = Collections.synchronizedList(new ArrayList<Long>());
- static JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance("org/jbpm/jbpm.test.cfg.xml");
+ @Override
+ protected String getJbpmTestConfig() {
+ return "org/jbpm/jbpm.test.cfg.xml";
+ }
- static List<Long> allocatedProcessIds = Collections.synchronizedList(new ArrayList<Long>());
-
- {
- jbpmConfiguration.getJobExecutor().nbrOfThreads = 5;
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ deployProcess();
+ getJbpmConfiguration().getJobExecutor().setNbrOfThreads(5);
}
- private JobExecutor jobExecutor;
+ @Override
+ protected void tearDown() throws Exception {
+ deleteProcess();
+ super.tearDown();
+ }
- public void testJobExecutor()
- {
- jbpmConfiguration.createSchema();
- deployProcess();
+ public void testJobExecutor() {
launchProcesses();
- processJobs(maxWaitTime);
+ processJobs(timeout);
assertEquals(createExpectedResults(), collectedResults);
- jbpmConfiguration.createSchema();
}
- public void deployProcess()
- {
- JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
- try
- {
- ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(
- "<process-definition name='bulk messages'>"
- + " <start-state>"
- + " <transition to='a' />"
- + " </start-state>"
- + " <node name='a' async='true'>"
- + " <action class='" + AutomaticActivity.class.getName() + "' />"
- + " <transition to='b' />"
- + " </node>"
- + " <node name='b' async='true'>"
- + " <event type='node-enter'>"
- + " <action name='X' async='true' class='" + AsyncAction.class.getName() + "' />"
- + " </event>"
- + " <action class='" + AutomaticActivity.class.getName() + "' />"
- + " <transition to='c' />"
- + " </node>"
- + " <node name='c' async='true'>"
- + " <action class='" + AutomaticActivity.class.getName() + "' />"
- + " <transition to='d'>"
- + " <action name='Y' async='true' class='" + AsyncAction.class.getName() + "' />"
- + " </transition>"
- + " </node>"
- + " <node name='d' async='true'>"
- + " <action class='" + AutomaticActivity.class.getName() + "' />"
- + " <transition to='e' />"
- + " <event type='node-leave'>"
- + " <action name='Z' async='true' class='" + AsyncAction.class.getName() + "' />"
- + " </event>"
- + " </node>"
- + " <node name='e' async='true'>"
- + " <action class='" + AutomaticActivity.class.getName() + "' />"
- + " <transition to='end' />"
- + " </node>"
- + " <end-state name='end'/>"
- + "</process-definition>");
+ void deployProcess() {
+ ProcessDefinition processDefinition = ProcessDefinition.parseXmlString("<process-definition name='bulk messages'>"
+ + " <start-state>"
+ + " <transition to='a' />"
+ + " </start-state>"
+ + " <node name='a' async='true'>"
+ + " <action class='"
+ + AutomaticActivity.class.getName()
+ + "' />"
+ + " <transition to='b' />"
+ + " </node>"
+ + " <node name='b' async='true'>"
+ + " <event type='node-enter'>"
+ + " <action name='X' async='true' class='"
+ + AsyncAction.class.getName()
+ + "' />"
+ + " </event>"
+ + " <action class='"
+ + AutomaticActivity.class.getName()
+ + "' />"
+ + " <transition to='c' />"
+ + " </node>"
+ + " <node name='c' async='true'>"
+ + " <action class='"
+ + AutomaticActivity.class.getName()
+ + "' />"
+ + " <transition to='d'>"
+ + " <action name='Y' async='true' class='"
+ + AsyncAction.class.getName()
+ + "' />"
+ + " </transition>"
+ + " </node>"
+ + " <node name='d' async='true'>"
+ + " <action class='"
+ + AutomaticActivity.class.getName()
+ + "' />"
+ + " <transition to='e' />"
+ + " <event type='node-leave'>"
+ + " <action name='Z' async='true' class='"
+ + AsyncAction.class.getName()
+ + "' />"
+ + " </event>"
+ + " </node>"
+ + " <node name='e' async='true'>"
+ + " <action class='"
+ + AutomaticActivity.class.getName()
+ + "' />"
+ + " <transition to='end' />"
+ + " </node>"
+ + " <end-state name='end'/>"
+ + "</process-definition>");
- jbpmContext.deployProcessDefinition(processDefinition);
- }
- finally
- {
- jbpmContext.close();
- }
+ jbpmContext.deployProcessDefinition(processDefinition);
}
- public void launchProcesses()
- {
- for (int i = 0; i < nbrOfConcurrentProcessExecutions; i++)
- {
- JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
- try
- {
- ProcessInstance processInstance = jbpmContext.newProcessInstanceForUpdate("bulk messages");
- processInstance.signal();
- }
- finally
- {
- jbpmContext.close();
- }
+ void launchProcesses() {
+ for (int i = 0; i < nbrOfConcurrentProcessExecutions; i++) {
+ newTransaction();
+ ProcessInstance processInstance = jbpmContext.newProcessInstanceForUpdate("bulk messages");
+ processInstance.signal();
}
}
- public Set<String> createExpectedResults()
- {
+ Set<String> createExpectedResults() {
Set<String> expectedResults = new TreeSet<String>();
- for (int i = 0; i < nbrOfConcurrentProcessExecutions; i++)
- {
+ for (int i = 0; i < nbrOfConcurrentProcessExecutions; i++) {
String prefix = (i < 10 ? "0" : "");
expectedResults.add(prefix + i + "a");
expectedResults.add(prefix + i + "b");
@@ -132,153 +124,43 @@
return expectedResults;
}
- protected void startJobExecutor()
- {
- jobExecutor = jbpmConfiguration.getJobExecutor();
- jobExecutor.start();
+ void deleteProcess() {
+ ProcessDefinition processDefinition = graphSession.findLatestProcessDefinition("bulk messages");
+ graphSession.deleteProcessDefinition(processDefinition);
}
- private void processAllJobs(final long maxWait)
- {
- boolean jobsAvailable = true;
+ public static class AutomaticActivity implements ActionHandler {
- // install a timer that will interrupt if it takes too long
- // if that happens, it will lead to an interrupted exception and the test will fail
- TimerTask interruptTask = new TimerTask()
- {
- Thread testThread = Thread.currentThread();
-
- public void run()
- {
- log.debug("test " + getName() + " took too long. going to interrupt...");
- testThread.interrupt();
- }
- };
- Timer timer = new Timer();
- timer.schedule(interruptTask, maxWait);
-
- try
- {
- while (jobsAvailable)
- {
- log.debug("going to sleep for 200 millis, waiting for the job executor to process more jobs");
- Thread.sleep(200);
- jobsAvailable = areJobsAvailable();
- }
- jobExecutor.stopAndJoin();
-
- }
- catch (InterruptedException e)
- {
- fail("test execution exceeded treshold of " + maxWait + " milliseconds");
- }
- finally
- {
- timer.cancel();
- }
- }
-
- private int getNbrOfJobsAvailable()
- {
- int nbrOfJobsAvailable = 0;
- JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
- try
- {
- Session session = jbpmContext.getSession();
- Number jobs = (Number)session.createQuery("select count(*) from org.jbpm.job.Job").uniqueResult();
- log.debug("there are '" + jobs + "' jobs currently in the job table");
- if (jobs != null)
- {
- nbrOfJobsAvailable = jobs.intValue();
- }
- }
- finally
- {
- jbpmContext.close();
- }
- return nbrOfJobsAvailable;
- }
-
- protected boolean areJobsAvailable()
- {
- return (getNbrOfJobsAvailable() > 0);
- }
-
- protected void processJobs(long maxWait)
- {
- try
- {
- Thread.sleep(300);
- }
- catch (InterruptedException e)
- {
- // ignore
- }
- startJobExecutor();
- try
- {
- processAllJobs(maxWait);
- }
- catch (Exception e)
- {
- throw new RuntimeException(e);
- }
- finally
- {
- stopJobExecutor();
- }
- }
-
- protected void stopJobExecutor()
- {
- if (jobExecutor != null)
- {
- try
- {
- jobExecutor.stopAndJoin();
- }
- catch (InterruptedException e)
- {
- throw new RuntimeException("waiting for job executor to stop and join got interrupted", e);
- }
- }
- }
-
- public static class AutomaticActivity implements ActionHandler
- {
private static final long serialVersionUID = 1L;
- public void execute(ExecutionContext executionContext) throws Exception
- {
+ public void execute(ExecutionContext executionContext) throws Exception {
Long id = executionContext.getProcessInstance().getId();
String procIndex = getProcessIndex(id);
-
+
String nodeName = executionContext.getNode().getName();
collectedResults.add(procIndex + nodeName);
executionContext.leaveNode();
}
}
- public static class AsyncAction implements ActionHandler
- {
+ public static class AsyncAction implements ActionHandler {
+
private static final long serialVersionUID = 1L;
- public void execute(ExecutionContext executionContext) throws Exception
- {
+ public void execute(ExecutionContext executionContext) throws Exception {
Long id = executionContext.getProcessInstance().getId();
String procIndex = getProcessIndex(id);
-
+
Action action = executionContext.getAction();
String actionName = action.getName();
collectedResults.add(procIndex + actionName);
}
}
-
- private static synchronized String getProcessIndex(Long id)
- {
+
+ static synchronized String getProcessIndex(Long id) {
if (allocatedProcessIds.contains(id) == false)
allocatedProcessIds.add(id);
-
+
int procIndex = allocatedProcessIds.indexOf(id);
String prefix = (procIndex < 10 ? "0" : "");
Modified: jbpm3/trunk/modules/core/src/test/java/org/jbpm/optimisticlocking/LockingTest.java
===================================================================
--- jbpm3/trunk/modules/core/src/test/java/org/jbpm/optimisticlocking/LockingTest.java 2008-10-28 01:24:17 UTC (rev 2632)
+++ jbpm3/trunk/modules/core/src/test/java/org/jbpm/optimisticlocking/LockingTest.java 2008-10-28 08:20:50 UTC (rev 2633)
@@ -3,6 +3,7 @@
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
+import java.util.concurrent.Semaphore;
import org.hibernate.Query;
import org.jbpm.JbpmConfiguration;
@@ -21,8 +22,8 @@
private long processDefinitionId;
- static int nbrOfThreads = 5;
- static int nbrOfIterations = 20;
+ static final int nbrOfThreads = 5;
+ static final int nbrOfIterations = 20;
protected void setUp() throws Exception {
super.setUp();
@@ -33,6 +34,7 @@
+ " <end-state name='end' />"
+ "</process-definition>");
jbpmContext.deployProcessDefinition(processDefinition);
+ newTransaction();
processDefinitionId = processDefinition.getId();
}
@@ -47,27 +49,28 @@
// the root token in the start state
// Transaction 2 will signal the process instance while it is in the
// start state, and that signal will bring the process to it's end state.
-
// multiple competing threads will be set up for the second transaction
+
+ ProcessDefinition processDefinition = graphSession.loadProcessDefinition(processDefinitionId);
for (int i = 0; i < nbrOfIterations; i++) {
- long processInstanceId = jbpmContext.newProcessInstanceForUpdate("lockprocess").getId();
- commitAndCloseSession();
+ ProcessInstance processInstance = new ProcessInstance(processDefinition);
+ jbpmContext.save(processInstance);
+ newTransaction();
+
// create a bunch of threads that will all wait on the
// semaphore before they will try to signal the same process instance
- Object semaphore = new Object();
+ long processInstanceId = processInstance.getId();
+ Semaphore semaphore = new Semaphore(0);
List threads = startThreads(semaphore, processInstanceId);
// release all the threads
- synchronized (semaphore) {
- semaphore.notifyAll();
- }
+ semaphore.release(nbrOfThreads);
// wait for all threads to finish
joinAllThreads(threads);
// check that only 1 of those threads committed
- beginSessionTransaction();
Query query = session.createQuery("from org.jbpm.graph.exe.Comment");
List results = query.list();
assertEquals(results.toString(), 1, results.size());
@@ -76,37 +79,43 @@
session.delete(results.get(0));
// check that the process instance has ended
- ProcessInstance processInstance = jbpmContext.loadProcessInstance(processInstanceId);
+ processInstance = jbpmContext.loadProcessInstance(processInstanceId);
assertTrue(processInstance.hasEnded());
}
}
- private List startThreads(Object semaphore, long processInstanceId) {
+ private List startThreads(Semaphore semaphore, long processInstanceId) {
+ JbpmConfiguration jbpmConfiguration = getJbpmConfiguration();
+
List threads = new ArrayList();
for (int i = 0; i < nbrOfThreads; i++) {
- Thread thread = new LockThread(getJbpmConfiguration(), semaphore, processInstanceId);
- thread.start();
+ Thread thread = new LockThread(jbpmConfiguration, semaphore, processInstanceId);
threads.add(thread);
+ thread.start();
}
+ return threads;
+ }
- try {
- // giving the threads the opportunity to start and arrive in the wait
- Thread.sleep(200);
+ private void joinAllThreads(List threads) {
+ Iterator iter = threads.iterator();
+ while (iter.hasNext()) {
+ Thread thread = (Thread) iter.next();
+ try {
+ thread.join(10000);
+ }
+ catch (InterruptedException e) {
+ fail("join interrupted");
+ }
}
- catch (InterruptedException e) {
- // ignore
- }
-
- return threads;
}
static class LockThread extends Thread {
- Object semaphore;
+ Semaphore semaphore;
long processInstanceId;
JbpmConfiguration jbpmConfiguration;
- public LockThread(JbpmConfiguration jbpmConfiguration, Object semaphore, long processInstanceId) {
+ public LockThread(JbpmConfiguration jbpmConfiguration, Semaphore semaphore, long processInstanceId) {
this.semaphore = semaphore;
this.processInstanceId = processInstanceId;
this.jbpmConfiguration = jbpmConfiguration;
@@ -116,9 +125,7 @@
try {
// first wait until the all threads are released at once in the
// method testLocking
- synchronized (semaphore) {
- semaphore.wait();
- }
+ semaphore.acquire();
// after a thread is released (=notified), it will try to load the
// process instance,
@@ -134,7 +141,7 @@
Comment comment = new Comment(getName() + " committed");
jbpmContext.getSession().save(comment);
}
- catch (Exception e) {
+ catch (RuntimeException e) {
jbpmContext.setRollbackOnly();
}
finally {
@@ -144,22 +151,9 @@
catch (InterruptedException e) {
fail("semaphore waiting got interrupted");
}
- catch (Throwable t) {
- // ignore
+ catch (RuntimeException e) {
+ // ignore other exceptions
}
}
}
-
- private void joinAllThreads(List threads) {
- Iterator iter = threads.iterator();
- while (iter.hasNext()) {
- Thread thread = (Thread) iter.next();
- try {
- thread.join();
- }
- catch (InterruptedException e) {
- fail("join interrupted");
- }
- }
- }
}
Modified: jbpm3/trunk/modules/core/src/test/java/org/jbpm/scheduler/exe/TimerDbTest.java
===================================================================
--- jbpm3/trunk/modules/core/src/test/java/org/jbpm/scheduler/exe/TimerDbTest.java 2008-10-28 01:24:17 UTC (rev 2632)
+++ jbpm3/trunk/modules/core/src/test/java/org/jbpm/scheduler/exe/TimerDbTest.java 2008-10-28 08:20:50 UTC (rev 2633)
@@ -60,6 +60,7 @@
session.save(timer);
try {
newTransaction();
+
timer = (Timer) session.load(Timer.class, new Long(timer.getId()));
assertEquals("timer-name", timer.getName());
@@ -104,19 +105,18 @@
graphSession.saveProcessDefinition(processDefinition);
try {
ProcessInstance processInstance = new ProcessInstance(processDefinition);
- jbpmContext.save(processInstance);
// long before = System.currentTimeMillis();
processInstance.signal();
// long after = System.currentTimeMillis();
jbpmContext.save(processInstance);
newTransaction();
+
Timer timer = (Timer) session.createQuery("from org.jbpm.job.Timer").uniqueResult();
assertNotNull("Timer is null", timer);
assertEquals("reminder", timer.getName());
// Commented out because of timer latency is changing between time
- // required
- // to connect to the database
+ // required to connect to the database
// assertTrue((before + 5000) <= timer.getDueDate().getTime());
// assertTrue(timer.getDueDate().getTime() <= (after + 5000));
assertEquals("catch crooks", timer.getGraphElement().getName());
@@ -147,6 +147,7 @@
processInstance.signal();
newTransaction();
+
assertEquals(0, getTimerCount());
}
finally {
@@ -174,8 +175,10 @@
graphSession.saveProcessDefinition(processDefinition);
try {
Node node = processDefinition.getNode("sometask");
+
List actions = node.getEvent(Event.EVENTTYPE_NODE_ENTER).getActions();
assertEquals(1, actions.size());
+
actions = node.getEvent(Event.EVENTTYPE_NODE_LEAVE).getActions();
assertEquals(1, actions.size());
@@ -184,6 +187,7 @@
jbpmContext.save(processInstance);
newTransaction();
+
assertEquals(1, getTimerCount());
}
finally {
@@ -210,6 +214,7 @@
processInstance.signal();
newTransaction();
+
assertEquals(1, getTimerCount());
}
finally {
@@ -224,7 +229,7 @@
+ " </start-state>"
+ " <state name='s'>"
+ " <event type='node-enter'>"
- + " <create-timer duedate='26 business seconds'>"
+ + " <create-timer duedate='52 seconds'>"
+ " <action class='claim.you.are.Innocent' />"
+ " </create-timer>"
+ " </event>"
@@ -241,7 +246,7 @@
assertEquals(1, getTimerCount());
processInstance.signal();
- processJobs(5000, 0);
+ processJobs(30 * 1000, 1);
assertEquals(0, getTimerCount());
}
finally {
@@ -310,6 +315,7 @@
jbpmContext.save(processInstance);
newTransaction();
+
Timer timer = (Timer) jobSession.getFirstAcquirableJob(null);
assertNotNull(timer);
Date date = timer.getDueDate();
@@ -318,7 +324,7 @@
// assertTrue(date.getTime() <= after);
long origDueDate = date.getTime();
- processJobs(2000, 1);
+ processJobs(2500, 1);
timer = (Timer) session.createQuery("from org.jbpm.job.Timer")
.setMaxResults(1)
@@ -329,10 +335,10 @@
// before = System.currentTimeMillis();
processInstance.signal("back");
// after = System.currentTimeMillis();
-
jbpmContext.save(processInstance);
newTransaction();
+
timer = (Timer) jobSession.getFirstAcquirableJob(null);
assertNotNull(timer);
date = timer.getDueDate();
@@ -341,11 +347,13 @@
// assertTrue(date.getTime() <= after);
newTransaction();
+
processInstance = jbpmContext.loadProcessInstance(processInstance.getId());
processInstance.signal();
jbpmContext.save(processInstance);
newTransaction();
+
assertEquals(0, getTimerCount());
}
finally {
@@ -383,11 +391,10 @@
processInstance.signal();
jbpmContext.save(processInstance);
- processJobs(2000, 1);
+ processJobs(2500, 1);
processInstance = jbpmContext.loadProcessInstance(processInstance.getId());
contextInstance = processInstance.getContextInstance();
-
assertEquals("value a", contextInstance.getVariable("a"));
assertEquals("value b updated", contextInstance.getVariable("b"));
@@ -401,7 +408,6 @@
finally {
jbpmContext.getGraphSession().deleteProcessDefinition(processDefinition.getId());
}
-
}
public static class ConcurrentUpdateAction implements ActionHandler {
Modified: jbpm3/trunk/modules/core/src/test/java/org/jbpm/taskmgmt/exe/TaskTimerExecutionDbTest.java
===================================================================
--- jbpm3/trunk/modules/core/src/test/java/org/jbpm/taskmgmt/exe/TaskTimerExecutionDbTest.java 2008-10-28 01:24:17 UTC (rev 2632)
+++ jbpm3/trunk/modules/core/src/test/java/org/jbpm/taskmgmt/exe/TaskTimerExecutionDbTest.java 2008-10-28 08:20:50 UTC (rev 2633)
@@ -79,7 +79,6 @@
{
jbpmContext.getGraphSession().deleteProcessDefinition(processDefinition.getId());
}
-
}
public void testTimerDeletion() {
@@ -105,19 +104,19 @@
{
ProcessInstance processInstance = new ProcessInstance(processDefinition);
processInstance.signal();
-
jbpmContext.save(processInstance);
+
newTransaction();
-
+
List taskInstances = taskMgmtSession.findTaskInstancesByToken(processInstance.getRootToken().getId());
- assertEquals(1, taskInstances.size() );
-
+ assertEquals(1, taskInstances.size());
+
TaskInstance taskInstance = (TaskInstance) taskInstances.get(0);
taskInstance.end();
-
- jbpmContext.save(taskInstance.getTaskMgmtInstance().getProcessInstance());
+ jbpmContext.save(taskInstance);
+
newTransaction();
-
+
assertEquals(0, getTimerCount());
}
finally
@@ -147,11 +146,10 @@
{
ProcessInstance processInstance = new ProcessInstance(processDefinition);
processInstance.signal();
-
jbpmContext.save(processInstance);
processJobs(5000);
-
+
assertEquals(1, counter);
}
finally
@@ -181,13 +179,10 @@
{
ProcessInstance processInstance = new ProcessInstance(processDefinition);
processInstance.signal();
-
jbpmContext.save(processInstance);
newTransaction();
- // the timer executor creates its own JbpmSession.
- assertEquals(0, counter);
processJobs(5000);
assertEquals(1, counter);
}
@@ -195,7 +190,6 @@
{
jbpmContext.getGraphSession().deleteProcessDefinition(processDefinition.getId());
}
-
}
public void testTimerExecutionRepeat() {
@@ -219,17 +213,15 @@
{
ProcessInstance processInstance = new ProcessInstance(processDefinition);
processInstance.signal();
-
jbpmContext.save(processInstance);
+
newTransaction();
-
+
// fetch the original duedate
Timer timer = (Timer) getJob();
assertNotNull(timer);
long originalDueDate = timer.getDueDate().getTime();
-
- assertEquals(0, counter);
processJobs(5000, 1);
assertEquals(1, counter);
@@ -264,16 +256,15 @@
processDefinition = saveAndReload(processDefinition);
try
{
- ProcessInstance processInstance = new ProcessInstance(processDefinition);
-
Calendar baseDate = Calendar.getInstance();
Date dateTestDate = new Date();
baseDate.setTime(dateTestDate);
baseDate.clear(Calendar.MILLISECOND);
- processInstance.getContextInstance().setVariable("baseDate", baseDate.getTime());
+ ProcessInstance processInstance = new ProcessInstance(processDefinition);
+ processInstance.getContextInstance().setVariable("baseDate", baseDate.getTime());
processInstance.signal();
-
+
processInstance = saveAndReload(processInstance);
Calendar baseDateTest = Calendar.getInstance();
@@ -284,8 +275,8 @@
Timer timer = (Timer) getJob();
assertEquals("ceiling-timer", timer.getName());
- assertEquals(baseDateTest.getTime().getTime(), timer.getDueDate().getTime());
assertNotNull(timer.getDueDate());
+ assertEquals(baseDateTest.getTime(), timer.getDueDate());
}
finally
{
15 years, 7 months
JBoss JBPM SVN: r2632 - in jbpm3/trunk/modules/core: src/test/java/org and 1 other directories.
by do-not-reply@jboss.org
Author: alex.guizar(a)jboss.com
Date: 2008-10-27 21:24:17 -0400 (Mon, 27 Oct 2008)
New Revision: 2632
Removed:
jbpm3/trunk/modules/core/src/test/java/org/jboss/
jbpm3/trunk/modules/core/src/test/java/org/jbpm/seam/
Modified:
jbpm3/trunk/modules/core/pom.xml
Log:
[JBPM-1724] removed remaining seam bits
Modified: jbpm3/trunk/modules/core/pom.xml
===================================================================
--- jbpm3/trunk/modules/core/pom.xml 2008-10-27 17:25:05 UTC (rev 2631)
+++ jbpm3/trunk/modules/core/pom.xml 2008-10-28 01:24:17 UTC (rev 2632)
@@ -34,7 +34,6 @@
<!-- Dependencies -->
<dependencies>
<!-- jBPM Dependencies -->
-
<dependency>
<groupId>bsh</groupId>
<artifactId>bsh</artifactId>
@@ -48,8 +47,8 @@
<artifactId>dom4j</artifactId>
<exclusions>
<exclusion>
- <artifactId>xml-apis</artifactId>
- <groupId>xml-apis</groupId>
+ <artifactId>xml-apis</artifactId>
+ <groupId>xml-apis</groupId>
</exclusion>
</exclusions>
</dependency>
@@ -80,8 +79,10 @@
<groupId>org.apache.jackrabbit</groupId>
<artifactId>jackrabbit-core</artifactId>
<exclusions>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </exclusion>
</exclusions>
</dependency>
<dependency>
@@ -127,6 +128,7 @@
<filtering>true</filtering>
</resource>
</resources>
+
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
@@ -146,12 +148,14 @@
</execution>
</executions>
</plugin>
+
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<showDeprecation>false</showDeprecation>
</configuration>
</plugin>
+
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
@@ -162,6 +166,7 @@
</excludes>
</configuration>
</plugin>
+
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
@@ -179,6 +184,7 @@
</execution>
</executions>
</plugin>
+
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
@@ -256,8 +262,6 @@
<!-- https://jira.jboss.org/jira/browse/JBPM-1723 -->
<exclude>org/jbpm/perf/PerfWithoutDbTest.java</exclude>
<exclude>org/jbpm/perf/StateUpdateTest.java</exclude>
- <!-- https://jira.jboss.org/jira/browse/JBPM-1724 -->
- <exclude>org/jbpm/seam/SeamPageFlowTest.java</exclude>
<!-- https://jira.jboss.org/jira/browse/JBPM-1709 -->
<exclude>org/jbpm/scheduler/exe/TimerDbTest.java</exclude>
<exclude>org/jbpm/taskmgmt/exe/TaskTimerExecutionDbTest.java</exclude>
@@ -292,8 +296,6 @@
<!-- https://jira.jboss.org/jira/browse/JBPM-1723 -->
<exclude>org/jbpm/perf/PerfWithoutDbTest.java</exclude>
<exclude>org/jbpm/perf/StateUpdateTest.java</exclude>
- <!-- https://jira.jboss.org/jira/browse/JBPM-1724 -->
- <exclude>org/jbpm/seam/SeamPageFlowTest.java</exclude>
<!-- https://jira.jboss.org/jira/browse/JBPM-1735 -->
<exclude>org/jbpm/graph/node/ProcessStateDbTest.java</exclude>
<!-- https://jira.jboss.org/jira/browse/JBPM-1709 -->
@@ -330,8 +332,6 @@
<!-- https://jira.jboss.org/jira/browse/JBPM-1723 -->
<exclude>org/jbpm/perf/PerfWithoutDbTest.java</exclude>
<exclude>org/jbpm/perf/StateUpdateTest.java</exclude>
- <!-- https://jira.jboss.org/jira/browse/JBPM-1724 -->
- <exclude>org/jbpm/seam/SeamPageFlowTest.java</exclude>
<!-- https://jira.jboss.org/jira/browse/JBPM-1772 -->
<exclude>org/jbpm/jpdl/exe/JoinDbTest.java</exclude>
<exclude>org/jbpm/graph/exe/SubProcessPlusConcurrencyDbTest.java</exclude>
@@ -371,8 +371,6 @@
<!-- https://jira.jboss.org/jira/browse/JBPM-1723 -->
<exclude>org/jbpm/perf/PerfWithoutDbTest.java</exclude>
<exclude>org/jbpm/perf/StateUpdateTest.java</exclude>
- <!-- https://jira.jboss.org/jira/browse/JBPM-1724 -->
- <exclude>org/jbpm/seam/SeamPageFlowTest.java</exclude>
<!-- https://jira.jboss.org/jira/browse/JBPM-1764 -->
<exclude>org/jbpm/job/executor/JobExecutorDbTest</exclude>
<!-- https://jira.jboss.org/jira/browse/JBPM-1709 -->
15 years, 7 months
JBoss JBPM SVN: r2631 - in projects/gwt-console/trunk/war/src: main/java/org/jboss/bpm/console/client and 7 other directories.
by do-not-reply@jboss.org
Author: heiko.braun(a)jboss.com
Date: 2008-10-27 13:25:05 -0400 (Mon, 27 Oct 2008)
New Revision: 2631
Added:
projects/gwt-console/trunk/war/src/test/resources/org/
projects/gwt-console/trunk/war/src/test/resources/org/jboss/
projects/gwt-console/trunk/war/src/test/resources/org/jboss/bpm/
projects/gwt-console/trunk/war/src/test/resources/org/jboss/bpm/console/
projects/gwt-console/trunk/war/src/test/resources/org/jboss/bpm/console/client/
projects/gwt-console/trunk/war/src/test/resources/org/jboss/bpm/console/client/SampleProcess.par
Modified:
projects/gwt-console/trunk/war/src/main/java/jmaki/xhp/HttpClient.java
projects/gwt-console/trunk/war/src/main/java/jmaki/xhp/XmlHttpProxyServlet.java
projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/ConsoleView.java
projects/gwt-console/trunk/war/src/test/java/org/jboss/bpm/console/client/GwtTestApplication.java
Log:
Improve logging XmlHttpProxy. Fix stderr redirect which causes GwtTest to interpret log output as failure
Modified: projects/gwt-console/trunk/war/src/main/java/jmaki/xhp/HttpClient.java
===================================================================
--- projects/gwt-console/trunk/war/src/main/java/jmaki/xhp/HttpClient.java 2008-10-27 16:18:55 UTC (rev 2630)
+++ projects/gwt-console/trunk/war/src/main/java/jmaki/xhp/HttpClient.java 2008-10-27 17:25:05 UTC (rev 2631)
@@ -19,238 +19,246 @@
*/
public class HttpClient {
- private static Logger logger;
- private String proxyHost = null;
- private int proxyPort = -1;
- private boolean isHttps = false;
- private boolean isProxy = false;
- private HttpURLConnection urlConnection = null;
- private Map headers;
+ private static Logger logger;
+ private String proxyHost = null;
+ private int proxyPort = -1;
+ private boolean isHttps = false;
+ private boolean isProxy = false;
+ private HttpURLConnection urlConnection = null;
+ private Map headers;
- /**
- * @param phost PROXY host name
- * @param pport PROXY port string
- * @param url URL string
- * @param headers Map
- */
- public HttpClient(
- String phost,
- int pport,
- String url,
- Map headers,
- String method)
- throws MalformedURLException
- {
- if (phost != null && pport != -1)
- {
+ /**
+ * @param phost PROXY host name
+ * @param pport PROXY port string
+ * @param url URL string
+ * @param headers Map
+ */
+ public HttpClient(
+ String phost,
+ int pport,
+ String url,
+ Map headers,
+ String method)
+ throws MalformedURLException
+ {
+ if (phost != null && pport != -1)
+ {
+ this.isProxy = true;
+ }
+
+ this.proxyHost = phost;
+ this.proxyPort = pport;
+
+ if (url.trim().startsWith("https:")) {
+ isHttps = true;
+ }
+
+ this.urlConnection = getURLConnection(url);
+ try {
+ this.urlConnection.setRequestMethod(method);
+ } catch (java.net.ProtocolException pe) {
+ HttpClient.getLogger().severe("Unable protocol method to " + method + " : " + pe);
+ }
+ this.headers = headers;
+ // seat headers
+ if (headers != null) {
+ Iterator it = headers.keySet().iterator();
+ if (it != null) {
+ while (it.hasNext()) {
+ String key = (String)it.next();
+ String value = (String)headers.get(key);
+ this.urlConnection.setRequestProperty (key, value);
+ }
+ }
+ }
+ }
+
+ /**
+ * @param phost PROXY host name
+ * @param pport PROXY port string
+ * @param url URL string
+ * @param headers Map
+ * @param userName string
+ * @param password string
+ */
+ public HttpClient(String phost,
+ int pport,
+ String url,
+ Map headers,
+ String method,
+ String userName,
+ String password)
+ throws MalformedURLException {
+ try
+ {
+ if (phost != null && pport != -1) {
this.isProxy = true;
- }
+ }
- this.proxyHost = phost;
- this.proxyPort = pport;
-
- if (url.trim().startsWith("https:")) {
+ this.proxyHost = phost;
+ this.proxyPort = pport;
+ if (url.trim().startsWith("https:")) {
isHttps = true;
- }
-
- this.urlConnection = getURLConnection(url);
- try {
+ }
+ this.urlConnection = getURLConnection(url);
+ try {
this.urlConnection.setRequestMethod(method);
- } catch (java.net.ProtocolException pe) {
+ } catch (java.net.ProtocolException pe) {
HttpClient.getLogger().severe("Unable protocol method to " + method + " : " + pe);
- }
- this.headers = headers;
- // seat headers
- if (headers != null) {
- Iterator it = headers.keySet().iterator();
+ }
+ // set basic authentication information
+ String auth = userName + ":" + password;
+ String encoded = new sun.misc.BASE64Encoder().encode (auth.getBytes());
+ // set basic authorization
+ this.urlConnection.setRequestProperty ("Authorization", "Basic " + encoded);
+ this.headers = headers;
+ // seat headers
+ if (headers != null) {
+ Iterator it = headers.entrySet().iterator();
if (it != null) {
- while (it.hasNext()) {
- String key = (String)it.next();
- String value = (String)headers.get(key);
- this.urlConnection.setRequestProperty (key, value);
- }
+ while (it.hasNext()) {
+ String key = (String)it.next();
+ String value = (String)headers.get(key);
+ this.urlConnection.setRequestProperty (key, value);
+ }
}
- }
- }
+ }
+ } catch (Exception ex) {
+ HttpClient.getLogger().severe("Unable to set basic authorization for " + userName + " : " +ex);
+ }
+ }
- /**
- * @param phost PROXY host name
- * @param pport PROXY port string
- * @param url URL string
- * @param headers Map
- * @param userName string
- * @param password string
- */
- public HttpClient(String phost,
- int pport,
- String url,
- Map headers,
- String method,
- String userName,
- String password)
- throws MalformedURLException {
- try
- {
- if (phost != null && pport != -1) {
- this.isProxy = true;
- }
+ /**
+ * private method to get the URLConnection
+ * @param str URL string
+ */
+ private HttpURLConnection getURLConnection(String str)
+ throws MalformedURLException {
+ try {
- this.proxyHost = phost;
- this.proxyPort = pport;
- if (url.trim().startsWith("https:")) {
- isHttps = true;
+ if (isHttps) {
+ /* when communicating with the server which has unsigned or invalid
+ * certificate (https), SSLException or IOException is thrown.
+ * the following line is a hack to avoid that
+ */
+ Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
+ System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
+ if (isProxy) {
+ System.setProperty("https.proxyHost", proxyHost);
+ System.setProperty("https.proxyPort", proxyPort + "");
}
- this.urlConnection = getURLConnection(url);
- try {
- this.urlConnection.setRequestMethod(method);
- } catch (java.net.ProtocolException pe) {
- HttpClient.getLogger().severe("Unable protocol method to " + method + " : " + pe);
- }
- // set basic authentication information
- String auth = userName + ":" + password;
- String encoded = new sun.misc.BASE64Encoder().encode (auth.getBytes());
- // set basic authorization
- this.urlConnection.setRequestProperty ("Authorization", "Basic " + encoded);
- this.headers = headers;
- // seat headers
- if (headers != null) {
- Iterator it = headers.entrySet().iterator();
- if (it != null) {
- while (it.hasNext()) {
- String key = (String)it.next();
- String value = (String)headers.get(key);
- this.urlConnection.setRequestProperty (key, value);
- }
- }
- }
- } catch (Exception ex) {
- HttpClient.getLogger().severe("Unable to set basic authorization for " + userName + " : " +ex);
- }
- }
-
- /**
- * private method to get the URLConnection
- * @param str URL string
- */
- private HttpURLConnection getURLConnection(String str)
- throws MalformedURLException {
- try {
-
- if (isHttps) {
- /* when communicating with the server which has unsigned or invalid
- * certificate (https), SSLException or IOException is thrown.
- * the following line is a hack to avoid that
- */
- Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
- System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
- if (isProxy) {
- System.setProperty("https.proxyHost", proxyHost);
- System.setProperty("https.proxyPort", proxyPort + "");
- }
- }
- else
+ }
+ else
+ {
+ if (isProxy)
{
- if (isProxy)
- {
- System.setProperty("http.proxyHost", proxyHost);
- System.setProperty("http.proxyPort", proxyPort + "");
- }
+ System.setProperty("http.proxyHost", proxyHost);
+ System.setProperty("http.proxyPort", proxyPort + "");
}
+ }
- URL url = new URL(str);
- HttpURLConnection uc = (HttpURLConnection)url.openConnection();
- // if this header has not been set by a request set the user agent.
- if (headers == null ||
- (headers != null && headers.get("user-agent") == null)) {
- // set user agent to mimic a common browser
- String ua="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)";
- uc.setRequestProperty("user-agent", ua);
- }
- return uc;
- }
- catch (MalformedURLException me)
- {
- throw new MalformedURLException(str + " is not a valid URL");
- }
- catch (Exception e)
- {
- throw new RuntimeException("Unknown error creating UrlConnection: " + e);
- }
- }
+ URL url = new URL(str);
+ HttpURLConnection uc = (HttpURLConnection)url.openConnection();
+ // if this header has not been set by a request set the user agent.
+ if (headers == null ||
+ (headers != null && headers.get("user-agent") == null)) {
+ // set user agent to mimic a common browser
+ String ua="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)";
+ uc.setRequestProperty("user-agent", ua);
+ }
+ return uc;
+ }
+ catch (MalformedURLException me)
+ {
+ throw new MalformedURLException(str + " is not a valid URL");
+ }
+ catch (Exception e)
+ {
+ throw new RuntimeException("Unknown error creating UrlConnection: " + e);
+ }
+ }
- /**
- * returns the inputstream from URLConnection
- * @return InputStream
- */
- public InputStream getInputStream() {
- try {
- return (this.urlConnection.getInputStream());
- } catch (Exception e) {
- e.printStackTrace();
- return null;
- }
- }
+ /**
+ * returns the inputstream from URLConnection
+ * @return InputStream
+ */
+ public InputStream getInputStream() {
+ try
+ {
+ // logger doesnt work, because it writes to stderr,
+ // which causes GwtTest to interpret it as failure
+ System.out.println(
+ this.urlConnection.getRequestMethod()+ " " +
+ this.urlConnection.getURL() +": "+
+ this.urlConnection.getResponseCode()
+ );
+ return (this.urlConnection.getInputStream());
+ } catch (Exception e) {
+ e.printStackTrace();
+ return null;
+ }
+ }
- /**
- * return the OutputStream from URLConnection
- * @return OutputStream
- */
- public OutputStream getOutputStream() {
+ /**
+ * return the OutputStream from URLConnection
+ * @return OutputStream
+ */
+ public OutputStream getOutputStream() {
- try {
- return (this.urlConnection.getOutputStream());
- } catch (Exception e) {
- e.printStackTrace();
- return null;
- }
- }
+ try {
+ return (this.urlConnection.getOutputStream());
+ } catch (Exception e) {
+ e.printStackTrace();
+ return null;
+ }
+ }
- /**
- * posts data to the inputstream and returns the InputStream.
- * @param postData data to be posted. must be url-encoded already.
- * @param contentType allows you to set the contentType of the request.
- * @return InputStream input stream from URLConnection
- */
- public InputStream doPost(String postData, String contentType) {
- this.urlConnection.setDoOutput(true);
- if (contentType != null) this.urlConnection.setRequestProperty( "Content-type", contentType );
+ /**
+ * posts data to the inputstream and returns the InputStream.
+ * @param postData data to be posted. must be url-encoded already.
+ * @param contentType allows you to set the contentType of the request.
+ * @return InputStream input stream from URLConnection
+ */
+ public InputStream doPost(String postData, String contentType) {
+ this.urlConnection.setDoOutput(true);
+ if (contentType != null) this.urlConnection.setRequestProperty( "Content-type", contentType );
- OutputStream os = this.getOutputStream();
- PrintStream ps = new PrintStream(os);
- ps.print(postData);
- ps.close();
- return (this.getInputStream());
- }
+ OutputStream os = this.getOutputStream();
+ PrintStream ps = new PrintStream(os);
+ ps.print(postData);
+ ps.close();
+ return (this.getInputStream());
+ }
- public String getContentEncoding() {
- if (this.urlConnection == null) return null;
- return (this.urlConnection.getContentEncoding());
- }
- public int getContentLength() {
- if (this.urlConnection == null) return -1;
- return (this.urlConnection.getContentLength());
- }
- public String getContentType() {
- if (this.urlConnection == null) return null;
- return (this.urlConnection.getContentType());
- }
- public long getDate() {
- if (this.urlConnection == null) return -1;
- return (this.urlConnection.getDate());
- }
- public String getHeader(String name) {
- if (this.urlConnection == null) return null;
- return (this.urlConnection.getHeaderField(name));
- }
- public long getIfModifiedSince() {
- if (this.urlConnection == null) return -1;
- return (this.urlConnection.getIfModifiedSince());
- }
+ public String getContentEncoding() {
+ if (this.urlConnection == null) return null;
+ return (this.urlConnection.getContentEncoding());
+ }
+ public int getContentLength() {
+ if (this.urlConnection == null) return -1;
+ return (this.urlConnection.getContentLength());
+ }
+ public String getContentType() {
+ if (this.urlConnection == null) return null;
+ return (this.urlConnection.getContentType());
+ }
+ public long getDate() {
+ if (this.urlConnection == null) return -1;
+ return (this.urlConnection.getDate());
+ }
+ public String getHeader(String name) {
+ if (this.urlConnection == null) return null;
+ return (this.urlConnection.getHeaderField(name));
+ }
+ public long getIfModifiedSince() {
+ if (this.urlConnection == null) return -1;
+ return (this.urlConnection.getIfModifiedSince());
+ }
- public static Logger getLogger() {
- if (logger == null) {
- logger = Logger.getLogger("jmaki.xhp.Log");
- }
- return logger;
- }
+ public static Logger getLogger() {
+ if (logger == null) {
+ logger = Logger.getLogger("jmaki.xhp.Log");
+ }
+ return logger;
+ }
}
\ No newline at end of file
Modified: projects/gwt-console/trunk/war/src/main/java/jmaki/xhp/XmlHttpProxyServlet.java
===================================================================
--- projects/gwt-console/trunk/war/src/main/java/jmaki/xhp/XmlHttpProxyServlet.java 2008-10-27 16:18:55 UTC (rev 2630)
+++ projects/gwt-console/trunk/war/src/main/java/jmaki/xhp/XmlHttpProxyServlet.java 2008-10-27 17:25:05 UTC (rev 2631)
@@ -161,7 +161,7 @@
OutputStream out = null;
PrintWriter writer = null;
String serviceKey = null;
- /*try {
+ try {
BufferedReader in = req.getReader();
String line = null;
while ((line = in.readLine()) != null) {
@@ -169,7 +169,7 @@
bodyContent.append(line);
}
} catch (Exception e) {
- } */
+ }
try
{
@@ -340,8 +340,6 @@
}
}
- getLogger().info("XmlHttpProxy target url: " + urlString);
-
if (!isPost)
{
xhp.processRequest(urlString, out, xslInputStream, paramsMap, headers, method, userName, password);
Modified: projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/ConsoleView.java
===================================================================
--- projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/ConsoleView.java 2008-10-27 16:18:55 UTC (rev 2630)
+++ projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/ConsoleView.java 2008-10-27 17:25:05 UTC (rev 2631)
@@ -237,4 +237,5 @@
{
return rolesAssigned;
}
+
}
Modified: projects/gwt-console/trunk/war/src/test/java/org/jboss/bpm/console/client/GwtTestApplication.java
===================================================================
--- projects/gwt-console/trunk/war/src/test/java/org/jboss/bpm/console/client/GwtTestApplication.java 2008-10-27 16:18:55 UTC (rev 2630)
+++ projects/gwt-console/trunk/war/src/test/java/org/jboss/bpm/console/client/GwtTestApplication.java 2008-10-27 17:25:05 UTC (rev 2631)
@@ -21,10 +21,13 @@
*/
package org.jboss.bpm.console.client;
+import com.google.gwt.http.client.Request;
+import com.google.gwt.http.client.Response;
import com.google.gwt.junit.client.GWTTestCase;
import com.google.gwt.user.client.Timer;
-import com.google.gwt.http.client.Request;
-import com.google.gwt.http.client.Response;
+import com.gwtext.client.widgets.ComponentMgr;
+import org.jboss.bpm.console.client.process.ProcessDefinitionList;
+import org.jboss.bpm.console.client.process.ProcessDefinitionListEditor;
/**
* @author Heiko.Braun <heiko.braun(a)jboss.com>
@@ -32,68 +35,116 @@
public class GwtTestApplication extends GWTTestCase
{
- private static Application application = null;
+ private static Application application = null;
- public String getModuleName()
- {
- return "org.jboss.bpm.console.Application";
- }
+ public String getModuleName()
+ {
+ return "org.jboss.bpm.console.Application";
+ }
- protected void gwtSetUp() throws Exception
- {
- super.gwtSetUp();
- if(null==application)
- {
- application = new Application();
- application.onModuleLoad();
- }
+ protected void gwtSetUp() throws Exception
+ {
+ super.gwtSetUp();
+ if(null==application)
+ {
+ application = new Application();
+ application.onModuleLoad();
+ }
- }
+ }
- public void testAuthentication()
- {
- final ConsoleView view = application.getConsoleView();
- assertNotNull("View not initialized", view);
+ public void testAuthentication()
+ {
+ final ConsoleView view = application.getConsoleView();
+ assertNotNull("View not initialized", view);
- DeferredExecution authTestPiece = new DeferredExecution()
- {
- public void execute() {
+ Timer timer = new Timer()
+ {
+ public void run()
+ {
- String inRoleURL = view.getUrlBuilder().getUserInRoleURL(ConsoleView.KNOWN_ROLES);
- final Authentication auth = new Authentication(inRoleURL);
- auth.setCallback(
- new Authentication.AuthCallback() {
+ String inRoleURL = view.getUrlBuilder().getUserInRoleURL(ConsoleView.KNOWN_ROLES);
+ final Authentication auth = new Authentication(inRoleURL);
+ auth.setCallback(
+ new Authentication.AuthCallback() {
- public void onLoginSuccess(Request request, Response response) {
- System.out.println("Assigned roles: " + auth.getRolesAssigned() );
- }
+ public void onLoginSuccess(Request request, Response response) {
+ System.out.println("Assigned roles: " + auth.getRolesAssigned() );
+ }
- public void onLoginFailed(Request request, Throwable t) {
+ public void onLoginFailed(Request request, Throwable t) {
- throw new RuntimeException("Login failed", t);
- }
- }
- );
- auth.doLogin();
- }
- };
+ throw new RuntimeException("Login failed", t);
+ }
+ }
+ );
+ auth.doLogin();
+ finishTest();
+ }
- deferredExec(authTestPiece);
- }
- private void deferredExec(final DeferredExecution testPiece) {
- Timer timer = new Timer()
- {
- public void run()
- {
+ };
- testPiece.execute();
- finishTest();
- }
- };
+ timer.schedule(300);
+ delayTestFinish(500);
+ }
- timer.schedule(300);
- delayTestFinish(500);
- }
+ public void testProcessDefList()
+ {
+ final ConsoleView view = application.getConsoleView();
+ assertNotNull("View not initialized", view);
+
+
+
+ Timer pdlTimer = new Timer(){
+
+ public void run()
+ {
+ System.out.println("Verify process definition list");
+ ProcessDefinitionListEditor editor = (ProcessDefinitionListEditor)
+ ComponentMgr.getComponent(ProcessDefinitionListEditor.ID);
+
+ ProcessDefinitionList list = editor.getProcessDefinitionList();
+
+ System.out.println("Got " + list.getAvailableProcessDefinitions().size() + " definitions");
+ assertFalse("No process definitions loaded",
+ list.getAvailableProcessDefinitions().isEmpty()
+ );
+
+ finishTest();
+ }
+ };
+
+ Timer pdlLoadTimer = new Timer(){
+
+ public void run()
+ {
+ System.out.println("Fetch process definitions");
+ ProcessDefinitionListEditor editor = (ProcessDefinitionListEditor)
+ ComponentMgr.getComponent(ProcessDefinitionListEditor.ID);
+
+ ProcessDefinitionList list = editor.getProcessDefinitionList();
+ list.reloadStore();
+ }
+ };
+
+ Timer authTimer = new Timer()
+ {
+ public void run()
+ {
+ System.out.println("Do authentication");
+ String inRoleURL = view.getUrlBuilder().getUserInRoleURL(ConsoleView.KNOWN_ROLES);
+ final Authentication auth = new Authentication(inRoleURL);
+ auth.doLogin();
+
+ }
+ };
+
+ authTimer.schedule(200);
+ pdlLoadTimer.schedule(400);
+ pdlTimer.schedule(600);
+
+ delayTestFinish(800);
+ }
}
Added: projects/gwt-console/trunk/war/src/test/resources/org/jboss/bpm/console/client/SampleProcess.par
===================================================================
(Binary files differ)
Property changes on: projects/gwt-console/trunk/war/src/test/resources/org/jboss/bpm/console/client/SampleProcess.par
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 7 months