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.
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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:jaxws="http://cxf.apache.org/jaxws" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.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://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd" > <bean id="helloWorldConsumer" class="com.ge.research.dhc.process.HelloWorldTask"> <property name="helloService" ref="helloService"/> </bean> <osgi:reference id="helloService" interface="com.ge.dhc.poc01.helloWorldService.HelloService"/> </beans>
<br>public class HelloWorldTask implements JavaDelegate {<br> <br> private HelloService helloService;<br> <br> public void execute(DelegateExecution execution) throws Exception {<br> <br> ActivityExecution ae = (ActivityExecution) execution;<br> System.out.printf("\n*** Executing Service Task… Execution Id:[%s] Activity: %s[%s]\n",<br> ae.getId(), ae.getActivity().getId(), ae.getActivity().getProperty("name"));<br><br> System.out.println("Ok now going to make a call….");<br> System.out.println("Return from the service is… " + helloService.sayHello());<br> }<br><br> public void setHelloService(HelloService helloService) {<br> this.helloService = helloService;<br> }<br> <br> <br>}<br>