As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<activiti:formProperty id="street" expression="#{address.street}" />
<input type="text" name="street" value="${address.street}" />
<br><startEvent id="theStart" /><br> <extensionElements><br> <activiti:executionListener class="org.activiti.CreateAdressBeanListener" event="end" /><br> </extensionElements><br></startEvent><br>
<br>public class CreateAdressBeanListener implements ExecutionListener {<br><br> public void notify(ExecutionListenerExecution execution) throws Exception {<br> Address address = new Address();<br> address.setStreet(execution.getVariable("street");<br> address.setXXX(…);<br> …<br> execution.setVariable("address", address);<br> }<br>}<br>
<br><activiti:formProperty id="street" expression="#{addressService.getAdress('Belgium')}" /><br>
If you want to show existing (non-process variables) data in your startform, you can always expose your data/services providing the data using spring. You can define a bean in your spring-configuration (the same configuration where your process-engine is in) and use the beans in your expressions, eg:<br><activiti:formProperty id="street" expression="#{addressService.getAdress('Belgium')}" /><br>