use of com.walmartlabs.concord.plugins.confluence.ConfluenceTaskCommon in project concord-plugins by walmartlabs.
the class ConfluenceTaskV2 method execute.
@Override
public TaskResult execute(Variables input) {
Result result = new ConfluenceTaskCommon(context.workingDirectory(), context.variables().toMap()).execute(TaskParams.of(input, context.defaultVariables().toMap()));
TaskResult.SimpleResult taskResult = TaskResult.of(result.ok, result.error);
if (result.pageId != null) {
taskResult.value("pageId", result.pageId);
}
if (result.childId != null) {
taskResult.value("childId", result.childId);
}
if (result.data != null) {
taskResult.value("data", result.data);
}
return taskResult;
}
Aggregations