Using Activiti designer, how can I get the value I am selecting in the dropdown. If i write ${id of the field} in the documentation i get the id of the option selected in the dropdown and not its value.
Solved! Go to Solution.
Ok, so the devil is always in the detail.
If you are using the sample activiti-explorer VAADIN application, the label of the dropdown is not saved to the process variable.
Obviously the easiest option would be to have the id and label match.
If that's not an option, then you can overload the org.activiti.engine.impl.form.DefaultFormHandler class.
Greg
Hi Greg Harley,
Yes, I tried with "name" attribute but it is showing error "Error in parsing"
Works for me, perhaps you can attach a test case.
Can you please send me the screenshot of how you did it.
Screenshot of form editor screen (notice I have attached to the form value changed event)
Here is the code to retrieve and alert the name and id for the selector:
var thisUn1 = scope.findFormFieldWithId(scope.allFormFields, 'selector').value;
alert("name :" + thisUn1.name + "id:" + thisUn1.id);
Regards,
Greg
In this you have created your own form but I am using activiti explorer and using their form property only. I am not using any event. In activiti there is a form property type called enum, I want to display the value in the documentation box of next user task which I am selecting in the dropdown. If in documentation I write ${id of the enum field}, I get the id of the dropdown option selected and not its value.
Ok, so the devil is always in the detail.
If you are using the sample activiti-explorer VAADIN application, the label of the dropdown is not saved to the process variable.
Obviously the easiest option would be to have the id and label match.
If that's not an option, then you can overload the org.activiti.engine.impl.form.DefaultFormHandler class.
Greg
Ok.. thank you soo much.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.