01: package org.kohsuke.donothing;
02:
03: import dalma.Description;
04: import dalma.Engine;
05: import dalma.Program;
06: import dalma.Resource;
07:
08: @Description("This is a workflow application generated by Maven. Replace this with a human-readable description of this application")
09: public class Main extends Program {
10: @Resource(description="@Resource indicates that this resource needs to be configured by the user.",optional=true)
11: public String name = "(unconfigured)";
12:
13: @Override
14: public void main(Engine engine) throws Exception {
15: System.out.println("Running");
16: if (engine.getConversations().isEmpty()) {
17: for (int i = 0; i < 10; i++)
18: engine.createConversation(new ConversationImpl());
19: }
20: }
21: }
|