AnsweredAssumed Answered

Assigning a dynamic assignee to a user task getting error

Question asked by antonylees on Feb 7, 2011
Latest reply on Feb 7, 2011 by antonylees
Hi all

I am trying to assign a dynamic user to a user task using spring, similar to the example in the user guide.  If I take the example as the example here:

<userTask id="task" name="My Task" activiti:assignee="${ldapService.findManagerForEmployee(emp)}"/>

However, when I start the process instance, it goes directly to that usertask (via a service task) and can't locate the 'emp' property resulting the exception:

org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'emp'

How can I set the 'emp' property before it gets to the user task?  Is there some way of creating a process instance but not start it so I can set the property?

Antony

Outcomes