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.
<br><property name="myService"><br> <map><br> <entry key="myService" value-ref="myService" /><br> </map><br> </property><br>
org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'property'. One of '{"<a href="http://www.springframework.org/schema/beans%22:import" rel="nofollow noopener noreferrer">http://www.springframework.org/schema/beans':import</a>, "<a href="http://www.springframework.org/schema/beans%22:alias" rel="nofollow noopener noreferrer">http://www.springframework.org/schema/beans':alias</a>, "<a href="http://www.springframework.org/schema/beans%22:bean" rel="nofollow noopener noreferrer">http://www.springframework.org/schema/beans':bean</a>, WC[##other:"<a href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer">http://www.springframework.org/schema/beans</a>"], "<a href="http://www.springframework.org/schema/beans%22:beans" rel="nofollow noopener noreferrer">http://www.springframework.org/schema/beans':beans</a>}' is expected.<br>
org.springframework.beans.NotWritablePropertyException: Invalid property 'myService' of bean class [org.activiti.spring.SpringProcessEngineConfiguration]:
<br><property name="beans"><br> <map><br> <entry key="myService" value-ref="myService" /><br> </map><br> </property><br>
<br><bean id="myService" class="net.atos.cetelem.service.impl.DemoService" /><br><br><bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"><br> <property name="history" value="full" /><br> <property name="dataSource" ref="activitiDataSource" /><br> <property name="transactionManager" ref="activitiTransactionManager" /><br> <property name="databaseSchemaUpdate" value="true" /><br> <property name="jobExecutorActivate" value="false" /><br> <br> <property name="beans"><br> <map><br> <entry key="myService" value-ref="myService" /><br> </map><br> </property><br> </bean><br>
org.activiti.engine.ActivitiException: Unknown property used in expression<br> at org.activiti.engine.impl.el.JuelExpression.getValue(JuelExpression.java:55)<br>…<br>Caused by: org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'myService'<br> at org.activiti.engine.impl.juel.AstIdentifier.eval(AstIdentifier.java:83)
<br>public class StartProcess {<br><br> private static final ApplicationContext ac= <br> new ClassPathXmlApplicationContext("activiti.cfg.xml");<br> <br> static ProcessEngine processEngine = ac.getBean(ProcessEngine.class);<br><br> public static void main(String[] args) {<br> RepositoryService repositoryService = processEngine.getRepositoryService();<br> repositoryService.createDeployment().addClasspathResource("diagrams/DemoErrorManagement.bpmn20.xml").deploy();<br> processEngine.getRuntimeService().startProcessInstanceByKey("DemoErrorManagement");<br><br> }<br><br>}<br><br>
whoops.. should have been "beans" under "processEngineConfiguration":<br><property name="beans"><br> <map><br> <entry key="myService" value-ref="myService" /><br> </map><br> </property><br>