enazareno is correct. Specifically, a <task-node> has these default properties:
create-tasks="true"
signal="last" //completion of the last task also signals the default
transition
And a <task'> element under the <task-node> by default has:
blocking="no"
See the user guide, sections 13.3.7 and 13.3.23 for other options and what they
all mean.
With default settings, tasks defined in a <task'> element will be automatically
created when the <task-node> is entered. The only reason you wouldn't want
this behavior, is if you need to programatically determine which tasks need to
be created based on process instance specific data; in that case, you would set
create-tasks="false" and would need to create your task(s) with an action
handler on the node-enter event. Remember that if you are programatically
creating tasks, you'll have to be careful that your blocking boolean (and other
properties) is set according to your expectations. Also, while the
documentation doesn't provide for a "signaling" property on <task'> in the
process definition XML, you can turn signaling on or off for individual
taskInstances via the API to suit your needs when you create the tasks in your
action handler.
If you create your tasks programatically and receive errors when trying to
retreive them from the database, check that you have specified any appropriate
object or circular references, ie:
taskInstance.setToken(yourToken);
-Britt
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916152#3916152
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916152
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user