I've built an action (node-enter) to create a certain amount of tasks based on the users selected. This is not known at design-time, but it is known at run-time.
| <process-definition>" + | " <start-state name='a'>" + | " <transition to='b' />" + | " </start-state>" + | " <state name='b'>" + | " <transition to='t' />" + | " </state>" + | " <task-node name='t' create-tasks='false'>" + | " <event type='node-enter'>" + | " <action class='org.thepaxson5.jbpm.Wfp15WithAssignment$CreateTasks' />" + | " <assignment class='org.thepaxson5.jbpm.Wfp15WithAssignment$TestAssignmentHandler'/>" + | " </event>" + | " <task name='watch movie amadeus' />" + | " <transition to='c' />" + | " </task-node>" + | " <state name='c' />" + | "</process-definition>" | I'm having a very difficult time with assigning the actors to a specific auto-created task, and then, removing their own task when completed. The test case is great when you only care about "the number" of tasks to add/remove. And normally, that would be fine for me, if I didn't want to include this in their "task-lists". However, I need each "actor" to be assigned to each auto-created task. Since I can only assign the users from my AssignmentHandler class, I lose the ability to send, as a parameter, the number of tasks I'm creating, and therefore, I don't know how to assign individuals to a created task. I first thought this would be easy, as I figured I would just include the setActorId() in my FOR loop creating the tasks. Little did I know, that I have to implement an interface to assign the tasks. Any ideas? ~~ Aaron View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3940348#3940348 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3940348 ------------------------------------------------------- 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
