03-28-2013 12:37 PM
04-09-2013 12:28 PM
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:camel="http://camel.apache.org/schema/spring"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring-2.5.0.xsd">
<!– Creating a Camel context like this results in an error in Alfresco (in EE 4.1.1.3 at least).
<camelContext id="camelProcess" xmlns="http://camel.apache.org/schema/spring">
<packageScan>
<package>com.yourcompany.activiti.camel</package>
</packageScan>
</camelContext –>
<bean id="camelContextFactory" class="com.yourcompany.activiti.camel.CamelContextFactory" />
<bean id="camelContext" factory-bean="camelContextFactory" factory-method="getCamelContext" />
<!– Extend CamelBehavior. Need to pass the Activiti bean registry. –>
<bean id="camel" class="com.yourcompany.activiti.camel.CamelActivityBehaviour">
<constructor-arg index="0">
<value>camelTaskHandler</value>
</constructor-arg>
<constructor-arg index="1">
<list>
<bean class="org.activiti.camel.SimpleContextProvider">
<constructor-arg index="0" value="CamelTest" />
<constructor-arg index="1" ref="camelContext" />
</bean>
</list>
</constructor-arg>
<property name="beanRegistry" ref="activitiBeanRegistry" />
</bean>
</beans>
<process id="CamelTest" name="Camel Test: A Camel task in an Alfresco workflow">
<startEvent id="start" />
<sequenceFlow id="startup" sourceRef="start" targetRef="camelTask1"/>
<serviceTask id="camelTask1" activiti:delegateExpression="${camelTaskHandler}" />
<sequenceFlow id='flowToEnd' sourceRef='camelTask1' targetRef='end' />
<endEvent id="end" />
</process>
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.