Custom Task Guide

Custom Task Guide

Add the getDisplayString Method

Add the getDisplayString Method

Now, implement the abstract method getDisplayString(). All tasks must return a short string representing this task, which is used by the Project Designer in
Managed File Transfer
. We will return either the tag name (by default) or user defined label that all tasks support.
Please note that the red text denotes the new source added to the example.
package com.example; import com.linoma.ga.projects.CustomTask; import com.linoma.ga.projects.TaskContainer; public class CopyTask extends CustomTask { private static final String TAG_NAME = "example:copy"; public CopyTask(TaskContainer parent) { super(parent); label = TAG_NAME; } @Override public String getTagName() { return TAG_NAME; } @Override public String getDisplayString() { return label; } }

0 COMMENTS

We’d like to hear from you!