In some cases we'll need to link the token state with our POJO state for example: suppose that we have a car rental application and its workflow is:
| 1.add a new car to our warehouse | | | | | 2.rent a car from warehouse. | | | | | 3. do some maintenance to car. | [-- FORK --] | / \ | / \ | if car is OK then car else car goes to | returned to warehouse. mechanic to repair | This is abstract example. so what I mean that i will create a POJO class that reflect a car in my database and this POJO has an attribute that defines what is the state of my car (created, inWarhouse, rented, goToMaintenance, carOK, or carInRepair) I know that the instance of each ProcessDefinition can be persisted in DB with its current state, but in this case we do not need this, we need that when creating a new instance of the process definition, I tell the instance to jump to a state or node equivalent to the state of my Car POJO selected from database. By another mean I need to mapping the ProcessDefinition instance state with one of my POJO attributes and define the instance state or node by calling somthing like this instance.setState(myCarPojo.getCarState());. The question is : is this possible? if yes by any way, how we can implement this? Ahmed Adly, Java Developer View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943746#3943746 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943746 ------------------------------------------------------- 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
