05-05-2017 01:37 AM
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.
05-12-2017 08:37 AM
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
05-05-2017 08:29 AM
05-09-2017 01:42 AM
Hi Greg Harley,
Yes, I tried with "name" attribute but it is showing error "Error in parsing"
05-09-2017 09:03 AM
Works for me, perhaps you can attach a test case.
05-11-2017 07:56 AM
Can you please send me the screenshot of how you did it.
05-11-2017 12:33 PM
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
05-12-2017 12:35 AM
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.
05-12-2017 08:37 AM
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
05-12-2017 08:40 AM
Ok.. thank you soo much.
Explore our Alfresco products with the links below. Use labels to filter content by product module.