[JBoss JIRA] Created: (JBPM-1334) Basic Node Sequence
by Thomas Diesler (JIRA)
Basic Node Sequence
-------------------
Key: JBPM-1334
URL: http://jira.jboss.com/jira/browse/JBPM-1334
Project: JBoss jBPM
Issue Type: Task
Security Level: Public (Everyone can see)
Components: API
Reporter: Thomas Diesler
Assigned To: Thomas Diesler
Fix For: API 1.0.0.Alpha
Support a basic node activity like this
<process-definition>
<start-state>
<transition to='stateA' />
</start-state>
<state name='stateA'>
<event type='node-enter'>
<action class='org.jboss.bpm.samples.activity.BasicActivity' />
</event>
<transition to='end'/>
</state>
<end-state name='end' />
</process-definition>
public class BasicActivity implements Activity
{
public void execute(Node node, Context ctx)
{
String name = node.getName();
ctx.addAttachment(String.class, "Activity on: " + name);
}
}
/**
* Test that the execution context variables set by the Activity
* are visible to the client.
*/
public void testBasicActivity() throws Exception
{
// Create a ProcessDefinition through the ProcessDefinitionManager
ProcessDefinitionManager pdm = ProcessDefinitionManager.locateProcessDefinitionManager();
ProcessDefinition pd = pdm.createProcessDefinition(jpdl);
// Create an Execution through the ProcessDefinition
Execution ex = pd.createExecution();
assertEquals(pd.getStartNode(), ex.getNode());
// Signal the execution
ex.signal();
assertEquals(pd.findNode("stateA"), ex.getNode());
// Verify context variables
String msg = ex.getContext().getAttachment(String.class);
assertEquals("Activity on: stateA", msg);
// Signal the execution
ex.signal();
assertEquals(pd.findNode("end"), ex.getNode());
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 2 months
[JBoss JIRA] Created: (JBPM-1333) Basic Activity
by Thomas Diesler (JIRA)
Basic Activity
--------------
Key: JBPM-1333
URL: http://jira.jboss.com/jira/browse/JBPM-1333
Project: JBoss jBPM
Issue Type: Task
Security Level: Public (Everyone can see)
Components: API
Reporter: Thomas Diesler
Assigned To: Heiko Braun
Fix For: API 1.0.0.Alpha
Support prepareForShutdown and cancelShutdown on the ProcessEngine.
/**
* Try to create a Execution during shutdown
*/
public void testCreateExecution() throws Exception
{
// Create a ProcessDefinition through the ProcessDefinitionManager
ProcessDefinitionManager pdm = ProcessDefinitionManager.locateProcessDefinitionManager();
ProcessDefinition pd = pdm.createProcessDefinition(jpdl);
assertNotNull("Execution expected", pd.createExecution());
// Try to create a Execution during shutdown
try
{
ProcessInstance pinst = pd.createProcessInstance();
engine.prepareForShutdown();
pinst.createExecution();
}
catch (EngineShutdownException ex)
{
assertEquals("Cannot create new Execution while engine is shutting down", ex.getMessage());
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 2 months
[JBoss JIRA] Created: (JBPM-1205) Cleanup stale tests from the testsuite
by Thomas Diesler (JIRA)
Cleanup stale tests from the testsuite
--------------------------------------
Key: JBPM-1205
URL: http://jira.jboss.com/jira/browse/JBPM-1205
Project: JBoss jBPM
Issue Type: Task
Security Level: Public (Everyone can see)
Components: jPDL 3
Reporter: Thomas Diesler
I believe this is currently the list of tests that are not run as part of the testsuite
<!-- Tests not part of AllTests -->
<exclude>org/jbpm/context/exe/VariableQueryDbTest.java</exclude>
<exclude>org/jbpm/db/ContextSessionDbTest.java</exclude>
<exclude>org/jbpm/DefaultConfigurationTest.java</exclude>
<exclude>org/jbpm/graph/def/ExceptionHandlerDbTest.java</exclude>
<exclude>org/jbpm/graph/def/TransitionDbTest.java</exclude>
<exclude>org/jbpm/graph/exe/StateDbTest.java</exclude>
<exclude>org/jbpm/graph/exe/SubProcessCancellationTest.java</exclude>
<exclude>org/jbpm/graph/exe/SuperStateActionExecutionDbTest.java</exclude>
<exclude>org/jbpm/graph/log/NodeLogTest.java</exclude>
<exclude>org/jbpm/instantiation/UserCodeInterceptorTest.java</exclude>
<exclude>org/jbpm/JbpmDefaultConfigTest.java</exclude>
<exclude>org/jbpm/job/executor/ConcurrencyTest.java</exclude>
<exclude>org/jbpm/job/executor/JobExecutorDbTest.java</exclude>
<exclude>org/jbpm/job/executor/JobLoadJoinTest.java</exclude>
<exclude>org/jbpm/job/executor/JobLoadSubProcessTest.java</exclude>
<exclude>org/jbpm/jpdl/convert/ConversionTestCase.java</exclude>
<exclude>org/jbpm/jpdl/xml/SchemaTest.java</exclude>
<exclude>org/jbpm/logging/exe/LoggingConfigDbTest.java</exclude>
<exclude>org/jbpm/logging/exe/LogLogTest.java</exclude>
<exclude>org/jbpm/mail/RealServerMailTestCase.java</exclude>
<exclude>org/jbpm/mock/JdbcProxyTest.java</exclude>
<exclude>org/jbpm/perf/PerfWithoutDbTest.java</exclude>
<exclude>org/jbpm/perf/StateUpdateTest.java</exclude>
<exclude>org/jbpm/perf/TasklistEagerLoadingTest.java</exclude>
<exclude>org/jbpm/perf/TaskWithVariablesTest.java</exclude>
<exclude>org/jbpm/persistence/db/PersistenceConfigurationTest.java</exclude>
<exclude>org/jbpm/scheduler/exe/UnsafeSessionUsageTest.java</exclude>
<exclude>org/jbpm/seam/SeamPageFlowTest.java</exclude>
To cleanup, do one of the following
#1 enable the test
#2 remove the test from SVN
#3 disable the test with a FIXME
#4 put the test in the exclude file
void testFoo() {
if(true)
{
System.out.println("FIXME: [JBPM-1234] some issue that needs fixing");
return;
}
}
The union of tests in the exclude file and FIXME disabled tests are the errata for a given release.
Do not silently disable/exclude a test. There must be a jira associated.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 2 months