02-25-2013 02:47 AM
02-25-2013 08:43 AM
02-25-2013 08:47 AM
02-25-2013 11:06 AM
02-25-2013 11:56 PM
For the engine, an attachment or document is nothing more than a process variable.
What you need is mapping from the form property (file) to something the engine understands (process variable).
The explorer app is shipped with such a custom form property so you can start with that to learn how it can be done.
02-26-2013 12:02 AM
02-26-2013 05:04 AM
02-26-2013 05:24 AM
Yes indeed, FileAttachmentEditor is a good example of such a component.
Now what you need is a new form property type (eg file), that has a client side part (ie what is used in Vaadin for rendering) and one that has an Activiti side (ie form property -> process variable). I haven't done it myself, so it's only theory so far. Could very well be some API is blocking something. But unfortunately I currently don't have time to look into how it would fit.
02-26-2013 05:12 PM
02-28-2013 10:55 AM
Ok, I tried to create the same but getting error saying "no editor or conversion strategy found to convert my field into activiti's form type"
<!– Custom form property renderers can be plugged in here –>
<bean id="formPropertyRendererManager" class="org.activiti.explorer.ui.form.FormPropertyRendererManager" lazy-init="true">
<!– Default renderer –>
<property name="noTypePropertyRenderer">
<bean class="org.activiti.explorer.ui.form.StringFormPropertyRenderer" />
</property>
<!– Renderers by property type –>
<property name="propertyRenderers">
<list>
<bean class="org.activiti.explorer.ui.form.StringFormPropertyRenderer" />
<bean class="org.activiti.explorer.ui.form.EnumFormPropertyRenderer" />
<bean class="org.activiti.explorer.ui.form.LongFormPropertyRenderer" />
<bean class="org.activiti.explorer.ui.form.DateFormPropertyRenderer" />
<bean class="org.activiti.explorer.ui.form.UserFormPropertyRenderer" />
<bean class="org.activiti.explorer.ui.form.BooleanFormPropertyRenderer" />
</list>
</property>
</bean>
Sorry to ask so much but I have to do it
Use a real ui framework
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.