09-04-2013 11:39 PM
<process id="testSample" name="Test Sample Process" isExecutable="true">
<startEvent id="startevent1" name="Start"></startEvent>
<serviceTask id="servicetask1" name="Service Task" activiti:delegateExpression="${signalSupport}"></serviceTask>
<sequenceFlow id="flow1" sourceRef="startevent1" targetRef="servicetask1"></sequenceFlow>
<endEvent id="endevent1" name="End"></endEvent>
<sequenceFlow id="flow2" sourceRef="servicetask1" targetRef="endevent1"></sequenceFlow>
</process>
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:ctx="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:osgi="http://www.springframework.org/schema/osgi"
xmlns:osgix="http://www.springframework.org/schema/osgi-compendium"
xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:camel="http://camel.apache.org/schema/spring"
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.0-M1.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi.xsd
http://www.springframework.org/schema/osgi-compendium
http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd
http://www.springframework.org/schema/jee
http://www.springframework.org/schema/jee/spring-jee-3.0.xsd">
<osgi:reference id="processEngine" interface="org.activiti.engine.ProcessEngine" />
<osgi:reference id="bpmnContext" interface="org.activiti.karaf.support.BpmnContext" />
<bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" />
<bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService" />
<bean id="taskService" factory-bean="processEngine" factory-method="getTaskService" />
<bean id="historyService" factory-bean="processEngine" factory-method="getHistoryService" />
<bean id="managementService" factory-bean="processEngine" factory-method="getManagementService" />
<bean id="identityService" factory-bean="processEngine" factory-method="getIdentityService" />
<bean id="signalSupport" class="my.gov.perkeso.schememanagement.bpm.delegate.ScoRecommendationSignal">
<property name="runtimeService" ref="runtimeService" />
</bean>
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:app.properties</value>
</list>
</property>
</bean>
<bean id="jmsConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="${jms.broker.connection.url}"/>
<property name="userName" value="${jms.broker.username}" />
<property name="password" value="${jms.broker.password}" />
</bean>
<bean id="pooledConnectionFactory"
class="org.apache.activemq.pool.PooledConnectionFactory" init-method="start" destroy-method="stop">
<property name="maxConnections" value="${jms.broker.pool.max.connection}"/>
<property name="connectionFactory" ref="jmsConnectionFactory"/>
<property name="maximumActive" value="${jms.broker.pool.max.active}" />
<property name="expiryTimeout" value="${jms.broker.pool.expiry.timeout}" />
</bean>
<bean class="org.springframework.jms.connection.JmsTransactionManager" id="jmsTransactionManager">
<property name="connectionFactory" ref="pooledConnectionFactory"/>
</bean>
<bean class="org.apache.activemq.camel.component.ActiveMQComponent">
<property name="connectionFactory" ref="pooledConnectionFactory" />
<property name="transactionManager" ref="jmsTransactionManager"/>
<property name="transacted" value="true"/>
</bean>
<camel:camelContext xmlns="http://camel.apache.org/schema/spring" id="schememanagement-bpm">
<dataFormats>
<jaxb id="schememanagementMessage" contextPath="my.gov.perkeso.schememanagement.bpm.esb" />
</dataFormats>
<route>
<from uri="direct:getPreferredCommChannel"/>
<marshal ref="schememanagementMessage" />
<to uri="activemq:queue:getPreferredCommChannel"/>
<unmarshal ref="schememanagementMessage" />
</route>
<route>
<from uri="direct:closeNTB"/>
<marshal ref="schememanagementMessage" />
<to uri="activemq:queue:closeSchemeCase"/>
</route>
</camel:camelContext>
</beans>
09-10-2013 11:46 AM
09-11-2013 02:25 AM
11-26-2013 08:39 AM
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.