Skip to content

Instantly share code, notes, and snippets.

@tijsrademakers
Last active December 20, 2016 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tijsrademakers/bd73fbd5ac6fd5350055e29bd9bf012e to your computer and use it in GitHub Desktop.
Save tijsrademakers/bd73fbd5ac6fd5350055e29bd9bf012e to your computer and use it in GitHub Desktop.
public class IntroTask implements JavaDelegate {
public void execute(DelegateExecution execution) {
if (execution.hasVariable("intro")) {
System.out.println("Intro variable available with value " + execution.getVariable("intro"));
execution.setVariable("variablePresent", true);
} else {
System.out.println("Intro variable not available");
execution.setVariable("variablePresent", false);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment