[JBoss jBPM] - Re: Ending tasks manually
by frinux
Hum sorry but I don't have lot of time to build an sample of the error. I found a (dirty) way to do the job :
I noticed that although taskInstance.end(transition) doesn't work, token.signal(transition) does. So here is what I've done :
Transition tr=taskInstance.getTask().getTaskNode().getLeavingTransition("refusee");
|
| Token currentToken = processInstance.getRootToken();
| currentToken.signal(tr);
|
| @SuppressWarnings(value={"unchecked"}) //taskMgmtSession returns a raw List... We ignore the warning thrown by Java
| List<TaskInstance> userTaskList2 = taskMgmtSession.findTaskInstances(demande.getDemandeur().getUsername());
|
| for(int j = 0 ; j < userTaskList2.size() ; j++)
| {
| TaskInstance taskInstance2 = userTaskList2.get(j);
| if(taskInstance2.getProcessInstance().getId() == processInstanceId)
| {
| if(taskInstance2.getName().equals("valider_demande"));
| {
| taskInstance2.end();
| break;
| }
| }
| }
It is a temporary solution, and it's not optimized but it works. I keep it like that until I don't find a clean way... (I still suspect that taskInstance.end(transition) doesn't work properly).
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234630#4234630
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234630
16 years, 10 months
[JBoss Tools (users)] - Re: Overriding an EJB datasource for testing
by lowecg2004
Nik,
For the native queries problem one solution might be to create entity objects for the extra tables you require then they would just get generated as part of the create-drop in your tests.
As for your original issue, I'm afraid I have no experience with Oracle and JPA. It does seem odd however that you're getting creation errors when your persistence properties are supposed to "validate" the schema. Sounds like maybe the correct persistence.xml is being picked up (hence a connection to Oracle) but the wrong persistence.properties (hence creation errors). Where are your properties files located? My project was using an EAR structure and I had to put my production properties in my EJB project rather than the bootstrap/META-INF. Also make sure Eclipse is aware of the files and is actually copying them the relevant .ear file.
Cheers,
Chris.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234627#4234627
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234627
16 years, 10 months
[JBoss Messaging] - ...and auto generated ClientIDs
by oliver.stauss
Subject limited? --> sorry my first post :-)
"oliver.stauss" wrote : Hello,
| since we have an upgrade from an JBOSS 4.0.2 to 4.2.2 We have Strange Problems with an JMS Client System.
|
| The JMS Client "sometimes" loose the connection to the durable Topic.
| The Client want's to re-register on the same Client it. this failes because of an "durable subscription is already in use" Exception.
| That's not fine but okay ....
|
| But:
|
| Sometimes (after loosing connection) the System generates client ids like "ID:[numeric]" !!!!!!
| This happen several times. This results in many registerd clients!
|
| I did not understand WHY Jboss Client/server starts to generated numeric clientID's! Found nothing on (GIYF).
| Can you help me to solve this problem?
|
| regards in advance Ost
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234621#4234621
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234621
16 years, 10 months