Good morning! I am a bit confused regarding a process and a unit test of mine. This is my process:
| <?xml version="1.0" encoding="UTF-8"?> | | <process key="task_types" name="task_types" xmlns="http://jbpm.org/4.0/jpdl"> | <start g="95,26,48,48" name="start1"> | <transition g="-26,-29" name="to state1" to="state1"/> | </start> | <state g="209,39,92,52" name="state1"> | <transition g="-51,-21" name="to java1" to="java1"/> | </state> | <java class="JavaClass" g="212,124,92,52" method="printMessage" name="java1"> | <transition g="-50,-21" name="to task1" to="task1"/> | </java> | <task g="215,210,92,52" name="task1"> | <transition g="-68,-12" name="to custom1" to="custom1"/> | </task> | <custom class="CustomClass" g="214,290,92,52" name="custom1"> | <transition g="-48,-21" name="to end1" to="end1"/> | </custom> | <end g="395,303,48,48" name="end1"/> | </process> | This is the part of my unit test: | public void testWaiteStateAndJavaTask() { | ProcessInstance processInstance = executionService.startProcessInstanceByKey("task_types"); | Execution execution = processInstance.findActiveExecutionIn("state1"); | assertNotNull(execution); | String executionId = execution.getId(); | executionService.signalExecutionById(executionId); | Set<String> activities = processInstance.findActiveActivityNames(); | System.out.println(activities.toString()); | | } | Execution log: | 08:38:57,350 FIN | [ProcessDefinitionImpl] creating new execution for process 'task_types' | 08:38:57,413 FIN | [DefaultIdGenerator] generated execution id task_types.1 | 08:38:57,413 FIN | [ExecuteActivity] executing activity(start1) | 08:38:57,413 FIN | [ExecuteActivity] executing activity(state1) | 08:38:57,491 FIN | [Signal] signalling activity(state1), signalName=null | 08:38:57,507 FIN | [ExecuteActivity] executing activity(java1) | Methodenaufruf in JavaClass erfolgt. | 08:38:57,507 FIN | [ExecuteActivity] executing activity(task1) | | [state1] | Calling activities.toString() returns [state1]. I expected [task1] rather than state1 when calling findActiveActivityNames(). Can somebody shed some light on this? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250297#4250297 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250297 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user