Search in sources :

Example 1 with ContextBackedVariables

use of com.walmartlabs.concord.client.v1.ContextBackedVariables in project concord by walmartlabs.

the class ProjectTask method execute.

@Override
public void execute(Context ctx) throws Exception {
    ProjectTaskParams in = new ProjectTaskParams(new ContextBackedVariables(ctx));
    withClient(ctx, client -> {
        new ProjectTaskCommon(client, getProcessOrgName(ctx)).execute(in);
        return null;
    });
}
Also used : ContextBackedVariables(com.walmartlabs.concord.client.v1.ContextBackedVariables)

Example 2 with ContextBackedVariables

use of com.walmartlabs.concord.client.v1.ContextBackedVariables in project concord by walmartlabs.

the class SecretsTask method execute.

@Override
public void execute(Context ctx) throws Exception {
    SecretsTaskParams in = SecretsTaskParams.of(new ContextBackedVariables(ctx));
    TaskResult.SimpleResult result = new SecretsTaskCommon(clientFactory.create(ctx), getProcessOrgName(ctx)).execute(in);
    ctx.setVariable(RESULT_KEY, result.toMap());
}
Also used : ContextBackedVariables(com.walmartlabs.concord.client.v1.ContextBackedVariables) TaskResult(com.walmartlabs.concord.runtime.v2.sdk.TaskResult)

Aggregations

ContextBackedVariables (com.walmartlabs.concord.client.v1.ContextBackedVariables)2 TaskResult (com.walmartlabs.concord.runtime.v2.sdk.TaskResult)1