Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ public abstract class DurableTaskStep extends Step implements EnvVarsFilterableB

private static final Logger LOGGER = Logger.getLogger(DurableTaskStep.class.getName());

private static final int MAX_LABEL_LENGTH = 100;

private boolean returnStdout;
private String encoding;
private boolean returnStatus;
Expand Down Expand Up @@ -150,7 +148,7 @@ public String getLabel() {

@Override public StepExecution start(StepContext context) throws Exception {
if (label != null) {
context.get(FlowNode.class).addAction(new LabelAction(label.length() > MAX_LABEL_LENGTH ? label.substring(0, MAX_LABEL_LENGTH) : label));
context.get(FlowNode.class).addAction(new LabelAction(label));
}
return new Execution(context, this);
}
Expand Down Expand Up @@ -178,9 +176,6 @@ public FormValidation doCheckReturnStatus(@QueryParameter boolean returnStdout,
}

public FormValidation doCheckLabel(@QueryParameter String label) {
if (label != null && label.length() > MAX_LABEL_LENGTH) {
return FormValidation.error("Label size exceeds maximum of " + MAX_LABEL_LENGTH + " characters.");
}
return FormValidation.ok();
}

Expand Down