cancel
Showing results for 
Search instead for 
Did you mean: 

can't see Form Fileds under the dropdown at user task

uzair_zaman
Champ in-the-making
Champ in-the-making
I have a very strange situation, where I can select a Form Field for 'Flow Condition' but for a user task, I can't see any Form FIeld under the dropdown. How can I share screenhost here? It seem to let me upload only txt files smiley

I was having this issue with one of my complex project, so I created this simple project to test the functionality but I am getting same error over here as well.
Can some please advise?
10 REPLIES 10

fstnboy
Champ on-the-rise
Champ on-the-rise
Hi Uzair,

Similar thing happened to me. I found out that the variables for FormFields are only populated when the form is created WITHIN the process, instead of going to the forms tab and creating one to share it…

Hopefully this makes sense for you?

PD: not entirely sure what you mean by selecting a Form Field for a user task… Do you mean in a form of a user task? Or any other user task property?

uzair_zaman
Champ in-the-making
Champ in-the-making
Hi Artxi,
THanks for your reply.
Sorry what do you mean by "form is created WITHIN the process"?

Also, let me explain it more.
1. For the Start Process node, I have selected the appropriate form under 'Refererenced form'
2. I then have an exlusive gate way with two out put branches
3. At branch one (which goes to userTask1), I can configure the 'Flow Condition' on the basis of values entered by user in the Form. From this I mean, I can configure the 'Sequence flow condition' by selecting the 'Selet Variables' and then 'Form Field' tabs and then there I can select my Form Field from the drop down and then an operator like 'equals' and then the value. (doest this make sense? )
4. At branch two (which goes to userTask2), I can configure the 'Flow Condition' on the basis of values entered by user in the Form, and can do as explained in step 3 above.
5. In my 'userTask1', I have the appripirate form referenced under 'Referenced Form' property BUT when I click on 'Assignment' and then select 'Identity store' for Type, 'Assigned to single user' for Assignment, 'Form field' for Source and then under the 'Form field:' dropdown, I can't see any of the Fields for my Form.

Does the above make sense?
Thanks for your help.

p.s. Can you please send me thorugh links to some good tutorials for building Processes or documentation.

uzair_zaman
Champ in-the-making
Champ in-the-making
Hi Artxi,

So I have created a new process using the 'wizard' and as part of the process, I have created the Form from within the process. I am assuming this is what you mean by 'WITHIN the process'. Am I correct?

But unfortunatley, even this way, I can use the Form Fields to decide at the 'Chouce step' level but when I select 'Human Step', I can't see the Form Fileds under the 'Candidates' selection. 😞

Any suggestions please?

uzair_zaman
Champ in-the-making
Champ in-the-making
Hi Artxi,

So actually what I am experiencing is; for the 'Flow Condition' I can configure Form field value BUT for user Task, it doesn't let me select a values from Form field to select an 'Assignment'.
Is this the expected bahaviour in Alfresco Activiti Designer or am I missing something here?

uzair_zaman
Champ in-the-making
Champ in-the-making
I am going to give this a try: https://forums.activiti.org/content/form-variables-activiti-enterprise-app     and lets see what happens Smiley Happy

uzair_zaman
Champ in-the-making
Champ in-the-making
No luck Smiley Sad

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)

Any suggestions?

shagufta1
Champ in-the-making
Champ in-the-making
Hi,

As far as I understood you are trying to assign a task to the user which was entered by user in a startForm… am I correct? And If so you need "people" form control in your startForm and you will be able to see that form field in the dropdown…

uzair_zaman
Champ in-the-making
Champ in-the-making
Hi Shagufta,
Thanks for your reply.
Yes that's correct. I am trying to assign a task to the user which was entered by user in s startForm..
Can you elaborate what do you mean by adding '"people" form control in my startForm".? How would I do that?
Sorry I a new to Alfrescro Activiti so would be asking some simple questions Smiley Happy

Thanks

shagufta1
Champ in-the-making
Champ in-the-making
Hi,

"People" is one of the form control like text, number, checkbox etc. in Form Editor…