cancel
Showing results for 
Search instead for 
Did you mean: 

Form Variables in activiti enterprise app

hemamalini
Champ in-the-making
Champ in-the-making
In activiti enterprise , how values entered in referenced form is used further in the business process.. Do we have to specify it as outcome?
For eg ,  if i have a textfield with id assignee in form , values entered in the form have to be used as an assignee to next user task. i am not able to give the value as ${assignee} for the user task and also form fields are not displayed in the user task
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
You are correct: form fields are stored as their id. So if you have a form field with 'assignee', it is available as 'assignee' in later steps.

Did you try using a 'Display value' for it (or 'Display Text')?

Where did you fill in the ${assignee}?

uzair_zaman
Champ in-the-making
Champ in-the-making
Hi jbarrez,
I am having the similar issue. I have a field called 'consultant' and I have both name of the field and display text set as 'cosnultant'. I am passing this value to my user Task where I am setting: Assignment >> Fixed values >> Candidate users = ${consultant}   but i get the following error when trying to run the workflow.

11-Jul-2016 16:27:10.721 SEVERE [tomcat-http–44] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [appDispatcher] in context with path [/activiti-app] threw exception [Request processing failed; nested exception is org.activiti.engine.ActivitiException: Unknown property used in expression: ${consultant}] with root cause
org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'consultant'
at org.activiti.engine.impl.juel.AstIdentifier.eval(AstIdentifier.java:83)

swathirajan
Champ in-the-making
Champ in-the-making
For User Task, you can add the assignee by pressing 'Assignment' column.
If you are sending to particular person, add his/her email address under 'Identity Store' with Assignment as 'Assigned to single user'.
Update the email address and save. The task is assigned to the person automatically.

When I tried to use 'Fixed Values' and update email address, I get a warning while validation as "Assignment should be set with IDM type for cloud app deployment'.