[JBoss-user] [JBoss jBPM] - Re: process definition question

2006-04-03 Thread Hannes
I think that the Swimlanes dont get immediately instantiated. 
(=SwinlaneInstance).
You may get all swimlanes with:Map swimlanes = 
processDefinition.getTaskMgmtDefinition().getSwimlanes();
Then you can explicit ensure that the swimlanes are available -
I got this snippet from somewhere else in the forum (from 
brittm):SwimlaneInstance swi = pi.getTaskMgmtInstance()
  | .getInitializedSwimlaneInstance(
  | new 
ExecutionContext(pi.getRootToken()), swimlane);

better you take a look in here: 
http://www.jboss.com/index.html?module=bbop=viewtopict=74156




View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3934257#3934257

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3934257


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: process definition question

2006-04-03 Thread cwad0000
many thanks for the pointer to that thread, very useful!
(no idea what I search for yesterday since i couldnt find it)

I now managed to start it off, and assign a user to the swimlane

  | //get a swimlane
  | SwimlaneInstance swimLaneInstance = 
myTaskMgmtInstance.getSwimlaneInstance(reader);
  | 
  | //assign user donald as reader
  | swimLaneInstance.setActorId(donald);
  | 

after that I call signal() until the process holds at the first task assigned 
to that swimlane.

Now I try to call the task list for the user donald, but I get an exception 
thrown at me e=java.lang.reflect.UndeclaredThrowableException
This is my code for fetching the task list

  |  public List getUserTasks(String uid) { 
  | List myTasks =null;
  | JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
  | 
  | try{
  | TaskMgmtSession taskMgmtSession = jbpmContext.getTaskMgmtSession(); 

  | myTasks = taskMgmtSession.findTaskInstances( uid );
  | } finally {
  | jbpmContext.close();
  | }
  | 
  | return myTasks;
  | }
  | 

If I try to call the tasks assigned to any other uid I get return 0 (which I 
would expect since no one else got tasks to do)

Do I need to add a userid somewhere else in jBPM or can I take any string and 
pass it on to setActorId(), and jBPM will regard him as a proper user?


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3934280#3934280

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3934280


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: process definition question

2006-04-03 Thread cwad0000
I might add that the task exist in jbpm_taskinstance, is open and assigned to 
donald.

So imo the named query should have matched

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3934300#3934300

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3934300


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: process definition question

2006-04-03 Thread cwad0000
it does not seem to be a jBPM problem,
the problem seems to be when I try to return the List over the EJB remote 
interface
(not possible to serialize?)

hm. any ideas how to get around that?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3934334#3934334

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3934334


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: process definition question

2006-04-02 Thread 232.8
ignore this thread;

it seems like it was all related to that 3.0.1 was not the latest version; it 
does not complain about that anymore
(it complains about other stuff instead, but will dig into that)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3934205#3934205

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3934205


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: process definition question

2006-04-02 Thread 232.8
HmmI think I have misunderstood how swimlanes works, I would be grateful if 
someone could point out where I go wrong;

When I deploy my processdefinition, my swimlanes are in JBPM_SWIMLANE;

When I create an instantiate of my processdefinition, I thought that the 
swimlanes would be instantiated and appear in JBPM_SWIMLANEINSTANCE;
but that is not the casewhy not?

The code below I thought would be the way to dynamically add an actor to a 
swimlane after I instantiated the process, however, the swimlane (reader) is 
null.

  
  | ProcessDefinition processDefinition = 
  |   graphSession.findLatestProcessDefinition(simpleDeluxe);
  | 
  | ProcessInstance processInstance = 
  | new ProcessInstance(processDefinition);
  | 
  | 
  | //fetch the TaskMgmtInstance
  | TaskMgmtInstance myTaskMgmtInstance = processInstance.getTaskMgmtInstance();
  | 
  | //get the reader swimlane
  | SwimlaneInstance swimLaneInstance = 
myTaskMgmtInstance.getSwimlaneInstance(reader);
  | 
  | if(swimLaneInstance==null)
  |   fail(reader swimlane is null);
  | 
  | //assign user donald (he can read a book, but is crap at writing books)
  | swimLaneInstance.setActorId(donald);
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3934208#3934208

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3934208


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user