Skip to content

Instantly share code, notes, and snippets.

@talfco
Created March 31, 2019 22:03
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 talfco/d14ff2e4aa71a5ed96b167bf4709359d to your computer and use it in GitHub Desktop.
Save talfco/d14ff2e4aa71a5ed96b167bf4709359d to your computer and use it in GitHub Desktop.
package net.cloudburo.task.saga1;
import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.JavaDelegate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Map;
public class SaveOutputTask implements JavaDelegate {
private Logger logger = LoggerFactory.getLogger(SaveOutputTask.class);
@SuppressWarnings("unchecked")
@Override
public void execute(DelegateExecution execution) {
Map<String, String> outputMap = (Map<String, String>) execution.getVariable("outputMap");
outputMap.put("outputValue", (String) execution.getVariable("camelBody"));
logger.info("CamelBody: " + execution.getVariable("camelBody"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment