I'm a totally new user to workflows and jbpm... have been reading and lookin 
deeply at the code though. 

I have to do an application that I'll explain bellow and how I was trying to 
begin it, I would appreciate any advice ppl.

A related flow is about entering new products to the system, but it should be 
totally dynamic. I mean, I start a new process instance by clicking some link 
like "New product" on the navigator. The token is signal and the propagation 
reaches the next node, a Task Node. 
This task node will present the user the form based on the task instances 
variables... but I need also to load dynamically a lot of other variables that 
are stored on a DB and then create the FORM shown to the user not only using 
the variables defined in the task controller, otherwise these i got from the 
DB. To do this I thought about adding an Action when the event NODE_ENTER is 
triggered, and this make this action to retrieve the dynamic variables and 
store them in the session scope to use them later when creating the web page. 
Something like this: 


  |     public void execute(ExecutionContext executionContext) throws Exception 
  |     {
  |             //get the field set from DB and store it in the session 
  |             executionContext.get
  |             
  |             Object id = 
executionContext.getTaskInstance().getVariable("newProductId");
  |             Query query = 
session.getNamedQuery("GraphSession.findAllDynamicVariableForAProduct");
  |             query.setLong("newProductId", id);
  |             
  |             
executionContext.getTaskInstance().setVariable("dynamicVariables", 
query.list());
  |             
  |             
  |     }
  | 

There can be a lot of task nodes like this... but each will retrieve differente 
dynamic variables and be assigned to different users.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938436#3938436

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938436


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to