01-19-2011 03:48 PM
<activiti:formProperty id="street" expression="#{address.street}" />
<input type="text" name="street" value="${address.street}" />
01-20-2011 02:15 AM
<startEvent id="theStart" />
<extensionElements>
<activiti:executionListener class="org.activiti.CreateAdressBeanListener" event="end" />
</extensionElements>
</startEvent>
public class CreateAdressBeanListener implements ExecutionListener {
public void notify(ExecutionListenerExecution execution) throws Exception {
Address address = new Address();
address.setStreet(execution.getVariable("street");
address.setXXX(…);
…
execution.setVariable("address", address);
}
}
<activiti:formProperty id="street" expression="#{addressService.getAdress('Belgium')}" />
01-20-2011 08:11 AM
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:
<activiti:formProperty id="street" expression="#{addressService.getAdress('Belgium')}" />
01-20-2011 08:50 AM
01-20-2011 03:02 PM
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.