BPM Service Tasks

It’s great that we can invoke managed beans from the service task. in the tutorial, updateState doesn’t return any data. Is it possible to have my method return a status and have my Exclusive Gateway evaluate the status to determine the next flow?
Thanks.

Hi, Francis!
You can save a service method result to the process variable. Service task has a property called “Result variable name” that defines a variable name. Later you will be able to use the process variable value in a condition expression of a gateway flow. There is a description in Activiti documentation: http://activiti.org/userguide/index.html#serviceTaskResultValue
But unfortunately, I’ve just found out that the text field for the “Result variable name” property is not visible in model editor due to the UI bug. We will fix it in next release.