jadex.bpmn.testcases.AService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-applications-bpmn Show documentation
Show all versions of jadex-applications-bpmn Show documentation
The Jadex bpmn applications package contains several example applications, benchmarks and testcases using bpmn workflows.
package jadex.bpmn.testcases;
import jadex.bridge.service.annotation.Service;
import jadex.commons.future.Future;
import jadex.commons.future.IFuture;
/**
*
*/
@Service
public class AService implements IAService
{
/** The test string. */
protected String test;
/**
* Create a new service.
*/
public AService()
{
this.test = "no value";
}
/**
* Create a new service.
*/
public AService(String test)
{
this.test = test;
}
/**
* Test method.
*/
public IFuture test()
{
System.out.println("val: "+test);
return new Future(test);
}
}