Author: thomas.diesler(a)jboss.com
Date: 2008-09-29 06:52:58 -0400 (Mon, 29 Sep 2008)
New Revision: 2433
Added:
jbpm3/trunk/modules/examples/src/test/resources/hibernate.extra.hbm.xml
jbpm3/trunk/modules/examples/src/test/resources/taskinstance/gpd.xml
jbpm3/trunk/modules/examples/src/test/resources/taskinstance/jbpm.cfg.xml
jbpm3/trunk/modules/examples/src/test/resources/taskinstance/processdefinition.xml
jbpm3/trunk/modules/examples/src/test/resources/taskinstance/processimage.jpg
Removed:
jbpm3/trunk/modules/examples/src/test/resources/taskinstance/CustomTaskInstance.hbm.xml
Modified:
jbpm3/trunk/modules/examples/pom.xml
jbpm3/trunk/modules/examples/src/test/java/org/jbpm/examples/taskinstance/CustomTaskControllerHandler.java
jbpm3/trunk/modules/examples/src/test/java/org/jbpm/examples/taskinstance/CustomTaskInstanceTest.java
Log:
[JBPM-1749] Fix examples/taskinstance
Modified: jbpm3/trunk/modules/examples/pom.xml
===================================================================
--- jbpm3/trunk/modules/examples/pom.xml 2008-09-29 10:23:49 UTC (rev 2432)
+++ jbpm3/trunk/modules/examples/pom.xml 2008-09-29 10:52:58 UTC (rev 2433)
@@ -103,8 +103,6 @@
<configuration>
<!-- [JBPM-1290] Integrate example tests in automated testrun -->
<excludes>
- <exclude>org/jbpm/examples/rulesAction/**</exclude>
- <exclude>org/jbpm/examples/taskinstance/**</exclude>
<exclude>org/jbpm/examples/taskmgmt/**</exclude>
<exclude>org/jbpm/examples/websale/**</exclude>
</excludes>
Modified:
jbpm3/trunk/modules/examples/src/test/java/org/jbpm/examples/taskinstance/CustomTaskControllerHandler.java
===================================================================
---
jbpm3/trunk/modules/examples/src/test/java/org/jbpm/examples/taskinstance/CustomTaskControllerHandler.java 2008-09-29
10:23:49 UTC (rev 2432)
+++
jbpm3/trunk/modules/examples/src/test/java/org/jbpm/examples/taskinstance/CustomTaskControllerHandler.java 2008-09-29
10:52:58 UTC (rev 2433)
@@ -28,63 +28,53 @@
import org.jbpm.taskmgmt.def.TaskControllerHandler;
import org.jbpm.taskmgmt.exe.TaskInstance;
-public class CustomTaskControllerHandler implements TaskControllerHandler {
+public class CustomTaskControllerHandler implements TaskControllerHandler
+{
- /**
- * extracts all information from the process context (optionally indirect)
- * and initializes the task instance variables.
- * <p>
- * Use {@link TaskInstance#setVariable(String, Object)} to set variables in
- * the task instance and use
- * {@link ContextInstance#getVariable(String, Token)} to get access to the
- * process variables.
- * </p>
- * <p>
- * The task instance variable can be
- * <ul>
- * <li>A copy of process variable value</li>
- * <li>A reference to a process variable</li>
- * <li>Any object that can be persisted as a variable. This is usefull in
- * case a {@link TaskInstance} variable is a function of other process
- * instance variables. </li>
- * </ul>
- * </p>
- * <p>
- * In order to create a reference to an existing process variable, insert a
- * {@link org.jbpm.context.exe.VariableInstance} as a value in the returned
- * map. If the TaskInstance is to have copies of the process instance
- * variables, just insert POJO's (non-VariableInstance classes) as values
- * for the TaskInstance variables.
- * </p>
- */
+ /**
+ * extracts all information from the process context (optionally indirect) and
initializes the task instance variables.
+ * <p>
+ * Use {@link TaskInstance#setVariable(String, Object)} to set variables in the task
instance and use {@link ContextInstance#getVariable(String, Token)} to get access
+ * to the process variables.
+ * </p>
+ * <p>
+ * The task instance variable can be
+ * <ul>
+ * <li>A copy of process variable value</li>
+ * <li>A reference to a process variable</li>
+ * <li>Any object that can be persisted as a variable. This is usefull in case a
{@link TaskInstance} variable is a function of other process instance
variables.</li>
+ * </ul>
+ * </p>
+ * <p>
+ * In order to create a reference to an existing process variable, insert a {@link
org.jbpm.context.exe.VariableInstance} as a value in the returned map. If the
+ * TaskInstance is to have copies of the process instance variables, just insert
POJO's (non-VariableInstance classes) as values for the TaskInstance variables.
+ * </p>
+ */
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = 1L;
- public void initializeTaskVariables(TaskInstance taskInstance,
- ContextInstance contextInstance, Token token) {
+ public void initializeTaskVariables(TaskInstance taskInstance, ContextInstance
contextInstance, Token token)
+ {
- CustomTaskInstance customTaskInstance = (CustomTaskInstance) taskInstance;
+ CustomTaskInstance customTaskInstance = (CustomTaskInstance)taskInstance;
- String customId = (String) contextInstance.getVariable("customId");
+ String customId = (String)contextInstance.getVariable("customId");
- customTaskInstance.setCustomId(customId);
- System.out.println("set customId: " + customId + " on taskInstance:
" + taskInstance.getId());
- }
+ customTaskInstance.setCustomId(customId);
+ // System.out.println("set customId: " + customId + " on taskInstance:
" + taskInstance.getId());
+ }
- /**
- * is called when a task completes. The task controller is given the
- * opportunity to update the process context variables with the data that is
- * submitted entered in the task instance.
- * <p>
- * Use {@link TaskInstance#getVariable(String)} to get variables from the
- * task instance context and use
- * {@link ContextInstance#setVariable(String, Object, Token)} to update the
- * process variables.
- * </p>
- */
- public void submitTaskVariables(TaskInstance taskInstance,
- ContextInstance contextInstance, Token token) {
+ /**
+ * is called when a task completes. The task controller is given the opportunity to
update the process context variables with the data that is submitted entered in
+ * the task instance.
+ * <p>
+ * Use {@link TaskInstance#getVariable(String)} to get variables from the task instance
context and use {@link ContextInstance#setVariable(String, Object, Token)} to
+ * update the process variables.
+ * </p>
+ */
+ public void submitTaskVariables(TaskInstance taskInstance, ContextInstance
contextInstance, Token token)
+ {
- }
+ }
}
Modified:
jbpm3/trunk/modules/examples/src/test/java/org/jbpm/examples/taskinstance/CustomTaskInstanceTest.java
===================================================================
---
jbpm3/trunk/modules/examples/src/test/java/org/jbpm/examples/taskinstance/CustomTaskInstanceTest.java 2008-09-29
10:23:49 UTC (rev 2432)
+++
jbpm3/trunk/modules/examples/src/test/java/org/jbpm/examples/taskinstance/CustomTaskInstanceTest.java 2008-09-29
10:52:58 UTC (rev 2433)
@@ -45,174 +45,176 @@
/**
* This example shows how to extend the TaskInstance by adding a custom property.
*/
-public class CustomTaskInstanceTest extends TestCase {
+public class CustomTaskInstanceTest extends TestCase
+{
- JbpmConfiguration jbpmConfiguration = null;
- //JbpmConfiguration.getInstance();
+ JbpmConfiguration jbpmConfiguration = null;
+ // JbpmConfiguration.getInstance();
- DbPersistenceServiceFactory dbPersistenceServiceFactory = null;
+ DbPersistenceServiceFactory dbPersistenceServiceFactory;
- JbpmContext jbpmContext;
+ JbpmContext jbpmContext;
- Session s;
+ Session s;
- ProcessInstance processInstance = null;
+ ProcessInstance processInstance = null;
- ContextInstance contextInstance = null;
+ ContextInstance contextInstance = null;
- public void setUp() {
+ public void setUp()
+ {
- // the jbpm.cfg.xml file is modified to add the CustomTaskInstanceFactory
- // so we will read in the file from the config directory of this example
- jbpmConfiguration = JbpmConfiguration.parseResource("jbpm.cfg.xml");
+ // the jbpm.cfg.xml file is modified to add the CustomTaskInstanceFactory
+ // so we will read in the file from the config directory of this example
+ jbpmConfiguration =
JbpmConfiguration.parseResource("taskinstance/jbpm.cfg.xml");
- dbPersistenceServiceFactory = (DbPersistenceServiceFactory) jbpmConfiguration
- .getServiceFactory(Services.SERVICENAME_PERSISTENCE);
-
- // the CustomTaskInstance mapping file reference
- // <mapping
resource="org/jbpm/taskinstance/CustomTaskInstance.hbm.xml"/>
- // has been added to to the bottom of the hibernate.cfg.xml file in the config
directory
-
- // now create the schema
- // this is also a step that typically would be performed as an independent step
- // using the jbpm schema created from the jbpm mapping files
-
- dbPersistenceServiceFactory.createSchema();
- deployProcess();
- jbpmContext = jbpmConfiguration.createJbpmContext();
- }
+ dbPersistenceServiceFactory =
(DbPersistenceServiceFactory)jbpmConfiguration.getServiceFactory(Services.SERVICENAME_PERSISTENCE);
- public void tearDown() {
- jbpmContext.close();
- dbPersistenceServiceFactory.dropSchema();
- jbpmContext = null;
- }
+ // the CustomTaskInstance mapping file reference
+ // <mapping
resource="org/jbpm/taskinstance/CustomTaskInstance.hbm.xml"/>
+ // has been added to to the bottom of the hibernate.cfg.xml file in the config
directory
- public void newTransaction() {
- jbpmContext.close();
- jbpmContext = jbpmConfiguration.createJbpmContext();
- }
+ // now create the schema
+ // this is also a step that typically would be performed as an independent step
+ // using the jbpm schema created from the jbpm mapping files
- public void deployProcess() {
- jbpmContext = jbpmConfiguration.createJbpmContext();
- try {
- ProcessDefinition processDefinition = ProcessDefinition
- .parseXmlResource("CustomTaskInstance/processdefinition.xml");
- jbpmContext.deployProcessDefinition(processDefinition);
- } finally {
- jbpmContext.close();
- }
- }
+ dbPersistenceServiceFactory.createSchema();
+ deployProcess();
+ jbpmContext = jbpmConfiguration.createJbpmContext();
+ }
- public void loadIdentities() {
- jbpmContext = jbpmConfiguration.createJbpmContext();
- try {
- Entity[] entities = IdentityXmlParser
- .parseEntitiesResource("identity.db.xml");
- IdentitySession identitySession = new IdentitySession(jbpmContext
- .getSession());
- for (int i = 0; i < entities.length; i++) {
- identitySession.saveEntity(entities[i]);
- }
- } finally {
- jbpmContext.close();
- }
- }
+ public void tearDown()
+ {
+ jbpmContext.close();
+ dbPersistenceServiceFactory.dropSchema();
+ jbpmContext = null;
+ }
- public void testCustomTaskInstance() {
- // create processInstance
- newTransaction();
- long processInstanceId = createNewProcessInstance();
- assertNotNull(processInstanceId);
- assertFalse("ProcessInstanceId is 0", processInstanceId == 0);
+ public void newTransaction()
+ {
+ jbpmContext.close();
+ jbpmContext = jbpmConfiguration.createJbpmContext();
+ }
- // perform the task
- newTransaction();
- long taskInstanceId = acquireTask();
- assertNotNull(taskInstanceId);
- assertFalse("TaskInstanceId is 0", taskInstanceId == 0);
- newTransaction();
+ public void deployProcess()
+ {
+ jbpmContext = jbpmConfiguration.createJbpmContext();
+ try
+ {
+ ProcessDefinition processDefinition =
ProcessDefinition.parseXmlResource("taskinstance/processdefinition.xml");
+ jbpmContext.deployProcessDefinition(processDefinition);
+ }
+ finally
+ {
+ jbpmContext.close();
+ }
+ }
- completeTask(taskInstanceId);
+ public void loadIdentities()
+ {
+ jbpmContext = jbpmConfiguration.createJbpmContext();
+ try
+ {
+ Entity[] entities =
IdentityXmlParser.parseEntitiesResource("identity.db.xml");
+ IdentitySession identitySession = new IdentitySession(jbpmContext.getSession());
+ for (int i = 0; i < entities.length; i++)
+ {
+ identitySession.saveEntity(entities[i]);
+ }
+ }
+ finally
+ {
+ jbpmContext.close();
+ }
+ }
- newTransaction();
- TaskInstance taskInstance = jbpmContext
- .loadTaskInstance(taskInstanceId);
- Date end = taskInstance.getEnd();
- assertNotNull(end);
+ public void testCustomTaskInstance()
+ {
+ // create processInstance
+ newTransaction();
+ long processInstanceId = createNewProcessInstance();
+ assertNotNull(processInstanceId);
+ assertFalse("ProcessInstanceId is 0", processInstanceId == 0);
- // check process is completed
- newTransaction();
- Date processEnd = null;
- processInstance = jbpmContext.getProcessInstance(processInstanceId);
- processEnd = processInstance.getEnd();
- assertNotNull(processEnd);
- }
+ // perform the task
+ newTransaction();
+ long taskInstanceId = acquireTask();
+ assertNotNull(taskInstanceId);
+ assertFalse("TaskInstanceId is 0", taskInstanceId == 0);
+ newTransaction();
- public long createNewProcessInstance() {
- String processDefinitionName = "CustomTaskInstance";
- processInstance = jbpmContext
- .newProcessInstanceForUpdate(processDefinitionName);
- long processInstanceId = processInstance.getId();
- contextInstance = processInstance.getContextInstance();
- contextInstance.setVariable("processDefinitionName",
- processDefinitionName);
- contextInstance.setVariable("customId", "abc");
- Token token = processInstance.getRootToken();
- token.signal();
- return processInstanceId;
+ completeTask(taskInstanceId);
- }
+ newTransaction();
+ TaskInstance taskInstance = jbpmContext.loadTaskInstance(taskInstanceId);
+ Date end = taskInstance.getEnd();
+ assertNotNull(end);
+ // check process is completed
+ newTransaction();
+ Date processEnd = null;
+ processInstance = jbpmContext.getProcessInstance(processInstanceId);
+ processEnd = processInstance.getEnd();
+ assertNotNull(processEnd);
+ }
- public long acquireTask() {
+ public long createNewProcessInstance()
+ {
+ String processDefinitionName = "CustomTaskInstance";
+ processInstance = jbpmContext.newProcessInstanceForUpdate(processDefinitionName);
+ long processInstanceId = processInstance.getId();
+ contextInstance = processInstance.getContextInstance();
+ contextInstance.setVariable("processDefinitionName",
processDefinitionName);
+ contextInstance.setVariable("customId", "abc");
+ Token token = processInstance.getRootToken();
+ token.signal();
+ return processInstanceId;
- List<CustomTaskInstance> tasklist =
findPooledTaskListByCustomId("reviewers", "abc");
- Iterator taskIterator = tasklist.iterator();
+ }
- CustomTaskInstance taskInstance = null;
- long taskInstanceId = 0;
- while (taskIterator.hasNext()) {
- taskInstance = (CustomTaskInstance) taskIterator.next();
- taskInstanceId = taskInstance.getId();
- taskInstance.start();
- taskInstance.setActorId("tom");
- String customId = taskInstance.getCustomId();
- assertEquals("abc", customId);
- System.out.println(taskInstanceId);
- }
- return taskInstanceId;
- }
+ public long acquireTask()
+ {
- public void completeTask(long taskInstanceId) {
- s = jbpmContext.getSession();
- CustomTaskInstance taskInstance = (CustomTaskInstance) s.load(
- CustomTaskInstance.class, new Long(taskInstanceId));
+ List<CustomTaskInstance> tasklist =
findPooledTaskListByCustomId("reviewers", "abc");
+ Iterator taskIterator = tasklist.iterator();
- taskInstance.end();
+ CustomTaskInstance taskInstance = null;
+ long taskInstanceId = 0;
+ while (taskIterator.hasNext())
+ {
+ taskInstance = (CustomTaskInstance)taskIterator.next();
+ taskInstanceId = taskInstance.getId();
+ taskInstance.start();
+ taskInstance.setActorId("tom");
+ String customId = taskInstance.getCustomId();
+ assertEquals("abc", customId);
+ }
+ return taskInstanceId;
+ }
- }
+ public void completeTask(long taskInstanceId)
+ {
+ s = jbpmContext.getSession();
+ CustomTaskInstance taskInstance =
(CustomTaskInstance)s.load(CustomTaskInstance.class, new Long(taskInstanceId));
+ taskInstance.end();
- private static final String findPooledTaskInstancesByCustomId = "select distinct ti
"
- + "from org.jbpm.taskinstance.CustomTaskInstance ti"
- + " join ti.pooledActors pooledActor "
- + "where "
- + "pooledActor.actorId = :pooledActorId "
- + " and ti.actorId is null "
- + " and ti.end is null "
- + " and ti.isCancelled = false"
- + " and ti.customId = :customId";
+ }
- public List<CustomTaskInstance> findPooledTaskListByCustomId(
- String actorId, String customId) {
- List<CustomTaskInstance> taskList = null;
- s = jbpmContext.getSession();
- Query query = s.createQuery(findPooledTaskInstancesByCustomId);
- query.setString("pooledActorId", actorId);
- query.setString("customId", customId);
- taskList = query.list();
- return taskList;
- }
+ private static final String findPooledTaskInstancesByCustomId =
+ "select distinct ti " + "from " +
CustomTaskInstance.class.getName() + " ti " +
+ " join ti.pooledActors pooledActor where pooledActor.actorId = :pooledActorId
and ti.actorId is null and ti.end is null " +
+ " and ti.isCancelled = false and ti.customId = :customId";
+ public List<CustomTaskInstance> findPooledTaskListByCustomId(String actorId,
String customId)
+ {
+ List<CustomTaskInstance> taskList = null;
+ s = jbpmContext.getSession();
+ Query query = s.createQuery(findPooledTaskInstancesByCustomId);
+ query.setString("pooledActorId", actorId);
+ query.setString("customId", customId);
+ taskList = query.list();
+ return taskList;
+ }
+
}
Added: jbpm3/trunk/modules/examples/src/test/resources/hibernate.extra.hbm.xml
===================================================================
--- jbpm3/trunk/modules/examples/src/test/resources/hibernate.extra.hbm.xml
(rev 0)
+++ jbpm3/trunk/modules/examples/src/test/resources/hibernate.extra.hbm.xml 2008-09-29
10:52:58 UTC (rev 2433)
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<hibernate-mapping>
+
+ <!-- ################################################## -->
+ <!-- # Additional mappings defined per module go here # -->
+ <!-- ################################################## -->
+
+ <subclass name="org.jbpm.examples.taskinstance.CustomTaskInstance"
+ extends="org.jbpm.taskmgmt.exe.TaskInstance"
+ discriminator-value="C">
+ <property name="customId" column="CUSTOMID_" />
+ </subclass>
+
+</hibernate-mapping>
Property changes on:
jbpm3/trunk/modules/examples/src/test/resources/hibernate.extra.hbm.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Deleted:
jbpm3/trunk/modules/examples/src/test/resources/taskinstance/CustomTaskInstance.hbm.xml
===================================================================
---
jbpm3/trunk/modules/examples/src/test/resources/taskinstance/CustomTaskInstance.hbm.xml 2008-09-29
10:23:49 UTC (rev 2432)
+++
jbpm3/trunk/modules/examples/src/test/resources/taskinstance/CustomTaskInstance.hbm.xml 2008-09-29
10:52:58 UTC (rev 2433)
@@ -1,18 +0,0 @@
-<?xml version="1.0"?>
-
-<!DOCTYPE hibernate-mapping PUBLIC
- "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
- "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
-
-<hibernate-mapping default-access="field">
-
- <subclass name="org.jbpm.taskinstance.CustomTaskInstance"
- extends="org.jbpm.taskmgmt.exe.TaskInstance"
- discriminator-value="C">
-
- <property name="customId" column="CUSTOMID_" />
-
-
- </subclass>
-
-</hibernate-mapping>
Added: jbpm3/trunk/modules/examples/src/test/resources/taskinstance/gpd.xml
===================================================================
--- jbpm3/trunk/modules/examples/src/test/resources/taskinstance/gpd.xml
(rev 0)
+++ jbpm3/trunk/modules/examples/src/test/resources/taskinstance/gpd.xml 2008-09-29
10:52:58 UTC (rev 2433)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<process-diagram name="CustomTaskInstance" width="774"
height="673">
+ <node name="start" x="176" y="65" width="-1"
height="-1">
+ <transition name="">
+ <label x="5" y="-10"/>
+ </transition>
+ </node>
+ <node name="end1" x="178" y="349"
width="140" height="40"/>
+ <node name="Review Order" x="177" y="205"
width="140" height="40">
+ <transition name="">
+ <label x="5" y="-10"/>
+ </transition>
+ </node>
+</process-diagram>
Property changes on: jbpm3/trunk/modules/examples/src/test/resources/taskinstance/gpd.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: jbpm3/trunk/modules/examples/src/test/resources/taskinstance/jbpm.cfg.xml
===================================================================
--- jbpm3/trunk/modules/examples/src/test/resources/taskinstance/jbpm.cfg.xml
(rev 0)
+++ jbpm3/trunk/modules/examples/src/test/resources/taskinstance/jbpm.cfg.xml 2008-09-29
10:52:58 UTC (rev 2433)
@@ -0,0 +1,49 @@
+<jbpm-configuration>
+
+ <!--
+ This configuration is used when there is no jbpm.cfg.xml file found in the
+ root of the classpath. It is a very basic configuration without persistence
+ and message services. Only the authorization service installed.
+ You can parse and create processes, but when you try to use one of the
+ unavailable services, you'll get an exception.
+ -->
+
+ <jbpm-context>
+ <service name="persistence"
factory="org.jbpm.persistence.db.DbPersistenceServiceFactory" />
+ <service name="tx" factory="org.jbpm.tx.TxServiceFactory"
/>
+ <service name="message"
factory="org.jbpm.msg.db.DbMessageServiceFactory" />
+ <service name="scheduler"
factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
+ <service name="logging"
factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
+ <service name="authentication"
factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory"
/>
+ </jbpm-context>
+
+ <!-- configuration property used by persistence service impl
org.jbpm.persistence.db.DbPersistenceServiceFactory -->
+ <string name="resource.hibernate.cfg.xml"
value="hibernate.cfg.xml" />
+
+ <!-- configuration resource files pointing to default configuration files in
jbpm-{version}.jar -->
+ <string name="resource.business.calendar"
value="org/jbpm/calendar/jbpm.business.calendar.properties" />
+ <string name="resource.default.modules"
value="org/jbpm/graph/def/jbpm.default.modules.properties" />
+ <string name="resource.converter"
value="org/jbpm/db/hibernate/jbpm.converter.properties" />
+ <string name="resource.action.types"
value="org/jbpm/graph/action/action.types.xml" />
+ <string name="resource.node.types"
value="org/jbpm/graph/node/node.types.xml" />
+ <string name="resource.parsers"
value="org/jbpm/jpdl/par/jbpm.parsers.xml" />
+ <string name="resource.varmapping"
value="org/jbpm/context/exe/jbpm.varmapping.xml" />
+ <string name="resource.mail.templates"
value="jbpm.mail.templates.xml" />
+
+ <int name="jbpm.byte.block.size" value="1024"
singleton="true" />
+ <string name="jbpm.mail.smtp.host" value="localhost" />
+ <!-- bean name="jbpm.task.instance.factory"
class="org.jbpm.taskmgmt.impl.DefaultTaskInstanceFactoryImpl"
singleton="true" /-->
+ <bean name="jbpm.task.instance.factory"
class="org.jbpm.examples.taskinstance.CustomTaskInstanceFactoryImpl"
singleton="true" />
+ <bean name="jbpm.variable.resolver"
class="org.jbpm.jpdl.el.impl.JbpmVariableResolver" singleton="true"
/>
+ <bean name="jbpm.mail.address.resolver"
class="org.jbpm.identity.mail.IdentityAddressResolver"
singleton="true" />
+
+ <bean name="jbpm.job.executor"
class="org.jbpm.job.executor.JobExecutor">
+ <field name="jbpmConfiguration"><ref
bean="jbpmConfiguration" /></field>
+ <field name="name"><string value="JbpmJobExector"
/></field>
+ <field name="nbrOfThreads"><int value="1"
/></field>
+ <field name="idleInterval"><int value="2500"
/></field>
+ <field name="maxIdleInterval"><int value="3600000"
/></field>
+ <field name="historyMaxSize"><int value="20"
/></field>
+ </bean>
+
+</jbpm-configuration>
Property changes on:
jbpm3/trunk/modules/examples/src/test/resources/taskinstance/jbpm.cfg.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: jbpm3/trunk/modules/examples/src/test/resources/taskinstance/processdefinition.xml
===================================================================
--- jbpm3/trunk/modules/examples/src/test/resources/taskinstance/processdefinition.xml
(rev 0)
+++
jbpm3/trunk/modules/examples/src/test/resources/taskinstance/processdefinition.xml 2008-09-29
10:52:58 UTC (rev 2433)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<process-definition
+ xmlns="urn:jbpm.org:jpdl-3.2" name="CustomTaskInstance">
+ <swimlane name="reviewers">
+ <assignment pooled-actors="reviewers"/>
+ </swimlane>
+ <start-state name="start">
+ <transition name="" to="Review
Order"></transition>
+ </start-state>
+ <end-state name="end1"></end-state>
+ <task-node name="Review Order">
+ <task name="Review Order" swimlane="reviewers">
+ <controller
class="org.jbpm.examples.taskinstance.CustomTaskControllerHandler"></controller>
+ </task>
+ <transition name="" to="end1"></transition>
+ </task-node>
+</process-definition>
\ No newline at end of file
Property changes on:
jbpm3/trunk/modules/examples/src/test/resources/taskinstance/processdefinition.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: jbpm3/trunk/modules/examples/src/test/resources/taskinstance/processimage.jpg
===================================================================
(Binary files differ)
Property changes on:
jbpm3/trunk/modules/examples/src/test/resources/taskinstance/processimage.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream