cancel
Showing results for 
Search instead for 
Did you mean: 

Passing data into tasks.

kingbee888
Champ in-the-making
Champ in-the-making
Hi Guys,

I'm running into an issue when passing data from a serialized object into a task variable. 

For example:  In my start event, I collected some data and stored that data into a bean.  Then in subsequent steps, I retrieve that data. 
using
<activiti:formProperty id="requestorFirstName" name="First Name" expression="${estimateRequest.requestor.firstName}" writable="false"></activiti:formProperty>

The data does get displayed but when I try to retrieve requestorFirstName using delegateTask.getVariable("requestorFirstName") when the step is completed, I get a null value.

What am I doing wrong?  Any guidance is appreciated.


Thanks,
Bee

1 REPLY 1

jbarrez
Star Contributor
Star Contributor
> The data does get displayed

How do you mean? Since this is a readable property, why do you need more than display?

In the delegateTask, you can always loop over all variables to see if a mapping mistake was made somewhere.