]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.support.equinox/src/main/java/org/argeo/slc/execution/old/TestLaunch.java
Change the generated XML for the execution message
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.equinox / src / main / java / org / argeo / slc / execution / old / TestLaunch.java
1 package org.argeo.slc.execution.old;
2
3 import org.argeo.slc.core.execution.NewExecutionEvent;
4 import org.argeo.slc.process.SlcExecution;
5 import org.springframework.beans.factory.annotation.Required;
6 import org.springframework.context.ApplicationEventPublisher;
7 import org.springframework.context.ApplicationEventPublisherAware;
8
9 public class TestLaunch implements ApplicationEventPublisherAware {
10 private ApplicationEventPublisher applicationEventPublisher;
11
12 private String flowName;
13
14 public void launch() {
15 SlcExecution slcExecution = new SlcExecution();
16 slcExecution.getAttributes().put("slc.flows", flowName);
17 applicationEventPublisher.publishEvent(new NewExecutionEvent(this,
18 slcExecution));
19
20 }
21
22 @Required
23 public void setFlowName(String flowName) {
24 this.flowName = flowName;
25 }
26
27 public void setApplicationEventPublisher(
28 ApplicationEventPublisher applicationEventPublisher) {
29 this.applicationEventPublisher = applicationEventPublisher;
30 }
31
32 }