Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
73 lines (52 sloc) 2.71 KB

Java

Important

Section under construction

Currently, Java is the only available scripting language. It allows to specify the behaviour of tasks by writting Java scripts. Each script is a class that extends the RunnerImpl class.

Impacts on project

When Java is enabled on a Workflow Project, it creates the following files:

File Purpose
src/ Directory containing Java source files.
META-INF/MANIFEST.MF Defines project's dependencies, including EKumi's API.
build.properties Defines the files to include when the project is packaged as a binary.

The Java and Plugin natures are also added to the project. That enables the Java builder to compile the sources and allows the dependencies toward EKumi API to be resolved.

Script implementation

A new script can be added to a task by specifying the class' canonical name as script id. The class must extend the RunnerImpl class as in the example below:

Dependency Injection

Java scripts can be injected with some environment objects. Currently two objects can be injected:

  • Events: allows to send specific events and to register new listener
  • ExecutionStatus: allows to check the current status of the execution (failed, cancelled, etc.)
You can’t perform that action at this time.