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