i have an jsf application saving the reference to my ejbs in one javabean called datafactory
as i printed out for stateless beans in variable will be saved:
10:02:36,359 INFO [DataFactory] stateless: CategoriesLangImp
and for stateful:
10:02:36,359 INFO [DataFactory] stateful: SessionImpl:5c4o4yp-flv5bi-es4a7n25-1-es4a8mvn-7
so if i remove statful session bean by using ejb with reference 5c4o4yp-flv5bi-es4a7n25-1-es4a8mvn-7 is not more available.
but the stateless with which only handle ejb persistence should not be removed, but at all is it neccessary?
how long will the beans available on application server - is there any time limit?
thy so much
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971868#3971868
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971868
thank you I do this but at the end of my task instance execution, so it desn"t work correctly. now I put the save just after the creation and work well.
But does it existe a methode like unfinishedtaskinstance for the process intances unfinished.. I tried to find it in the javadoc, but I don't find at this time. I try to continu to search for because there are lots of methodes for lots of things.
thank you
antitrust1982
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971863#3971863
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971863
In this case you can use:
yourBean.getYourModel.getRowData();
| yourBean.getYourModel.getRowIndex();
|
But you should not create DataModel each time in a getter.
I use it something like this:
private DataModel dm = null;
|
| public DataModel getDetails() {
| if (dm==null){
| dm = new ListDataModel();
| }
| return dm;
| }
|
| private void syncDetails() {
| Client o = getObject();
| if (o!=null){
| getDetails().setWrappedData(o.getDocuments());
| }
| }
|
| private IdentityCard getSelectedDocument() {
| return (IdentityCard)getDetails().getRowData();
| }
|
Frankly, I do not like
@DataModel
@DataModelSelection
@DataModelSelectionIndex
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971862#3971862
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971862
"meeru777" wrote : i got it to work,
|
| is this the right approach to do it?
|
|
| | String q = "select pi from org.jbpm.graph.exe.ProcessInstance as pi,
| | org.jbpm.context.exe.VariableInstance as vi"
| | + " where pi.id = vi.processInstance and pi.rootToken.node.name = '" +
| | wfStatus + "' and vi.value='"+ variableValue + "' and vi.name='" +
| | variableName + "'";
| |
|
1. Does it deliver the expected result set? If so --> Looks good :-)
2. Why do you check the node name? I ask because I basically look for
task instances that are assigned to a user (ti.actorId = :userId)
and have a set of process variables/values like status and order number.
I try to keep as much process specific knowledge outside my application.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971857#3971857
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971857