[JBoss jBPM] - Re: How logging me in as a user in JBPM (swimlane)
by antitrust1982
now I work on one instance of jbpm process in order to work one instance correctly. (but I notice that when I execute two portlets of jbpm, the processID of each is the same).
Now, I catch the taskinstance and do a list for each swimlane person. after, I would like to choice one among these and execute this. So I must to indicate which one it is. I have the taskinstanceID but how can I call this taskinstance thanks to this Id?
this is my code:
System.out.println("les taches non finies sont:");
| Collection taskinstances = (Collection) pi.getTaskMgmtInstance().getUnfinishedTasks(token);
| Iterator itr1 = taskinstances.iterator();
| while(itr1.hasNext()) {
| taskinstance=(TaskInstance)itr1.next();
|
| if("ernie"==taskinstance.getActorId()){
| System.out.println("Pour ERNIE :................"+taskinstance.getName());
| System.out.println(taskinstance.getId());
| System.out.println("tache finie:.........."+taskinstance.hasEnded());
| }
|
| else if("bert"==taskinstance.getActorId()){
| System.out.println("Pour BERT :...................."+taskinstance.getName());
| }
|
| else{
| System.out.println("Les autres taches sont :"+taskinstance.getName()+" et sont allouées à"+taskinstance.getActorId());
| taskinstance.getSwimlaneInstance().setActorId("bert");
| System.out.println("Changement effectué.. the task is :"+taskinstance.getName()+" to the user "+taskinstance.getActorId());
|
| }
| }
|
|
I want to work on one of the task instances after this "while loop".
thank you for your help
antitrust1982
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971498#3971498
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971498
19 years, 7 months
[JBoss Seam] - Re: Glaring Security Hole?
by gavin.king@jboss.com
"bfagan" wrote : Please correct me if I'm mistaken, but my impression from the Seam Reference document is that if you enable Seam Remoting then any Entity bean that you've given a Seam @Name has it's data model exposed.
|
| Let's say you have a large corporation and a developer uses a wonderful IDE wizard to turn their database model into a package of easy to use Seam-enabled entities. Next the developer enables Seam Remoting to use an @WebRemote enabled session bean.
|
| Any competitor to said large corporation can search javascript segments for Seam.Component.newInstance() methods, call out to the Seam Remoting URL garner information about the entities and reverse engineer a data model.
|
| It is clear that session beans require @WebRemote annotation. Why are entity beans automatically exposed without such an annotation?
They are only exposed if they are the return value of a method marked @Remote. And only their state is exposed, not their methods.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971497#3971497
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971497
19 years, 7 months