Created
March 31, 2019 22:03
-
-
Save talfco/d14ff2e4aa71a5ed96b167bf4709359d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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