[JBoss-user] [JBoss jBPM] - Re: Assignign default values to variables
Maybe you could define some Aspect using AspectJ - Spring AOP or whatever that targets... TaskController.initializeVariables(TaskInstanace) and populate the variables values in the aspect. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943217#3943217 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943217 --- 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 JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: Associate custom objects with Nodes
Thanks for the reply alex. That should work but I got a question. Since I didn't find any documentation about ModuleInstance in users guide I tried to deduce it b myself by taking a look directly to the code. Are ModuleInstance subclasses some kind of "services helper classes" ? I mean some point for providing your extension app... since from simple helper class to some facade with a lot of classes bellow it ? Regards, Sebastian View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943189#3943189 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943189 --- 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 JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: Associate custom objects with Nodes
Thank for replaying kukeltje. e.g. when you do a Swing JTree you should create instances of class the DefaultMuteableTreeNode. You associate a custom objetc to each DefaultMuteableTreeNode and if an event occurs on the tree ( supposing it's a node selection event ) by having the selected DefaultMuteableTreeNode you call the node.getUserObject() and that way get your custom Object. Well... my jbpm app have several task nodes in its flow but each task node can be "different" for MY app. I will do know it's a task node when the execution point reaches a task node, but that's not enough for my app since I have to know what task node "subtype" is. That's why I wanted to know if there's some way to associate a custom object to a task node like the DefaultTreeNode does. Thanks Regards, Sebastian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3942872#3942872 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3942872 --- 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 JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Associate custom objects with Nodes
First of all, I will explain shortly and detailed the app -> The client can design the flow using the designer, and obviously deploy it. Client's personal logs in the web app, the home page is displayed and the link which starts the processInstance is shown. The guy now clicks on the link starting a new processInstace and sending the signal message to the StartNode. The following thing that should occurred is ( supposing next node is TaskNode ) get the tasks instances of that TaskNode and show the web form to the user for e.g. the first task instance. As said that should be the following thing, BUT I do not only have to show the web form with the variables of the task instances otherwise I have to add another variables dynamically that I got from some DB for then finall show up the web form with both variable types. And this is my problem... in some way I have to recognize what type of TaskNode the token is set to. Why ? Because if it's a mail type I have to present the web form showing taskcontrollers variables ( name, subject, mail text ) the also the dynamic variables I got from some BD. On the other hand if it's approval I have to present the web form showing taskcontrollers variables ( publisher, comments, etc ) the also the dynamic variables I got from some BD quering other tables. So is there some way to do this ? Like maybe associating some custom object to each Node ( GraphElement ) in order that it's a "Mail" Task Node or a "Approval" Task Node or so on... Regards, Sebastian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3942683#3942683 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3942683 --- 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 JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - 2 Task Nodes with 1 Task Instance each or 1 Task Node with 2
2 Task Nodes (connected with a transition from-to) with 1 Task Instance each or 1 Task Node with 2 Task Instances ? I would like to now this difference. Suposing the user assigned to them is the same. I never saw an examples with 1 Task Node -> N task instaces. Regards, Sebastian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3941608#3941608 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3941608 --- 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 JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: Available transitions depending on logged user
What about an NODE-LEAVE action that evaluates who's logged in and depending on that manipulate the transitions (like for example. storing in some list the available transitions for that user) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3939639#3939639 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3939639 --- 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 JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: start process with an ather process
I'm new to jBpm but from what I've seen until this moment yes you can. You just have to instanciate a ProcessInstance anywhere in your app ProcessInstance processInstance = new ProcessInstance(processDefinition); View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3939634#3939634 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3939634 --- 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 JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: Newbie needs advice
Suppose the web sale order example that comes included in jbpm starters kit. When the user creates a new web sale order, the task.jsp is shown and its form presents the textfields representing each variables of the associated task instance. The user then fill up those textfields and so assign the values to the task variables. What I have to do it's just an add to that. My task.jsp will not only show the form with the textfields representing each variable of a task instance, otherwise it will also present a dynamic empty table that will need to be filled up with data. What is this data and where does it come from ? It's define in a DataBase and are variables that contains the same fields that taskinstance variables [name][read][write][required] After filling up the static variables (defined for the taskinstance) I wish to add a dynamic variable so for ex. press some ADD button and a window containing all those dynamic variables will pop up and I'd choose one. Then the table would have 1 row. How did I think to do this ? By executing actions before entering those TaskNodes, and make those actions retrieve the dynamic variables from a DB in order to save them somewhere and access them via jsp mabe in task.jsp. Regards. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938940#3938940 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938940 --- 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 JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Newbie needs advice
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 JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user